Function at 0x10031fe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082378
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x100a6250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
xor ebx, ebx
push ecx
mov eax, dword [ecx]
mov dword [ebp - 0x18], ebx
call dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.10008b60
push dword [ebp - 0x20]
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x24]
mov edx, 0x1008e0ac
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x10032066
test si, si
je 0x10032062
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x10032066
add ecx, 4
add edx, 4
test si, si
jne 0x10032040
xor ecx, ecx
jmp 0x1003206b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x10032077
lea esi, [ecx + 1]
jmp 0x100320fa
mov edx, 0x1008e0b4
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x100320a6
test si, si
je 0x100320a2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x100320a6
add ecx, 4
add edx, 4
test si, si
jne 0x10032080
xor ecx, ecx
jmp 0x100320ab
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x100320b4
lea esi, [ecx + 2]
jmp 0x100320fa
mov ecx, str._g0W
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100320e6
test dx, dx
je 0x100320e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100320e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100320c0
xor eax, eax
jmp 0x100320eb
sbb eax, eax
or eax, 1
test eax, eax
mov ecx, 3
mov esi, 0
cmove esi, ecx
mov ecx, dword [ebp + 8]
call fcn.10036e40
mov ecx, dword [edi + 0x8c]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x10032120
push esi
call fcn.10036700
mov ecx, dword [edi + 0x8c]
cmp dword [ebp - 0x14], eax
jb 0x10032127
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x1003212a
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x10032151
push esi
push 0xa
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100366e0
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x44]
mov eax, 0x2f48c601
mov ecx, dword [ebp + 8]
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [ebp - 0x14]
push eax
call fcn.10037840
xor ecx, ecx
mov eax, 0x2f48c601
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x44]
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100323a1
xor esi, esi
mov dword [ebp - 0x20], esi
nop dword [eax + eax]
add esi, dword [ebp - 0x44]
cmp dword [edi + 0x9c], 0
je 0x100321d0
mov eax, dword [edi + 0x98]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [eax + 4]
add eax, 8
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or ebx, 1
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], ebx
cmp esi, dword [eax]
je 0x100321d4
mov byte [ebp - 0xd], 0
test bl, 1
je 0x100321e8
push dword [ebp - 0x28]
and ebx, 0xfffffffe
mov dword [ebp - 0x18], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0xd], 0
jne 0x10032372
lea ebx, [esi + 0xc8]
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.1003e8d0
add esp, 8
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.1003a5b0
lea eax, [edi + 4]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x78]
call fcn.1003ab20
push esi
lea ecx, [ebp - 0x78]
call fcn.1003aba0
push ebx
lea ecx, [ebp - 0x78]
call fcn.1003ace0
cmp dword [esi + 0xad0], 0
lea ecx, [ebp - 0x78]
je 0x10032244
push dword [ebp - 0x14]
jmp 0x1003224b
lea eax, [esi + 0x8c8]
push eax
call fcn.1003ab50
push ebx
lea ecx, [ebp - 0x78]
call fcn.1003aa80
push ebx
lea ecx, [ebp - 0x78]
call fcn.1003abf0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x2c]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax]
push dword [eax]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.1003aad0
push dword [ebp - 0x2c]
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x30]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.1003ac90
push dword [ebp - 0x30]
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 1
lea ecx, [ebp - 0x78]
call fcn.1003ab30
mov ecx, dword [edi + 0x98]
lea ebx, [ebp - 0x78]
push ebx
mov dword [ebp - 0x34], ecx
mov edx, dword [ecx + 4]
push edx
push ecx
lea ecx, [edi + 0x98]
mov dword [ebp - 0x38], edx
call fcn.10030f30
mov edx, dword [edi + 0x9c]
lea ebx, [esi + 0xc8]
mov ecx, 0x4444443
sub ecx, edx
cmp ecx, 1
jb 0x1003244c
lea ecx, [edx + 1]
mov dword [edi + 0x9c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
cmp dword [esi + 0xad0], 0
je 0x1003233e
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003233e
mov ecx, edi
call fcn.10033010
mov ecx, dword [edi + 0x94]
test ecx, ecx
je 0x10032348
push dword [ebp - 0x14]
push ebx
push esi
call fcn.1003d270
jmp 0x10032348
push 1
lea ecx, [ebp - 0x78]
call fcn.1003ab30
lea ecx, [ebp - 0x78]
call fcn.1003a670
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003236f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
mov eax, 0x2f48c601
sub ecx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x20]
inc dword [ebp - 0x1c]
add esi, 0xad4
imul ecx
mov dword [ebp - 0x20], esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x1c], eax
jb 0x100321a0
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
je 0x100323b1
lea ecx, [edi + 0x38]
call fcn.100399f0
mov esi, dword [ebp - 0x44]
mov byte [ebp - 4], 2
test esi, esi
je 0x10032411
mov ecx, dword [ebp - 0x3c]
mov eax, 0x2f48c601
sub ecx, esi
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0xad4
mov eax, esi
cmp ecx, 0x1000
jb 0x100323f2
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032447
push ecx
push esi
call fcn.1001a759
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x24]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10032433
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.1004906c
push str.list_T__too_long
call fcn.1001b853
int3