Function at 0x402da0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4e7708
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
push 0x5c
push eax
mov esi, ecx
call fcn.004b3956
add esp, 8
test eax, eax
jne 0x402dd8
or ebp, 0xffffffff
jmp 0x402dde
sub eax, dword [edi]
sar eax, 1
mov ebp, eax
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, ebp
dec eax
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00401ee0
mov dword [esp + 0x24], 0
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
push ebp
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x2c], 1
call fcn.00401f50
mov ecx, dword [esi + 0x20ac]
mov eax, dword [eax]
push ecx
mov ecx, dword [0x51c45c]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x34], 2
call fcn.00402400
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x24], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x400
push ebx
lea eax, [esi + 0x70]
push eax
call ebp
mov ecx, dword [esp + 0x2c]
push 0x400
push ecx
lea edx, [esi + 0x872]
push edx
call ebp
mov eax, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x111
push 0x465
push eax
call ebp
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402f3f
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x14], eax
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
mov edi, dword [edi]
mov eax, dword [0x51c464]
push edi
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x30], 3
call fcn.00402400
mov edi, dword [esp + 0x3c]
add esp, 0xc
push 0
push 0
push edi
call fcn.004db4d5
call ebp
mov ecx, dword [esp + 0x14]
mov ebp, dword [esi + 0x2098]
sub eax, ecx
add ebp, eax
lea eax, [edi - 0x10]
mov dword [esi + 0x2098], ebp
mov byte [esp + 0x24], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40313f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40313f
test al, 0x10
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
je 0x403036
sub eax, 0x10
push eax
call fcn.00401be0
add eax, 0x10
add esp, 4
mov dword [esp + 0x30], eax
push 0x5c
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 4
call fcn.00402220
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x38]
call fcn.00402340
mov eax, dword [edi]
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x1c]
push eax
push ecx
push 0x468
push edx
call ebp
test eax, eax
je 0x402fc1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x24], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40313f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40313f
mov ebp, dword [esp + 0x30]
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x1c], esp
mov dword [esp + 0x18], esp
push ebp
call fcn.00401be0
mov ecx, dword [esp + 0x1c]
add eax, 0x10
mov dword [ecx], eax
mov edi, dword [edi]
mov dword [esp + 0x1c], esp
sub edi, 0x10
mov dword [esp + 0x1c], esp
push edi
mov byte [esp + 0x30], 5
call fcn.00401be0
mov edx, dword [esp + 0x20]
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edx], eax
mov byte [esp + 0x2c], 4
call fcn.00402700
mov byte [esp + 0x24], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40313f
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
jmp 0x40313f
sub eax, 0x10
push eax
call fcn.00401be0
add eax, 0x10
add esp, 4
mov dword [esp + 0x30], eax
push 0x5c
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 6
call fcn.00402220
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x38]
call fcn.00402340
mov eax, dword [edi]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esi + 0x1c]
push eax
push ebx
push 0x468
push ecx
call ebp
test eax, eax
je 0x4030ea
add ebx, 0xfffffff0
mov byte [esp + 0x24], 1
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40309d
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403184
mov ecx, dword [eax]
push eax
jmp 0x40317f
mov eax, dword [edi]
push ebx
push eax
mov ecx, esi
call fcn.00401750
mov edi, dword [edi]
push edi
call fcn.00401620
mov ebp, dword [esi + 0x2090]
mov edi, dword [esi + 0x2094]
add esp, 4
add ebp, eax
adc edi, edx
lea eax, [ebx - 0x10]
mov dword [esi + 0x2090], ebp
mov dword [esi + 0x2094], edi
mov byte [esp + 0x24], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40313b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403162
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebx, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403184
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 8