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

Disassembly:
push 0xf4
mov eax, 0x598179
call fcn.00590558
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, 0x615ac8
mov dword [ebp - 0x14], 7
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
call fcn.004029e0
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.00432212
call fcn.0042b9fa
test al, al
je 0x423d90
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 0x424001
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 accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe8], eax
cmp eax, 0xffffffff
jne 0x423de4
push ebx
mov ecx, esi
call fcn.004026c0
jmp 0x42400c
call fcn.0042b679
test al, al
je 0x423e05
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.0042b679
test al, al
je 0x423e2e
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.0042b7d2
test al, al
je 0x423e4a
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.0041b158
mov ebx, eax
mov dword [ebp - 0xec], ebx
pop ecx
test ebx, ebx
jne 0x423e83
push 0x615ac8
jmp 0x423dd8
call fcn.0042b382
test al, al
je 0x423e9c
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.0042b6be
test al, al
je 0x423ebd
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.0043afd0
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.0042b4db
test al, al
je 0x423f0e
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.0042b451
test al, al
je 0x423f28
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.0042b7d2
test al, al
je 0x423f4b
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.00432be0
push ebx
call fcn.0041b120
pop ecx
call fcn.0042b970
test al, al
je 0x423f93
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.0043242b
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0041f875
pop ecx
pop ecx
xor edi, edi
mov byte [ebp - 4], 4
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.00402c70
call fcn.0042b748
test al, al
je 0x423fdc
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 0x423ff0
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402ae0
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00402920
mov esi, dword [ebp - 0xf4]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004038b0
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00402920
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.00402920
mov eax, esi
call fcn.00590513
ret