Function at 0x4039f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f7cb
mov eax, dword fs:[0]
push eax
sub esp, 0x558
mov eax, dword [0x4785c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x560], ecx
push 0x46781f
lea ecx, [ebp - 0x230]
call fcn.00402250
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x403a69
mov dword [ebp - 0x550], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004022d0
mov eax, dword [ebp - 0x550]
jmp 0x403d22
lea edx, [ebp - 0x33c]
push edx
mov ecx, dword [ebp - 0x560]
add ecx, 4
call fcn.00406830
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x560]
add ecx, 4
call fcn.004067e0
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x560]
add ecx, 4
call fcn.004068f0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x120], 0
jmp 0x403acd
mov edx, dword [ebp - 0x120]
add edx, 1
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp + 0xc]
jge 0x403c7b
mov ecx, dword [ebp - 0x120]
imul ecx, ecx, 0x31c
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0x10a]
cmp eax, 1
je 0x403afa
jmp 0x403abe
push 0x104
push 0
lea ecx, [ebp - 0x54c]
push ecx
call fcn.00446170
add esp, 0xc
mov edx, dword [ebp - 0x120]
imul edx, edx, 0x31c
mov eax, dword [ebp + 8]
cmp dword [eax + edx + 0x104], 0
jne 0x403b5f
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x54c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x120]
imul eax, eax, 0x31c
add eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x54c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x403bf5
mov edx, dword [ebp - 0x120]
imul edx, edx, 0x31c
mov eax, dword [ebp + 8]
cmp dword [eax + edx + 0x104], 2
jne 0x403bab
lea ecx, [ebp - 0x33c]
push ecx
lea edx, [ebp - 0x54c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x120]
imul eax, eax, 0x31c
add eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x54c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x403bf5
mov edx, dword [ebp - 0x120]
imul edx, edx, 0x31c
mov eax, dword [ebp + 8]
cmp dword [eax + edx + 0x104], 3
jne 0x403bf5
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x54c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x120]
imul eax, eax, 0x31c
add eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x54c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x54c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403c5f
lea eax, [ebp - 0x54c]
push eax
push 0x46a3c8
lea ecx, [ebp - 0x230]
push ecx
call fcn.00403100
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x554], esp
lea edx, [ebp - 0x230]
push edx
call fcn.00402230
mov dword [ebp - 0x564], eax
mov ecx, 0x485028
call fcn.0041bfb0
mov eax, dword [ebp - 0x120]
imul eax, eax, 0x31c
mov ecx, dword [ebp + 8]
mov byte [ecx + eax + 0x109], 0
jmp 0x403c76
mov edx, dword [ebp - 0x120]
imul edx, edx, 0x31c
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x109], 1
jmp 0x403abe
mov dword [ebp - 0x120], 0
jmp 0x403c96
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp + 0xc]
jge 0x403d00
mov eax, dword [ebp - 0x120]
imul eax, eax, 0x31c
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax + 0x10a]
cmp edx, 1
je 0x403cbf
jmp 0x403c87
mov eax, dword [ebp - 0x120]
imul eax, eax, 0x31c
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax + 0x109]
test edx, edx
jne 0x403cfe
mov dword [ebp - 0x558], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004022d0
mov eax, dword [ebp - 0x558]
jmp 0x403d22
jmp 0x403c87
mov dword [ebp - 0x55c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004022d0
mov eax, dword [ebp - 0x55c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441de6
mov esp, ebp
pop ebp
ret 8