Function at 0x420776
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x64]
push ebx
push esi
push edi
push eax
call fcn.00409846
lea ecx, [ebp - 0x64]
call fcn.00432ec3
xor esi, esi
test al, al
jne 0x4207ae
xor edi, edi
inc edi
jmp 0x420a19
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x4207ba
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x420856
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00409846
push 0x53fe1c
lea ecx, [ebp - 0x1c]
call fcn.004058f0
push ecx
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
call fcn.0045a720
pop ecx
push esi
push 1
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.0040536f
test bl, bl
je 0x420829
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
dec eax
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.004075ee
push eax
lea ecx, [ebp - 0x7c]
call fcn.004075c9
push esi
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040536f
cmp dword [ebp - 0x68], 8
mov ecx, dword [ebp - 0x7c]
jae 0x420835
lea ecx, [ebp - 0x7c]
call fcn.0040b105
lea ecx, [ebp - 0x7c]
push esi
push 1
test eax, eax
jne 0x420851
call fcn.0040536f
push 2
pop edi
jmp 0x420a19
call fcn.0040536f
call fcn.00464040
push 3
pop edi
push ecx
cmp eax, edi
lea eax, [ebp - 0x64]
push ecx
mov ecx, esp
setge bh
push eax
call fcn.004050d6
lea ecx, [ebp - 0x34]
call fcn.00458fb0
push ecx
push ecx
xor eax, eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
mov esi, esp
mov eax, 0x54a6b8
mov dword [ebp - 0x38], 7
push eax
mov dword [esi], eax
call fcn.004049e1
pop ecx
mov dword [esi + 4], eax
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x1c]
push eax
call fcn.00459bb0
mov ecx, eax
call fcn.00457b40
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00459030
test bl, bl
je 0x42097e
push ecx
push ecx
mov esi, esp
mov eax, 0x54a6b8
push eax
mov dword [esi], eax
call fcn.004049e1
pop ecx
mov dword [esi + 4], eax
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x1c]
push eax
call fcn.00459bb0
push eax
lea ecx, [ebp - 0x34]
call fcn.00459060
lea ecx, [ebp - 0x1c]
call fcn.00459030
cmp dword [ebp - 0x20], 8
mov ecx, dword [ebp - 0x34]
jae 0x420900
lea ecx, [ebp - 0x34]
call fcn.0040bcb4
push ecx
push ecx
mov esi, esp
mov eax, 0x54a6d0
push eax
mov dword [esi], eax
call fcn.004049e1
pop ecx
mov dword [esi + 4], eax
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x1c]
push eax
call fcn.00459bb0
mov ecx, eax
call fcn.00457b40
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00459030
test bl, bl
je 0x42097e
push ecx
push ecx
mov esi, esp
mov eax, 0x54a6d0
push eax
mov dword [esi], eax
call fcn.004049e1
pop ecx
mov dword [esi + 4], eax
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x1c]
push eax
call fcn.00459bb0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00459060
lea ecx, [ebp - 0x1c]
call fcn.00459030
cmp dword [ebp - 0x38], 8
mov ecx, dword [ebp - 0x4c]
jae 0x420979
lea ecx, [ebp - 0x4c]
call fcn.0040bcb4
cmp dword [ebp - 0x20], 8
mov ecx, dword [ebp - 0x34]
jae 0x42098a
lea ecx, [ebp - 0x34]
mov dl, bh
call fcn.0040b24a
test al, al
jne 0x4209ae
cmp dword [ebp - 0x80], 0
jne 0x420a01
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x4209a7
lea ecx, [ebp - 0x64]
call fcn.0040b818
jmp 0x420a01
cmp dword [ebp - 0x3c], 0
je 0x4209cb
cmp dword [ebp - 0x38], 8
mov ecx, dword [ebp - 0x4c]
jae 0x4209c0
lea ecx, [ebp - 0x4c]
mov dl, bh
call fcn.0040b24a
test al, al
je 0x420a01
cmp dword [ebp + 0xc], 0
je 0x420a05
push ecx
push ecx
lea eax, [ebp - 0x64]
mov ecx, esp
push eax
call fcn.004050d6
lea ecx, [ebp - 0x1c]
call fcn.00458fb0
mov edx, dword [ebp + 0xc]
mov ecx, eax
call fcn.00432e1b
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00459030
test bl, bl
jne 0x420a05
push 4
pop edi
xor esi, esi
jmp 0x420a09
xor esi, esi
mov edi, esi
lea ecx, [ebp - 0x4c]
call fcn.00459030
lea ecx, [ebp - 0x34]
call fcn.00459030
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.0040536f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8