Function at 0x45a24a
Capabilities:
Check if file exists

Disassembly:
push 0x14c
mov eax, 0x59e924
call fcn.004485f1
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.0044e694
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.0044e1d9
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0044e88e
add esp, 0x18
mov esi, dword [edi]
mov byte [ebp - 4], 2
jmp 0x45a2e4
cmp dword [esi + 0x14], 0x10
jb 0x45a2b6
mov eax, dword [esi]
jmp 0x45a2b8
mov eax, esi
push eax
lea ecx, [ebp - 0x40]
call fcn.0040a830
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044f766
neg eax
lea ecx, [ebp - 0x40]
push 0
sbb al, al
add al, 1
jne 0x45a31b
push 1
call fcn.00405c42
add esi, 0x18
cmp esi, dword [edi + 4]
jne 0x45a2ac
xor ebx, ebx
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00405c42
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.00401de0
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00401de0
mov eax, esi
call fcn.0044859b
ret 8
xor esi, esi
inc esi
push esi
call fcn.00405c42
push ebx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00459f5c
cmp byte [ebp + 8], 0
mov byte [ebp - 4], 3
je 0x45a35a
push ebx
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0045a0ca
push eax
lea ecx, [ebp - 0x28]
call fcn.00404050
push 0
push esi
lea ecx, [ebp - 0x40]
call fcn.00401de0
cmp dword [edi + 0x38], 0
lea eax, [ebp - 0x28]
jbe 0x45a464
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 0x45a39d
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00404150
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00459c06
test al, al
je 0x45a5d0
lea eax, [edi + 0x28]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00404150
mov ecx, edi
call fcn.00459a65
test al, al
jne 0x45a406
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00404150
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00459c06
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x45a406
lea eax, [edi + 0x28]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00404150
mov ecx, edi
call fcn.00459a65
test al, al
je 0x45a5d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x45a41f
sub esp, 0x18
mov ecx, esp
jmp 0x45a495
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.004592ca
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x158]
call fcn.0045b03b
mov esi, dword [eax + 8]
add esi, dword [eax]
lea eax, [esi + 0xa]
push eax
call fcn.0041a976
xor ebx, ebx
jmp 0x45a515
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00404150
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00459c06
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 0x45a4ab
push ebx
call fcn.004054cf
mov ecx, edi
call fcn.00459aec
mov esi, eax
xor ebx, ebx
jmp 0x45a564
lea eax, [ebp - 0x28]
push eax
call fcn.00404150
lea eax, [ebp - 0x40]
push eax
call fcn.00458d0e
mov ecx, dword [ebp - 0x90]
add esp, 0x1c
push eax
call fcn.00404050
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.00401de0
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.004592ca
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x158]
call fcn.0045b03b
mov esi, dword [eax + 8]
add esi, dword [eax]
lea eax, [esi + 0xa]
push eax
call fcn.0041a976
lea ecx, [esi + 1]
mov dword [edi + 0x94], eax
push ecx
push ebx
push eax
call fcn.0045ef40
add esp, 0x10
lea ecx, [ebp - 0x158]
push ebx
push ebx
push ebx
call fcn.0045ad0e
push ebx
push esi
push dword [edi + 0x94]
lea ecx, [ebp - 0x158]
call fcn.0044d559
lea ecx, [ebp - 0x158]
call fcn.0044d163
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 3
call fcn.00459812
test esi, esi
je 0x45a5d2
lea ecx, [ebp - 0x89]
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
call fcn.004179d8
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.0045d0b2
cmp dword [ebp - 0x9c], 0
je 0x45a5d6
cmp dword [ebp - 0x98], 0
je 0x45a5d6
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
call fcn.0045ce25
pop ecx
pop ecx
mov esi, eax
jmp 0x45a5d8
xor ebx, ebx
mov esi, ebx
jmp 0x45a5e3
mov esi, ebx
lea ecx, [ebp - 0x89]
call fcn.004902f0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401de0
jmp 0x45a2ed