Function at 0x402ff0
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x410253
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.00404670
lea eax, [esp + 0xac]
xor ebx, ebx
push eax
mov dword [esp + 0x1bc], ebx
call fcn.00403900
add esp, 4
test al, al
je 0x4030f4
lea ecx, [esp + 0xac]
push 0x41451c
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0xac]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403123
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x80]
mov byte [esp + 0x80], al
call fcn.00401ce0
mov edi, 0x414508
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x414508
lea ecx, [esp + 0x84]
call fcn.00404450
lea edi, [esp + 0xac]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1b8], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x84]
call fcn.00404390
mov eax, dword [esp + 0x80]
cmp eax, ebx
jne 0x4030d9
mov eax, 0x4111b0
push eax
call fcn.00404f80
add esp, 4
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1b8], bl
push 1
call fcn.00401ce0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.004046b0
xor eax, eax
mov ecx, dword [esp + 0x1b0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1ac
ret
lea edx, [esp + 0xac]
lea ecx, [esp + 0x14]
push edx
call fcn.004046f0
push ebx
push 0x414500
push 0x4144f8
lea ecx, [esp + 0x20]
call fcn.004047e0
mov ebp, 1
mov dword [esp + 0x48], eax
cmp eax, ebp
jb 0x4030f4
mov esi, dword [esp + 0x1c0]
lea eax, [esp + 0x40]
push 0xa
push eax
push ebp
call fcn.0040903e
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
push ebx
call fcn.00401ce0
mov edi, 0x4144f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4144f8
lea ecx, [esp + 0x28]
call fcn.00404450
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x1b8], 2
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00404390
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x4031ce
mov eax, 0x4111b0
push 0x417418
push 0x4144f0
push eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x24]
call fcn.00404870
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1b8], 3
cmp eax, ebx
jne 0x4031fc
mov eax, 0x4111b0
push 0x417418
push 0x4144e4
lea ecx, [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404870
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1b8], 4
cmp eax, ebx
jne 0x40322a
mov eax, 0x4111b0
push ebx
push 0x4144dc
push eax
lea ecx, [esp + 0x20]
call fcn.004047e0
lea edx, [esp + 0x6c]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00401030
lea ecx, [esp + 0x64]
lea edx, [esp + 0x94]
push ecx
push edx
mov byte [esp + 0x1c8], 5
call fcn.00401030
add esp, 0x10
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x1bc], 6
mov byte [esp + 0xa0], al
call fcn.00401ce0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0xa4]
call fcn.00404450
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x4c]
push ecx
push edx
mov byte [esp + 0x1c0], 7
call fcn.00401030
add esp, 8
push 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0x1bc], 9
call fcn.00401ce0
mov edi, 0x4144d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x38]
not ecx
dec ecx
push ecx
push 0x4144d4
push eax
push ebx
lea ecx, [esp + 0x40]
call fcn.004026d0
cmp eax, ebx
je 0x403325
mov eax, dword [esp + 0x50]
cmp eax, ebx
jne 0x403308
mov eax, 0x4111b0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
push ecx
push eax
push edx
push ebx
lea ecx, [esp + 0x40]
call fcn.004026d0
cmp eax, ebx
je 0x40345b
mov eax, dword [esp + 0x50]
cmp eax, ebx
jne 0x403332
mov eax, 0x4111b0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x94]
push ecx
push eax
push edx
push ebx
lea ecx, [esp + 0x9c]
call fcn.004026d0
cmp eax, ebx
je 0x40345b
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x1bc], 6
call fcn.00401ce0
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0x1bc], 5
call fcn.00401ce0
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x4033a3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40339a
cmp al, 0xff
je 0x40339a
dec al
mov byte [ecx], al
jmp 0x4033a3
push ecx
call fcn.00405716
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp + 0x34], ebx
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
je 0x4033d4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4033cb
cmp al, 0xff
je 0x4033cb
dec al
mov byte [ecx], al
jmp 0x4033d4
push ecx
call fcn.00405716
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x60], ebx
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
je 0x403405
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4033fc
cmp al, 0xff
je 0x4033fc
dec al
mov byte [ecx], al
jmp 0x403405
push ecx
call fcn.00405716
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], ebx
cmp eax, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov byte [esp + 0x1b8], bl
je 0x40343d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x403434
cmp al, 0xff
je 0x403434
dec al
mov byte [ecx], al
jmp 0x40343d
push ecx
call fcn.00405716
add esp, 4
mov eax, dword [esp + 0x48]
inc ebp
cmp ebp, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jbe 0x40315c
jmp 0x4030f4
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x1bc], 6
call fcn.00401ce0
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0x1bc], 5
call fcn.00401ce0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x1bc], 4
call fcn.00401ce0
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x1bc], 3
call fcn.00401ce0
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x1bc], 2
call fcn.00401ce0
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x1bc], bl
call fcn.00401ce0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.004046b0
mov eax, 1
jmp 0x40310a