Function at 0x408938
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48ddb5
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x824], eax
push esi
push edi
mov eax, dword [0x4be8a0]
xor eax, esp
push eax
lea eax, [esp + 0x838]
mov dword fs:[0], eax
mov esi, ecx
test ebx, ebx
jne 0x4089a2
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.0046711a
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call edi
test eax, eax
je 0x40897d
push ebx
call fcn.004673c7
pop ecx
cmp eax, 0x200
jae 0x40897d
push 0x800
lea eax, [esp + 0x30]
push 0
push eax
call fcn.004670a0
add esp, 0xc
push 0x3ff
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.00467050
add esp, 0xc
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.004027ab
and dword [esp + 0x840], 0
push ebx
lea ecx, [esp + 0x18]
call fcn.004027ab
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.004064ee
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x408a39
call fcn.00402844
mov byte [esp + 0x840], 4
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x408a4e
call fcn.00402844
cmp dword [esp + 0x1c], 0
jne 0x408a63
lea ecx, [esp + 0x18]
call fcn.004060fa
jmp 0x40897d
push dword [esi + 0x188]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.00408bb0
push dword [esi + 0x154]
call edi
test eax, eax
jne 0x408a91
push dword [esi + 0x18c]
call edi
test eax, eax
je 0x408a55
push dword [esi + 0x160]
call edi
test eax, eax
jne 0x408aa9
push dword [esi + 0x198]
call edi
test eax, eax
je 0x408a55
push dword [esi + 0x158]
call edi
test eax, eax
jne 0x408ac1
push dword [esi + 0x190]
call edi
test eax, eax
je 0x408a55
push dword [esi + 0x15c]
call edi
test eax, eax
jne 0x408aeb
push dword [esi + 0x194]
call edi
test eax, eax
jne 0x408aeb
xor esi, esi
lea ecx, [esp + 0x18]
call fcn.004060fa
mov eax, esi
jmp 0x40897f
mov eax, dword [esi + 0x154]
lea edi, [esi + 8]
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 4]
test eax, eax
jne 0x408b0b
push dword [esi + 0x18c]
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [esi + 0x160]
lea edi, [esi + 0x2c]
mov ecx, dword [edi]
push eax
push edi
call dword [ecx]
test eax, eax
jne 0x408b29
push dword [esi + 0x198]
mov eax, dword [edi]
push edi
call dword [eax]
mov eax, dword [esi + 0x158]
test eax, eax
je 0x408b50
lea edi, [esi + 0x94]
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 4]
test eax, eax
jne 0x408b50
push dword [esi + 0x190]
mov eax, dword [edi]
push edi
call dword [eax + 4]
push dword [esi + 0x15c]
call fcn.0040a1f2
test eax, eax
jne 0x408b6a
push dword [esi + 0x194]
call fcn.0040a1f2
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00409552
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00409692
mov ecx, esi
call fcn.00409a18
lea ecx, [esp + 0x18]
call fcn.0040976e
push esi
lea ecx, [esp + 0x1c]
call fcn.00409cf7
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040a091
xor esi, esi
inc esi
jmp 0x408adb