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

Disassembly:
push 0xf4
mov eax, 0x5a02a3
call fcn.005980e1
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xfc], ecx
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
push 0x61d004
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00401d80
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.0043c1b8
call fcn.0042bb02
test al, al
je 0x429330
push eax
pop edx
pop edi
pop edi
push ebp
pop ecx
push ecx
push edi
push esp
push edi
push esi
push ebp
pop esi
pop ecx
pop esp
push esi
pop esp
push ecx
push esp
push eax
pop ecx
pop ecx
call fcn.0042bbd1
test al, al
je 0x429355
pop ebx
push ecx
pop edx
push ebp
push edx
pop edi
pop edi
pop esp
push ebp
pop esi
pop edx
pop ebp
pop esi
pop edx
push edi
pop ebp
push ebp
push edi
push ebp
pop edx
push ebp
push esi
pop esi
pop esi
pop ebp
push edx
push ebp
pop esp
call fcn.0042bb02
test al, al
je 0x429375
pop esi
push ebp
pop edx
pop edx
push ebp
push edi
pop eax
push ebp
pop edx
pop ecx
pop esp
push esp
pop edi
push esp
pop edx
push ebp
push esi
push edi
push edi
pop ebx
pop ebp
pop ebx
push esp
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 0x42963d
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xe8], esi
cmp esi, 0xffffffff
jne 0x4293e1
mov ecx, dword [ebp - 0xec]
push 0x61d004
call fcn.00401b60
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401d10
push edi
jmp 0x42965a
call fcn.0042be3e
test al, al
je 0x42940a
push edi
pop esp
push esp
pop edi
push esi
pop edx
push ecx
pop edx
push esi
pop edx
push esi
push eax
push esp
pop ebx
pop ebp
push ebx
pop ebx
push edx
push esp
pop ebp
push ebp
push edi
push ebp
pop esi
push ebx
pop ebx
mov esi, dword [ebp - 0xe8]
call fcn.0042bd2a
test al, al
je 0x429424
pop ebp
push esi
pop eax
pop esp
push ecx
pop ebp
push ebx
pop ebp
pop ecx
pop edi
push edi
pop ecx
push ecx
pop eax
pop ebx
push esp
pop edx
call fcn.0042ba33
test al, al
je 0x42943f
pop ecx
push esp
pop ebp
push esi
pop esp
pop eax
pop edi
push ebp
push esp
pop edi
push ecx
pop ecx
push edx
push ecx
pop ecx
push eax
push esp
push ecx
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf0], eax
inc eax
push eax
mov dword [ebp - 0xf8], eax
call fcn.004201b8
mov esi, eax
mov dword [ebp - 0xf4], esi
pop ecx
test esi, esi
jne 0x42947e
mov ecx, dword [ebp - 0xec]
push 0x61d004
call fcn.00401b60
jmp 0x42964e
call fcn.0042b9ee
test al, al
je 0x4294a8
pop eax
push edx
push edi
push esp
push ebp
pop ebp
pop eax
push eax
pop esi
push esi
pop eax
pop esp
push esi
push esi
push eax
push esp
push eax
push eax
pop ecx
push edx
pop esi
push edx
pop esp
pop eax
push esi
push ebp
push edx
mov esi, dword [ebp - 0xf4]
call fcn.0042bd2a
test al, al
je 0x4294cb
pop esp
push ebx
pop esp
pop esp
pop esp
pop edi
pop eax
pop eax
push esi
push esi
pop eax
push esi
push ebx
push eax
push ebp
push ebp
push ebp
push edi
pop edi
pop ebp
pop esp
push ebx
push ebp
pop ebx
xor ebx, ebx
push dword [ebp - 0xf8]
push ebx
push esi
call fcn.00443040
add esp, 0xc
lea eax, [ebp - 0x100]
push ebx
push eax
push dword [ebp - 0xf0]
push esi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.0042bc16
test al, al
je 0x429516
pop edx
pop ebx
pop esi
push edi
pop edi
push ecx
pop edx
push ebp
pop eax
pop ebp
push edx
push eax
push eax
pop edx
push edi
pop esp
pop eax
push ebx
pop edi
pop edx
push edx
pop eax
push esi
call fcn.0042b895
test al, al
je 0x429539
pop esp
push ebx
push eax
pop edi
pop ecx
pop edx
push ebp
push eax
pop ecx
push edi
pop eax
pop ebx
push edi
pop ecx
push ebx
pop edi
push eax
pop ecx
push edi
pop esp
push ebx
pop edi
push edx
pop edi
push edx
pop esi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xf0]
mov esi, dword [ebp - 0xf4]
lea ecx, [ebp - 0xe4]
push esi
call fcn.0043cb86
push esi
call fcn.004201b3
pop ecx
call fcn.0042bd2a
test al, al
je 0x429588
push ecx
pop esp
push eax
pop ebp
push esi
pop eax
pop esp
push eax
push esi
pop ecx
pop eax
push ebp
pop eax
pop esi
push edx
pop edi
pop ebp
push edx
push eax
pop ebx
pop edx
pop edx
push esi
push esi
pop edx
pop ebp
pop ebx
call fcn.0042bd6f
test al, al
je 0x4295a8
pop esp
push eax
push esi
push esi
push ebp
push esi
pop eax
pop ecx
pop eax
push edi
push edi
pop ebx
push esp
pop esp
push esi
pop ecx
push esi
push esi
push ebx
pop esi
push edx
pop esp
pop eax
call fcn.0042ba78
test al, al
je 0x4295c6
push ebp
push ecx
pop esp
push ecx
pop ebp
push ecx
push esp
push ecx
pop esp
pop edi
push edi
pop ebp
push edi
push esp
pop ebx
push ecx
push edi
pop ebx
pop eax
pop ebx
push ebp
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0043c3d1
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0042f5ce
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00402010
call fcn.0042ba33
test al, al
je 0x42961c
push edi
pop ecx
push esi
push ebx
push edi
push ebp
push ebp
push esp
pop eax
pop edi
pop ecx
pop ebp
pop ecx
pop esp
push esi
pop eax
pop ebp
push ebp
push ebp
push eax
pop edi
push edx
push eax
push eax
pop ebp
push ebx
pop edx
push ebp
pop esi
cmp dword [ebp - 0x30], ebx
jbe 0x429630
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401e80
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401d10
jmp 0x42963f
xor ebx, ebx
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0x28]
push eax
call fcn.00401ae0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401d10
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00401d10
mov eax, dword [ebp - 0xec]
call fcn.0059809c
ret