Function at 0x4034f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4102b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebx
call fcn.00404670
lea eax, [esp + 0x5c]
mov ebp, 1
push eax
mov dword [esp + 0x16c], ebp
call fcn.00403900
add esp, 4
test al, al
jne 0x403575
mov esi, dword [esp + 0x170]
mov cl, byte [esp + 0x13]
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00401ce0
mov edi, 0x417418
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x417418
mov ecx, esi
call fcn.00404450
mov dword [esp + 0x14], ebp
jmp 0x4037ec
lea edx, [esp + 0x5c]
push 0x41451c
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40364f
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
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 + 0x20]
call fcn.00404450
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x168], 2
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00404390
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4035fa
mov eax, 0x4111b0
push eax
call fcn.00404f80
mov esi, dword [esp + 0x174]
mov al, byte [esp + 0x17]
add esp, 4
mov ecx, esi
mov byte [esi], al
push ebx
call fcn.00401ce0
mov edi, 0x417418
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x417418
mov ecx, esi
call fcn.00404450
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x16c], 1
call fcn.00401ce0
jmp 0x4037ec
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004046f0
push ebx
push 0x414500
push 0x4144f8
lea ecx, [esp + 0x34]
call fcn.004047e0
mov ebp, eax
mov esi, 1
cmp ebp, esi
jb 0x4037b2
lea edx, [esp + 0x44]
push 0xa
push edx
push esi
call fcn.0040903e
mov al, byte [esp + 0x1f]
add esp, 0xc
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
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 + 0x3c]
call fcn.00404450
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x168], 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00404390
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x4036f2
mov eax, 0x4111b0
push 0x417418
push 0x4144f0
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00404870
mov edi, 0x414544
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x168], 4
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x20]
not ecx
dec ecx
push ecx
push 0x414544
push eax
push ebx
lea ecx, [esp + 0x28]
call fcn.004026d0
cmp eax, ebx
je 0x403818
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x403764
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40375b
cmp al, 0xff
je 0x40375b
dec al
mov byte [ecx], al
jmp 0x403764
push ecx
call fcn.00405716
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
cmp eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x168], 1
je 0x40379d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403794
cmp al, 0xff
je 0x403794
dec al
mov byte [ecx], al
jmp 0x40379d
push ecx
call fcn.00405716
add esp, 4
inc esi
mov dword [esp + 0x38], ebx
cmp esi, ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
jbe 0x403680
mov esi, dword [esp + 0x170]
mov cl, byte [esp + 0x13]
mov edi, 0x417418
xor eax, eax
mov byte [esi], cl
or ecx, 0xffffffff
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x417418
mov ecx, esi
call fcn.00404450
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x168], 0
call fcn.004046b0
mov eax, esi
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x403825
mov eax, 0x4111b0
push 0x417418
push 0x414538
lea ecx, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00404870
mov esi, dword [eax + 4]
mov byte [esp + 0x168], 5
cmp esi, ebx
jne 0x403852
mov esi, 0x4111b0
mov ebp, dword [esp + 0x170]
mov dl, byte [esp + 0x13]
push ebx
mov ecx, ebp
mov byte [ebp], dl
call fcn.00401ce0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402070
test al, al
je 0x40389f
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00402050
push 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x18], 1
mov byte [esp + 0x16c], 4
call fcn.00401ce0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 3
call fcn.00401ce0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x16c], 1
call fcn.00401ce0
lea ecx, [esp + 0x28]
mov byte [esp + 0x168], 0
call fcn.004046b0
mov eax, ebp
jmp 0x4037ff