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

Disassembly:
push 0xb8
mov eax, 0x598131
call fcn.00590558
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc0], eax
and dword [ebp - 4], 0
call fcn.0042b2f8
test al, al
je 0x4239f4
push ebx
push ebx
pop ebp
push esi
pop edx
pop esp
push edi
push ebx
pop edx
push edi
push edi
push ebp
pop eax
pop edi
push esp
pop edi
push ebx
push ebx
push ebx
push ebp
pop ecx
pop ebx
pop esi
push esi
push esi
push esp
pop esp
push esi
pop edi
push ecx
push esp
pop ebx
call fcn.0042b3c7
test al, al
je 0x423a10
pop eax
pop eax
push ebx
pop edx
pop ecx
push edi
pop esp
pop ebp
push eax
pop edi
pop edi
pop eax
push esi
push esp
push eax
push eax
push esp
pop eax
pop ebp
call fcn.0042b496
test al, al
je 0x423a2d
pop edi
pop ebx
push ebp
push eax
pop edx
pop ecx
push ecx
push esi
pop edi
push esp
push ebp
push esp
pop edi
push edi
pop esp
push esi
pop esp
push edx
push edx
push ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x615ac8
mov word [ebp - 0x28], ax
call fcn.004029e0
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.00432212
and dword [ebp - 0xb8], 0
call fcn.0042b520
test al, al
je 0x423a7d
pop edx
pop edi
push edx
pop ebx
pop ebp
pop edx
push esp
pop edx
push esp
push ebp
pop ebp
pop edi
push eax
push esp
push esp
push ebx
pop edi
pop edi
call fcn.0042b748
test al, al
je 0x423aa1
push edi
push edi
push eax
push edi
pop ecx
push ebp
push esp
pop ebp
push ebp
push ebp
pop edi
pop ebp
push ebp
pop esp
pop ecx
push esp
push eax
pop esp
push esi
pop esp
push ebp
push esi
push eax
push edi
pop edx
push edx
push esp
call fcn.0042b5aa
test al, al
je 0x423abc
pop edi
push edi
push ebx
push edx
pop esi
pop edi
push ebx
pop ebx
push esp
push eax
pop eax
push ebx
pop esi
push ebx
push ebx
push esp
pop ecx
pop ebx
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423c0c
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xbc], eax
cmp eax, 0xffffffff
je 0x423c05
call fcn.0042b382
test al, al
je 0x423b31
push ebx
push ecx
pop edx
pop ecx
pop edx
push eax
pop ecx
push edi
push ebx
push edx
push edx
push edi
pop esi
pop ebx
push esp
push esi
push eax
pop edi
pop eax
push esp
push edx
pop edi
pop esi
push ebp
pop eax
pop edx
pop esi
push ebx
push ebp
pop ebp
push esi
call fcn.0042b6be
test al, al
je 0x423b58
pop esi
pop ebp
pop ebx
pop ecx
push ecx
push ebp
pop eax
push esi
pop ecx
pop eax
pop edx
push ebp
pop eax
push esp
pop esi
pop esi
push edi
pop ecx
pop ebx
push eax
push esi
pop edi
pop ecx
push ecx
pop eax
push esi
push ebp
pop eax
push edi
pop ecx
call fcn.0042b8a1
test al, al
je 0x423b80
push esp
pop eax
push ecx
pop edi
push ecx
pop ecx
pop eax
push esp
pop ecx
pop edi
pop edi
push ebx
pop ecx
pop edx
pop ecx
push eax
pop esp
pop eax
push edx
pop ecx
pop eax
pop ebx
pop eax
pop ecx
pop edx
push ebp
push ecx
pop eax
push edi
push esp
pop edx
push 0
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp - 0xc0]
push eax
mov dword [ebx], eax
call fcn.0041b158
mov dword [ebp - 0xb8], eax
pop ecx
test eax, eax
jne 0x423c30
call fcn.0042b520
test al, al
je 0x423bc6
pop edx
pop edi
push edx
pop ebx
pop ebp
pop edx
push esp
pop edx
push esp
push ebp
pop ebp
pop edi
push eax
push esp
push esp
push ebx
pop edi
pop edi
call fcn.0042b748
test al, al
je 0x423bea
push edi
push edi
push eax
push edi
pop ecx
push ebp
push esp
pop ebp
push ebp
push ebp
pop edi
pop ebp
push ebp
pop esp
pop ecx
push esp
push eax
pop esp
push esi
pop esp
push ebp
push esi
push eax
push edi
pop edx
push edx
push esp
call fcn.0042b5aa
test al, al
je 0x423c05
pop edi
push edi
push ebx
push edx
pop esi
pop edi
push ebx
pop ebx
push esp
push eax
pop eax
push ebx
pop esi
push ebx
push ebx
push esp
pop ecx
pop ebx
and dword [ebp - 0xb8], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402920
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00402920
mov eax, dword [ebp - 0xb8]
call fcn.00590513
ret
push dword [ebx]
push 0
push eax
call fcn.0043afd0
add esp, 0xc
call fcn.0042b382
test al, al
je 0x423c65
push ebx
push ecx
pop edx
pop ecx
pop edx
push eax
pop ecx
push edi
push ebx
push edx
push edx
push edi
pop esi
pop ebx
push esp
push esi
push eax
pop edi
pop eax
push esp
push edx
pop edi
pop esi
push ebp
pop eax
pop edx
pop esi
push ebx
push ebp
pop ebp
push esi
call fcn.0042b6be
test al, al
je 0x423c8c
pop esi
pop ebp
pop ebx
pop ecx
push ecx
push ebp
pop eax
push esi
pop ecx
pop eax
pop edx
push ebp
pop eax
push esp
pop esi
pop esi
push edi
pop ecx
pop ebx
push eax
push esi
pop edi
pop ecx
push ecx
pop eax
push esi
push ebp
pop eax
push edi
pop ecx
call fcn.0042b8a1
test al, al
je 0x423cb4
push esp
pop eax
push ecx
pop edi
push ecx
pop ecx
pop eax
push esp
pop ecx
pop edi
pop edi
push ebx
pop ecx
pop edx
pop ecx
push eax
pop esp
pop eax
push edx
pop ecx
pop eax
pop ebx
pop eax
pop ecx
pop edx
push ebp
push ecx
pop eax
push edi
push esp
pop edx
mov esi, dword [ebp - 0xbc]
lea eax, [ebp - 0xc4]
push 0
push eax
mov eax, dword [ebp - 0xc0]
push dword [eax]
push dword [ebp - 0xb8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.0042b451
test al, al
je 0x423cfb
push edx
pop edi
push esi
push ebp
pop esp
push edx
push ebp
push eax
pop edx
push ebp
pop edx
pop ebp
push ebp
pop esp
pop edi
pop edx
pop edx
push edi
pop esi
push ecx
mov esi, dword [ebp - 0xbc]
call fcn.0042b748
test al, al
je 0x423d15
pop edi
push ebx
pop edi
push ebp
push ebp
pop eax
pop ebp
push edx
pop ebp
pop edx
pop ecx
push esi
push ebp
pop ebx
push ebx
pop ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x423c0c