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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7aaf99
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x8a0204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x2c8]
call fcn.004601f0
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00467ec0
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0046f460
mov byte [ebp - 4], 1
mov dword [ebp - 0x3f8], 0
mov dword [ebp - 0x3fc], 0
call fcn.00462c30
push eax
lea ecx, [ebp - 0x54]
call fcn.0046f460
mov byte [ebp - 4], 2
call fcn.00462c50
mov ecx, eax
call fcn.00470490
movzx edx, al
test edx, edx
je 0x48ea57
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x54]
call fcn.0046f9a0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x54]
call fcn.00402b70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0xffffffff
jne 0x48e983
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x48ec9d
push 0
mov ecx, dword [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3fc], eax
cmp dword [ebp - 0x3fc], 0
jne 0x48e9b2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x48ec9d
mov dword [ebp - 0x40c], 0
mov edx, dword [ebp - 0x3fc]
push edx
call fcn.0075c1c9
add esp, 4
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x3f8], eax
push 0
lea ecx, [ebp - 0x40c]
push ecx
mov edx, dword [ebp - 0x3fc]
push edx
mov eax, dword [ebp - 0x3f8]
push eax
mov ecx, dword [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40c]
cmp eax, dword [ebp - 0x3fc]
je 0x48ea52
mov ecx, dword [ebp - 0x3f8]
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x424]
push edx
call fcn.0075c181
add esp, 4
mov dword [ebp - 0x3f8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x48ec9d
jmp 0x48ec89
call fcn.00462c50
push eax
lea ecx, [ebp - 0x54]
call fcn.0046f9a0
mov dword [ebp - 0x400], 0
call fcn.00463020
movzx eax, al
test eax, eax
je 0x48ea88
call fcn.00462c60
mov dword [ebp - 0x400], eax
jmp 0x48eacf
call fcn.00462c70
push eax
lea ecx, [ebp - 0x120]
call fcn.0046f460
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
call fcn.00402b70
push eax
lea ecx, [ebp - 0x54]
call fcn.00402b70
push eax
call fcn.004741f0
add esp, 8
mov dword [ebp - 0x400], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call fcn.0046f680
cmp dword [ebp - 0x400], 0
jne 0x48eae9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x48ec9d
mov dword [ebp - 0x410], 0
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x98]
call fcn.0046f460
mov byte [ebp - 4], 4
push 0x7b9244
push 0x7b9248
lea ecx, [ebp - 0x98]
call fcn.00470830
lea edx, [ebp - 0x3f4]
push edx
lea eax, [ebp - 0x410]
push eax
push 1
lea ecx, [ebp - 0x98]
call fcn.00402b70
push eax
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.004734f0
add esp, 0x14
test eax, eax
je 0x48eb6d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.0046f680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x48ec9d
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x3fc], edx
cmp dword [ebp - 0x3fc], 0
jne 0x48eba2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.0046f680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x48ec9d
mov eax, dword [ebp - 0x3fc]
push eax
call fcn.0075c1c9
add esp, 4
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x3f8], ecx
mov edx, dword [ebp - 0x3fc]
push edx
mov eax, dword [ebp - 0x3f8]
push eax
mov ecx, dword [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x400]
push edx
call fcn.00474a60
add esp, 0x10
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x48ec5f
cmp dword [ebp - 0x414], 0x600
je 0x48ec5f
mov eax, dword [ebp - 0x3f8]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.0075c181
add esp, 4
mov dword [ebp - 0x3f8], 0
call fcn.00463020
movzx edx, al
test edx, edx
jne 0x48ec42
mov eax, dword [ebp - 0x400]
push eax
call fcn.00473130
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.0046f680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0046f680
jmp 0x48ec9d
call fcn.00463020
movzx ecx, al
test ecx, ecx
jne 0x48ec7a
mov edx, dword [ebp - 0x400]
push edx
call fcn.00473130
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.0046f680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0046f680
xor eax, eax
jne 0x48e90a
cmp dword [ebp - 0x3f8], 0
jne 0x48ed9b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0xdc]
call fcn.00402b70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0xffffffff
jne 0x48ece2
jmp 0x48ed9b
push 0
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3fc], eax
cmp dword [ebp - 0x3fc], 0
jne 0x48ed05
jmp 0x48ed9b
mov dword [ebp - 0x418], 0
mov edx, dword [ebp - 0x3fc]
push edx
call fcn.0075c1c9
add esp, 4
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x3f8], eax
push 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x3fc]
push edx
mov eax, dword [ebp - 0x3f8]
push eax
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x418]
cmp eax, dword [ebp - 0x3fc]
je 0x48ed94
mov ecx, dword [ebp - 0x3f8]
mov dword [ebp - 0x434], ecx
mov edx, dword [ebp - 0x434]
push edx
call fcn.0075c181
add esp, 4
mov dword [ebp - 0x3f8], 0
jmp 0x48ed9b
mov dword [ebp - 0x41c], 0
cmp dword [ebp - 0x3f8], 0
je 0x48edef
mov eax, dword [ebp - 0x3fc]
push eax
mov ecx, dword [ebp - 0x3f8]
push ecx
call fcn.0048e780
add esp, 8
mov dword [ebp - 0x41c], eax
mov edx, dword [ebp - 0x3f8]
mov dword [ebp - 0x438], edx
mov eax, dword [ebp - 0x438]
push eax
call fcn.0075c181
add esp, 4
mov dword [ebp - 0x3f8], 0
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 0x43c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.0046f680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call fcn.00460870
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0075c173
mov esp, ebp
pop ebp
ret