Function at 0x457520
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xf4
mov eax, 0x5de36b
call fcn.005d2642
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xfc], edi
push edi
xor eax, eax
mov dword [ebp - 4], edi
mov ebx, 0x5e266c
mov dword [ebp - 0x14], 7
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
call fcn.00403000
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.0047502a
call fcn.00454a62
test al, al
je 0x45758f
push ecx
push ebp
push eax
pop esp
pop ecx
push edx
pop esp
pop ebp
pop ecx
push esp
push ebx
push edx
pop edi
pop esp
pop ebp
pop edx
push edx
push ecx
pop ecx
xor edi, edi
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457800
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push edi
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe8], eax
cmp eax, 0xffffffff
jne 0x4575e3
push ebx
mov ecx, esi
call fcn.00403740
jmp 0x45780b
call fcn.004546e1
test al, al
je 0x457604
push esp
pop esp
pop ecx
pop eax
pop ecx
push esi
pop esp
push edx
push esi
pop ecx
pop eax
pop ebp
pop edx
push edx
pop esi
push ebx
pop edx
pop ecx
mov esi, dword [ebp - 0xf4]
call fcn.004546e1
test al, al
je 0x45762d
push ecx
push ebx
pop ecx
pop eax
pop eax
push ebp
push ebp
push ebp
push eax
pop eax
push ebx
pop ecx
pop ebx
pop edx
pop edx
pop edi
push edx
push edx
push eax
push eax
push edi
push ecx
pop ebx
pop eax
pop ebp
pop ecx
push eax
pop ecx
pop esp
push eax
pop esp
pop edi
call fcn.0045483a
test al, al
je 0x457649
pop ebx
pop ecx
push eax
pop edx
push edx
push edx
pop edx
pop eax
pop ecx
push esp
push esi
pop ecx
pop edi
push ecx
push ebx
push esp
push esp
push ebx
pop ebp
xor edi, edi
push edi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf0], eax
inc eax
push eax
mov dword [ebp - 0xf8], eax
call fcn.00451376
mov ebx, eax
mov dword [ebp - 0xec], ebx
pop ecx
test ebx, ebx
jne 0x457682
push 0x5e266c
jmp 0x4575d7
call fcn.004543ea
test al, al
je 0x45769b
push edi
pop esi
push ebx
push esi
push ebx
pop eax
push esi
push esp
push ebp
push edi
pop esi
push ebx
pop esp
pop esi
pop ebp
push esp
call fcn.00454726
test al, al
je 0x4576bc
push ebp
push ebx
push ebp
pop ebx
pop esi
push edi
pop edi
push edx
pop edi
pop eax
push edi
pop ebp
pop esp
pop esp
push edi
pop ecx
mov ebx, dword [ebp - 0xec]
xor edi, edi
push dword [ebp - 0xf8]
push edi
push ebx
call fcn.0047be90
add esp, 0xc
lea eax, [ebp - 0x100]
push edi
push eax
push dword [ebp - 0xf0]
push ebx
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.00454543
test al, al
je 0x45770d
pop ecx
pop eax
pop edx
pop esi
pop ebx
push edi
push esi
push esi
pop edx
pop eax
pop esp
push ebx
pop ecx
pop ebx
pop ebp
pop edx
push ebx
pop eax
pop eax
pop ebp
push eax
pop ebp
push esi
mov ebx, dword [ebp - 0xec]
call fcn.004544b9
test al, al
je 0x457727
pop esi
push edx
push edx
pop edi
pop esi
pop eax
pop esi
push edi
push esi
pop edx
pop edi
push ebx
pop esp
push edi
pop ecx
push eax
pop edx
call fcn.0045483a
test al, al
je 0x45774a
push edx
pop edi
push esp
push eax
push eax
pop esp
pop ebp
pop edi
pop eax
push edx
pop edx
push esi
push ecx
push eax
push edx
push ebp
pop edi
push ebx
pop edi
pop eax
push esi
pop edx
pop edx
pop esp
pop ebp
push edi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xf0]
lea ecx, [ebp - 0xe4]
push ebx
call fcn.004759f8
push ebx
call fcn.0045137f
pop ecx
call fcn.004549d8
test al, al
je 0x457792
push eax
push edi
pop edi
push ecx
pop ebx
push edi
pop edi
pop eax
pop esp
pop eax
pop edx
push eax
pop ebp
pop esp
pop ecx
push esi
pop edx
pop ebx
push edi
pop ebx
push eax
pop ecx
push ebx
pop edi
push esi
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00475243
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0045a966
pop ecx
pop ecx
xor edi, edi
mov byte [ebp - 4], 4
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.0040c250
call fcn.004547b0
test al, al
je 0x4577db
pop eax
push esi
pop eax
pop esp
pop edx
pop ebp
pop ebx
push edi
push edx
push edi
pop edx
push edx
push ebp
push eax
push ebp
push edx
cmp dword [ebp - 0x30], edi
jbe 0x4577ef
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402ee0
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.0041e4c0
mov esi, dword [ebp - 0xf4]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00456158
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.0041e4c0
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.0041e4c0
mov eax, esi
call fcn.005d25ec
ret