Function at 0x451d8b
Capabilities:
Check if file exists

Disassembly:
push 0x14c
mov eax, 0x4af296
call fcn.0047d2fc
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 0x10]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00440454
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0043f720
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00440737
add esp, 0x18
mov esi, dword [edi]
mov byte [ebp - 4], 2
jmp 0x451e25
cmp dword [esi + 0x14], 0x10
jb 0x451df7
mov eax, dword [esi]
jmp 0x451df9
mov eax, esi
push eax
lea ecx, [ebp - 0x40]
call fcn.0040c220
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.0043e789
neg eax
lea ecx, [ebp - 0x40]
push 0
sbb al, al
add al, 1
jne 0x451e5c
push 1
call fcn.0043c065
add esi, 0x18
cmp esi, dword [edi + 4]
jne 0x451ded
xor ebx, ebx
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.0043c065
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.00407970
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00407970
mov eax, esi
call fcn.0047d2b7
ret 8
xor esi, esi
inc esi
push esi
call fcn.0043c065
push ebx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00451a9d
cmp byte [ebp + 8], 0
mov byte [ebp - 4], 3
je 0x451e9b
push ebx
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00451c0b
push eax
lea ecx, [ebp - 0x28]
call fcn.00409bd0
push 0
push esi
lea ecx, [ebp - 0x40]
call fcn.00407970
cmp dword [edi + 0x38], 0
lea eax, [ebp - 0x28]
jbe 0x451fa5
cmp dword [ebp - 0x14], 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x451ede
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00409cd0
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.0045176a
test al, al
je 0x452111
lea eax, [edi + 0x28]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00409cd0
mov ecx, edi
call fcn.004515c9
test al, al
jne 0x451f47
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00409cd0
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.0045176a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x451f47
lea eax, [edi + 0x28]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00409cd0
mov ecx, edi
call fcn.004515c9
test al, al
je 0x452111
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x451f60
sub esp, 0x18
mov ecx, esp
jmp 0x451fd6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x158]
push 0x40
push 0x25
push eax
call fcn.00450e4c
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x158]
call fcn.00452c23
mov esi, dword [eax + 8]
add esi, dword [eax]
lea eax, [esi + 0xa]
push eax
call fcn.00434aea
xor ebx, ebx
jmp 0x452056
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00409cd0
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.0045176a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub esp, 0x18
mov ecx, esp
test eax, eax
jne 0x451fec
push ebx
call fcn.0043935a
mov ecx, edi
call fcn.00451650
mov esi, eax
xor ebx, ebx
jmp 0x4520a5
lea eax, [ebp - 0x28]
push eax
call fcn.00409cd0
lea eax, [ebp - 0x40]
push eax
call fcn.004482e2
mov ecx, dword [ebp - 0x90]
add esp, 0x1c
push eax
call fcn.00409bd0
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.00407970
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x158]
push 0x40
push 0x25
push eax
call fcn.00450e4c
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x158]
call fcn.00452c23
mov esi, dword [eax + 8]
add esi, dword [eax]
lea eax, [esi + 0xa]
push eax
call fcn.00434aea
lea ecx, [esi + 1]
mov dword [edi + 0x94], eax
push ecx
push ebx
push eax
call fcn.00459150
add esp, 0x10
lea ecx, [ebp - 0x158]
push ebx
push ebx
push ebx
call fcn.004528f6
push ebx
push esi
push dword [edi + 0x94]
lea ecx, [ebp - 0x158]
call fcn.00441caf
lea ecx, [ebp - 0x158]
call fcn.004418b9
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 3
call fcn.00451399
test esi, esi
je 0x452113
lea ecx, [ebp - 0x89]
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
call fcn.00408070
lea eax, [edi + 0x70]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
push eax
push esi
push dword [edi + 0x94]
lea ecx, [ebp - 0x89]
call fcn.00449cbd
cmp dword [ebp - 0x9c], 0
je 0x452117
cmp dword [ebp - 0x98], 0
je 0x452117
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
call fcn.0044a449
pop ecx
pop ecx
mov esi, eax
jmp 0x452119
xor ebx, ebx
mov esi, ebx
jmp 0x452124
mov esi, ebx
lea ecx, [ebp - 0x89]
call fcn.0044c160
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00407970
jmp 0x451e2e