Function at 0x420790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da541
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x66f33c]
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, ecx
mov dword [ebp - 0x67c], esi
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0047be90
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0047be90
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0047be90
add esp, 0x24
call fcn.004543ea
test al, al
je 0x42081c
pop esp
pop ebx
push ebx
pop ebp
pop eax
pop ebp
push edi
push esi
push edi
pop edx
push edx
push ebp
push esp
push ebp
pop eax
push esi
push edx
lea eax, [ebp - 0x628]
mov ecx, esi
push eax
push str.8f3b1c
call fcn.0041fff0
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
push str.5a12f4
call fcn.0041fff0
call fcn.004543ea
test al, al
je 0x42085c
pop esp
pop ebx
push ebx
pop ebp
pop eax
pop ebp
push edi
push esi
push edi
pop edx
push edx
push ebp
push esp
push ebp
pop eax
push esi
push edx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
push str.88b6e8
call fcn.0041fff0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420a52
call fcn.00454543
test al, al
je 0x42089f
push ebp
pop esp
pop esi
push ecx
pop edi
push ebx
push ebx
push esi
pop ebp
pop ebp
push ebp
push ecx
push esp
pop edi
pop esi
push esp
push esp
pop ebx
xor eax, eax
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
cmp word [ebp - 0x218], ax
jne 0x4208c9
xor ecx, ecx
jmp 0x4208e1
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4208d2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.00403000
cmp dword [ebp - 0x630], 0
mov dword [ebp - 4], 0
je 0x4209a5
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.00458c77
add esp, 8
push 0xd
push str.WinShostD.dll
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 1
call fcn.00405290
lea ecx, [ebp - 0x678]
call fcn.00413650
cmp dword [ebp - 0x62c], 8
lea ecx, [ebp - 0x640]
lea eax, [ebp - 0x658]
mov byte [ebp - 4], 2
cmovae ecx, dword [ebp - 0x640]
cmp dword [ebp - 0x644], 8
push ecx
cmovae eax, dword [ebp - 0x658]
lea ecx, [ebp - 0x678]
push eax
call fcn.004141b0
lea ecx, [ebp - 0x678]
call fcn.00413760
mov eax, dword [ebp - 0x644]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4209a5
inc eax
lea ecx, [ebp - 0x658]
push eax
push dword [ebp - 0x658]
call fcn.00403100
call fcn.00454543
test al, al
je 0x4209c1
pop ebx
pop eax
pop edi
push esi
push esp
pop ecx
pop ecx
pop edi
pop ebp
pop esi
pop eax
pop edi
push edx
push esp
pop esi
pop ebx
pop eax
push esi
push esp
mov ecx, dword [ebp - 0x67c]
call fcn.0041ef00
lea eax, [ebp - 0x628]
push eax
call fcn.0045fdaa
add esp, 4
call fcn.004547f5
test al, al
je 0x4209f4
pop eax
push esp
pop eax
push esi
pop esi
push edx
push edi
push ebp
pop ecx
push ecx
push eax
push ebp
push ebx
push ecx
push eax
pop ebx
call fcn.004549d8
test al, al
je 0x420a0d
push ebx
pop edx
push esi
push edx
push esi
pop esp
push ecx
pop edx
pop ecx
pop ebx
push ebp
push esi
push ebx
pop ebp
push edx
pop edx
call fcn.00454657
test al, al
je 0x420a34
pop esi
push esp
pop ecx
push esp
push ecx
pop esi
pop esi
pop eax
pop eax
push ebx
push edi
push edi
pop ebp
push ebx
push ecx
push esp
pop edi
pop ecx
push esi
pop edx
push ebp
pop ecx
push edx
pop edi
push eax
pop esi
pop ebx
pop edx
pop eax
pop esp
mov eax, dword [ebp - 0x62c]
cmp eax, 8
jb 0x420a52
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00403100
xor eax, eax
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.0045132d
mov esp, ebp
pop ebp
ret