Function at 0x409180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b50d0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
call fcn.00409420
add esp, 4
cmp dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
jne 0x40923a
lea eax, [ebp - 0x2c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.004071a0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x409215
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00404c20
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x4093f5
inc ecx
push ecx
jmp 0x4093ea
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x5c
push eax
lea ecx, [ebp - 0x44]
call fcn.00409eb0
mov edi, eax
cmp edi, 0xffffffff
je 0x4092ed
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov byte [ebp - 0x14], 0x5c
cmp dword [ebp - 0x30], 0x10
lea eax, [edi + 1]
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004047a0
push 0x4df9d4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00406200
add esp, 0xc
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
cmovae eax, dword [ebp - 0x5c]
push eax
call ebx
test eax, eax
jne 0x409329
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x4092bb
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00404c20
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x2c]
push 1
mov byte [eax], 0
lea eax, [edi - 1]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00409eb0
mov edi, eax
cmp edi, 0xffffffff
jne 0x409263
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jae 0x40938f
mov eax, dword [ebp - 0x1c]
add eax, 1
je 0x40939b
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.00448ae0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
jmp 0x40939b
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jae 0x40935d
mov eax, dword [ebp - 0x4c]
add eax, 1
je 0x409369
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.00448ae0
mov ecx, dword [ebp - 0x48]
add esp, 0xc
jmp 0x409369
mov eax, dword [ebp - 0x5c]
mov dword [esi], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x14], ecx
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x4093ce
inc eax
jmp 0x4093c2
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
mov eax, 0xf
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x4093d1
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.00404c20
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
cmp eax, 0x10
jb 0x4093f5
inc eax
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00404c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret