Function at 0x421420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x648725
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x6c3afc]
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 eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
push 0xffffffffffffffff
mov dword [ebp - 0xdc], edi
xor ecx, ecx
push edi
mov word [ebp - 0x48], cx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
call fcn.00403240
mov dword [ebp - 4], edi
cmp dword [ebp - 0x38], edi
jne 0x4216ae
cmp byte [esi + 0xe4], 0
je 0x4214a6
lea esi, [ebp - 0x9c]
call fcn.004325f0
mov byte [ebp - 4], 1
lea ebx, [edi + 1]
jmp 0x4214b9
lea esi, [ebp - 0xd4]
call fcn.004325c0
mov ebx, 2
mov dword [ebp - 4], ebx
xor edx, edx
mov esi, 7
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
call fcn.00402260
mov dword [ebp - 4], 3
test bl, 2
je 0x421515
and ebx, 0xfffffffd
cmp dword [ebp - 0xc0], 8
jb 0x421500
mov eax, dword [ebp - 0xd4]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], edi
mov word [ebp - 0xd4], cx
mov byte [ebp - 4], 5
test bl, 1
je 0x42154b
cmp dword [ebp - 0x88], 8
jb 0x421536
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], ax
lea esi, [ebp - 0x80]
call fcn.00432620
mov esi, eax
mov ecx, dword [ebp - 0xd8]
add ecx, 0xac
push ecx
lea edx, [ebp - 0xb8]
push edx
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.0040ac60
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 7
call fcn.0040ada0
add esp, 0x14
mov esi, 8
cmp dword [ebp - 0xa4], esi
jb 0x4215a3
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.004effaf
add esp, 4
mov edi, 7
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x6c], esi
jb 0x4215d4
mov eax, dword [ebp - 0x80]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x1c], ebx
je 0x421600
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4215f0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
jne 0x421642
cmp dword [ebp - 0x18], esi
jb 0x421611
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x42162e
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
cmp dword [ebp - 0x34], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
jmp 0x421778
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.00434a70
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.00402260
cmp dword [ebp - 0x88], esi
jb 0x421675
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004effaf
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x421686
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], bl
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], esi
jb 0x4216a6
mov edx, dword [ebp - 0x64]
push edx
call fcn.004effaf
add esp, 4
mov esi, dword [ebp - 0xd8]
xor edi, edi
push 0x688728
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.0040aa60
add esp, 0xc
lea edx, [ebp - 0x48]
push edx
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040ad50
add esp, 0xc
cmp dword [eax + 0x10], edi
jne 0x4216e4
xor bl, bl
jmp 0x4216f8
cmp dword [eax + 0x14], 8
jb 0x4216ec
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp - 0x6c], 8
jb 0x42170a
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov byte [ebp - 4], dl
cmp dword [ebp - 0xa4], 8
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], dx
jb 0x421735
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004effaf
add esp, 4
test bl, bl
je 0x421774
lea ecx, [ebp - 0x48]
add esi, 4
push ecx
mov ecx, esi
call fcn.004345f0
test al, al
je 0x421774
mov edx, dword [ebp - 0xd8]
push esi
lea ecx, [ebp - 0x48]
call fcn.00433fa0
test al, al
je 0x421774
cmp dword [ebp - 0x34], 8
jb 0x421770
mov edx, dword [ebp - 0x48]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
jmp 0x42178b
cmp dword [ebp - 0x34], 8
jb 0x421786
mov eax, dword [ebp - 0x48]
push eax
call fcn.004effaf
add esp, 4
mov eax, 0x80
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.005dd8e2
mov esp, ebp
pop ebp
ret 4