Function at 0x452060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1976
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x54b1b4]
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
lea ecx, [ebp - 0x80]
call fcn.004037f0
xor edi, edi
push edi
mov ecx, eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0040a3d0
add esp, 4
mov esi, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x6c], esi
jb 0x4520c3
mov eax, dword [ebp - 0x80]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x1c], edi
jne 0x4520f2
cmp dword [ebp - 0x18], esi
jb 0x452383
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
add esp, 4
jmp 0x452383
push 0x51088c
mov ebx, 1
lea edi, [ebp - 0x2c]
call fcn.0040fcc0
cmp eax, 0xffffffff
jne 0x452123
cmp dword [ebp - 0x18], esi
jb 0x452383
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
add esp, 4
jmp 0x452383
push eax
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004070a0
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00407640
mov esi, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], esi
jb 0x45215b
mov edx, dword [ebp - 0x48]
push edx
call fcn.004ba3a4
add esp, 4
push 1
push ebx
push 0x51088c
lea ecx, [ebp - 0x2c]
call fcn.004135d0
cmp eax, 0xffffffff
je 0x452109
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004070a0
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00407640
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
jb 0x4521a9
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ba3a4
add esp, 4
mov eax, dword [ebp - 0x1c]
push 0x511b60
mov edi, 2
lea ecx, [ebp - 0x2c]
call fcn.00405fc0
test eax, eax
jne 0x45237b
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
xor edx, edx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.004037f0
push ebx
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x9c]
mov edx, eax
mov byte [ebp - 4], 8
call fcn.00408b60
mov edi, 8
add esp, 0xc
mov byte [ebp - 4], 7
mov bl, al
cmp dword [ebp - 0x34], edi
jb 0x452249
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ba3a4
add esp, 4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test bl, bl
je 0x452265
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x45225e
lea eax, [ebp - 0x64]
push eax
call esi
test eax, eax
jne 0x4522b7
lea ecx, [ebp - 0x48]
call fcn.004037f0
push 1
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x9c]
mov edx, eax
mov byte [ebp - 4], 9
call fcn.00408b60
add esp, 0xc
mov byte [ebp - 4], 7
mov bl, al
cmp dword [ebp - 0x34], edi
jb 0x4522a5
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ba3a4
add esp, 4
test bl, bl
je 0x4522b7
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x4522b4
lea eax, [ebp - 0x64]
push eax
call esi
call fcn.0040d6a0
test al, al
je 0x45230d
push 0x5108fc
lea ecx, [ebp - 0x80]
call fcn.00407da0
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call fcn.00403d40
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], edi
jb 0x4522e4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x4522ef
lea ecx, [ebp - 0x64]
push eax
push ecx
call fcn.0040e220
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.004077e0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00401ea0
push 0x5108fc
lea ecx, [ebp - 0x48]
call fcn.00407da0
lea ecx, [ebp - 0x48]
lea esi, [ebp - 0xd4]
mov byte [ebp - 4], 0xc
call fcn.00403c40
lea ecx, [ebp - 0x48]
call fcn.00401ea0
mov esi, dword [ebp - 0xd4]
cmp dword [ebp - 0xc0], edi
jae 0x452348
lea esi, [ebp - 0xd4]
push 0x10
call fcn.00431ca0
add esp, 4
lea ecx, [ebp - 0xd4]
call fcn.004077e0
lea ecx, [ebp - 0x9c]
call fcn.004077e0
lea ecx, [ebp - 0xb8]
call fcn.004077e0
lea ecx, [ebp - 0x64]
call fcn.004077e0
lea ecx, [ebp - 0x2c]
call fcn.004077e0
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.004ba3af
mov esp, ebp
pop ebp
ret