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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, eax
cmp dword [esi + 0x3d8], 0
push edi
jne 0x4698fe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4
xor ebx, ebx
push 0x5f
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x264]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x60
lea edx, [esi + 0x368]
push edx
push eax
mov eax, dword [esp + 0x84]
lea ecx, [esi + 0x268]
push ecx
call fcn.00469470
lea eax, [ebx + 0x10]
mov ecx, 0x488ed0
lea edx, [esp + 0x2e]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x469960
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x469948
test eax, eax
je 0x4699bd
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x4699af
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4699bd
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x4699af
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4699bd
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x4699af
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4699bd
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x4699bd
test edi, edi
mov eax, 1
jg 0x4699bf
or eax, 0xffffffff
jmp 0x4699bf
xor eax, eax
test eax, eax
jne 0x469a35
cmp byte [esp + 0x42], 0x19
lea ebx, [eax + 1]
jne 0x4699f9
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x244], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x248], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x24c], edx
mov edx, dword [esp + 0x58]
jmp 0x469a23
mov eax, dword [esp + 0x43]
mov ecx, dword [esp + 0x47]
mov edx, dword [esp + 0x4b]
mov dword [esi + 0x244], eax
mov eax, dword [esp + 0x4f]
mov dword [esi + 0x248], ecx
mov ecx, dword [esp + 0x53]
mov dword [esi + 0x24c], edx
mov edx, dword [esp + 0x57]
mov dword [esi + 0x250], eax
mov dword [esi + 0x254], ecx
mov dword [esi + 0x258], edx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x60
ret 4
push ecx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 3
push 0x80000000
push eax
mov dword [ebx + 0x3d8], ebp
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x469c7a
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x64
jbe 0x469c05
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x469be1
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
push ebp
lea ecx, [esp + 0x10]
push ecx
push edi
mov edx, eax
push edx
push esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, 0x64
jbe 0x469c83
mov eax, dword [ebx + 4]
cmp dword [eax], 0x61150600
jne 0x469c83
mov eax, dword [eax + 0xc]
mov esi, eax
mov ecx, eax
mov edx, eax
and esi, 0xff0000
shl edx, 0x10
shr ecx, 0x10
and eax, 0xff00
or esi, ecx
or edx, eax
shr esi, 8
shl edx, 8
or esi, edx
jbe 0x469c83
xor edx, edx
mov eax, edi
div esi
cmp eax, 1
jbe 0x469c6d
add eax, 0xffffffff
mov ebp, esi
mov dword [esp + 0xc], eax
mov edi, dword [ebx + 4]
push esi
add edi, ebp
push ebx
call fcn.00469190
add ebp, esi
sub dword [esp + 0xc], 1
jne 0x469c58
pop edi
pop esi
pop ebp
add esp, 4
mov eax, ebx
jmp 0x4698e0
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4