Function at 0x452d40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2b26
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x54c1b4]
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.0040a7a0
add esp, 4
mov esi, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x6c], esi
jb 0x452da3
mov eax, dword [ebp - 0x80]
push eax
call fcn.004bb4d8
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 0x452dd2
cmp dword [ebp - 0x18], esi
jb 0x453063
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
jmp 0x453063
push 0x5118c8
mov ebx, 1
lea edi, [ebp - 0x2c]
call fcn.004100a0
cmp eax, 0xffffffff
jne 0x452e03
cmp dword [ebp - 0x18], esi
jb 0x453063
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
jmp 0x453063
push eax
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00407470
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00407a10
mov esi, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], esi
jb 0x452e3b
mov edx, dword [ebp - 0x48]
push edx
call fcn.004bb4d8
add esp, 4
push 1
push ebx
push 0x5118c8
lea ecx, [ebp - 0x2c]
call fcn.004139b0
cmp eax, 0xffffffff
je 0x452de9
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.00407470
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00407a10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
jb 0x452e89
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x1c]
push 0x512d88
mov edi, 2
lea ecx, [ebp - 0x2c]
call fcn.00406090
test eax, eax
jne 0x45305b
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.00408f30
mov edi, 8
add esp, 0xc
mov byte [ebp - 4], 7
mov bl, al
cmp dword [ebp - 0x34], edi
jb 0x452f29
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
add esp, 4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test bl, bl
je 0x452f45
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x452f3e
lea eax, [ebp - 0x64]
push eax
call esi
test eax, eax
jne 0x452f97
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.00408f30
add esp, 0xc
mov byte [ebp - 4], 7
mov bl, al
cmp dword [ebp - 0x34], edi
jb 0x452f85
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
add esp, 4
test bl, bl
je 0x452f97
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x452f94
lea eax, [ebp - 0x64]
push eax
call esi
call fcn.0040da80
test al, al
je 0x452fed
push 0x511968
lea ecx, [ebp - 0x80]
call fcn.00408170
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call fcn.00403d40
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], edi
jb 0x452fc4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x452fcf
lea ecx, [ebp - 0x64]
push eax
push ecx
call fcn.0040e600
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.00407bb0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00401ea0
push 0x511968
lea ecx, [ebp - 0x48]
call fcn.00408170
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 0x453028
lea esi, [ebp - 0xd4]
push 0x10
call fcn.00432750
add esp, 4
lea ecx, [ebp - 0xd4]
call fcn.00407bb0
lea ecx, [ebp - 0x9c]
call fcn.00407bb0
lea ecx, [ebp - 0xb8]
call fcn.00407bb0
lea ecx, [ebp - 0x64]
call fcn.00407bb0
lea ecx, [ebp - 0x2c]
call fcn.00407bb0
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.004bb4e3
mov esp, ebp
pop ebp
ret