Function at 0x40df8c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b56e1
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x824], eax
push esi
push edi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x838]
mov dword fs:[0], eax
mov esi, ecx
test ebx, ebx
jne 0x40dff6
xor eax, eax
mov ecx, dword [esp + 0x838]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x824]
xor ecx, esp
call fcn.0047549a
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call edi
test eax, eax
je 0x40dfd1
push ebx
call fcn.00475ebe
pop ecx
cmp eax, 0x200
jae 0x40dfd1
push 0x800
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00475420
mov eax, 0x400
push eax
push ebx
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00476737
add esp, 0x1c
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.version1.0_encodingutf_16
lea ecx, [esp + 0x14]
call fcn.0040285b
and dword [esp + 0x840], 0
push ebx
lea ecx, [esp + 0x18]
call fcn.0040285b
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x84c], 1
call fcn.0041233c
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40e08c
call fcn.004028f4
mov byte [esp + 0x840], 4
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40e0a1
call fcn.004028f4
cmp dword [esp + 0x1c], 0
jne 0x40e0b6
lea ecx, [esp + 0x18]
call fcn.00411d38
jmp 0x40dfd1
push dword [esi + 0x170]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.0040e202
push dword [esi + 0x13c]
call edi
test eax, eax
jne 0x40e0e4
push dword [esi + 0x174]
call edi
test eax, eax
je 0x40e0a8
push dword [esi + 0x148]
call edi
test eax, eax
jne 0x40e0fc
push dword [esi + 0x180]
call edi
test eax, eax
je 0x40e0a8
push dword [esi + 0x140]
call edi
test eax, eax
jne 0x40e114
push dword [esi + 0x178]
call edi
test eax, eax
je 0x40e0a8
push dword [esi + 0x144]
call edi
test eax, eax
jne 0x40e13e
push dword [esi + 0x17c]
call edi
test eax, eax
jne 0x40e13e
xor esi, esi
lea ecx, [esp + 0x18]
call fcn.00411d38
mov eax, esi
jmp 0x40dfd3
mov eax, dword [esi + 0x13c]
lea edi, [esi + 8]
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 4]
test eax, eax
jne 0x40e15e
push dword [esi + 0x174]
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [esi + 0x148]
lea edi, [esi + 0x2c]
mov ecx, dword [edi]
push eax
push edi
call dword [ecx]
test eax, eax
jne 0x40e17c
push dword [esi + 0x180]
mov eax, dword [edi]
push edi
call dword [eax]
mov eax, dword [esi + 0x140]
test eax, eax
je 0x40e1a0
lea edi, [esi + 0x7c]
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 4]
test eax, eax
jne 0x40e1a0
push dword [esi + 0x178]
mov eax, dword [edi]
push edi
call dword [eax + 4]
push dword [esi + 0x144]
call fcn.0040fb68
test eax, eax
jne 0x40e1ba
push dword [esi + 0x17c]
call fcn.0040fb68
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040ebdd
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040ed68
mov ecx, esi
call fcn.0040f15b
lea ecx, [esp + 0x18]
call fcn.0040ee86
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040f4e9
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040f8fd
xor esi, esi
inc esi
jmp 0x40e12e