Function at 0x4225d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4862e1
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x10], 0xdb
je 0x422604
xor ebp, ebp
push ebp
call fcn.004223f0
add esp, 4
jmp 0x422606
xor ebp, ebp
mov eax, dword [esi + 0x14]
cmp eax, ebp
je 0x422620
mov cl, byte [esi + 0x11]
test cl, cl
jne 0x42261d
push eax
call fcn.0046f89f
add esp, 4
mov dword [esi + 0x14], ebp
lea ecx, [esp + 0x44]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov byte [esi + 0x11], 0
call fcn.0041c6f0
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0x44]
push eax
mov dword [esp + 0xd8], ebp
call fcn.0041cab0
mov edi, dword [esp + 0xe0]
lea ecx, [esp + 0x18]
push edi
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.0041edf0
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x422732
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4226c5
test edi, edi
je 0x422727
lea ecx, [esp + 0x1c]
call fcn.00419150
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 1
call fcn.0041a6e0
mov esi, dword [edi]
lea ecx, [esp + 0x1c]
call fcn.004220a0
push eax
mov ecx, edi
call dword [esi + 0x10]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 0
call fcn.00419440
jmp 0x422727
test ebp, ebp
jne 0x4226ee
push ebp
push ebx
call fcn.00449e50
add esp, 8
lea ecx, [esp + 0x44]
mov dword [esp + 0xd4], 0xffffffff
call fcn.0041c7c0
mov al, 1
jmp 0x422814
lea eax, [ebp + 4]
push eax
call fcn.0046fd5a
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 0x14], edi
jne 0x42274d
mov esi, dword [esp + 0xe0]
test esi, esi
je 0x422727
mov eax, dword [esi]
push str.Out_of_memory_when_loading_Unicode_file_into_data_buffer.
mov ecx, esi
call dword [eax + 0x10]
mov edx, dword [esi]
push ebp
push str.fileSize
mov ecx, esi
call dword [edx + 0x2c]
push 0
push ebx
call fcn.00449e50
add esp, 8
lea ecx, [esp + 0x44]
mov dword [esp + 0xd4], 0xffffffff
call fcn.0041c7c0
xor al, al
jmp 0x422814
lea ecx, [ebp + 4]
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x18]
push eax
push ebp
push ecx
push ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0xe0]
mov byte [esp + 0x13], 1
test eax, eax
jne 0x4227d6
test esi, esi
je 0x4227d1
lea ecx, [esp + 0x1c]
call fcn.00419150
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 2
call fcn.0041a6e0
mov edi, dword [esi]
lea ecx, [esp + 0x1c]
call fcn.004220a0
push eax
mov ecx, esi
call dword [edi + 0x10]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 0
call fcn.00419440
mov byte [esp + 0x13], 0
cmp dword [esp + 0x14], ebp
je 0x4227f1
test esi, esi
je 0x4227ec
mov edx, dword [esi]
push str.Failed_to_read_the_entire_file
mov ecx, esi
call dword [edx + 0x10]
mov byte [esp + 0x13], 0
push 0
push ebx
call fcn.00449e50
add esp, 8
lea ecx, [esp + 0x44]
mov dword [esp + 0xd4], 0xffffffff
call fcn.0041c7c0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8
ret 8