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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6589
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
test esi, esi
je 0x4bb8c1
cmp word [esi], 0
je 0x4bb8c1
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xc4], 1
call fcn.004cc080
mov ecx, esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bb610
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00409060
push 0x80
push 3
push 1
push SysReAllocString
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xc8]
call fcn.004cc130
mov byte [ebp - 0xbd], al
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00408ff0
cmp byte [ebp - 0xbd], 0
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0xc8]
jne 0x4bb676
xor edi, edi
jmp 0x4bb88f
test esi, esi
je 0x4bb88c
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4bb88c
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4bb6a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bb88c
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
add ecx, edi
mov dword [ebp - 0xd4], ecx
adc eax, 0
mov dword [ebp - 0x2c], eax
lea edi, [ecx + 1]
push edi
call fcn.005b79a5
push edi
mov edi, eax
mov dword [ebp - 0x2c], eax
push 0
push edi
call fcn.005b9c20
add esp, 0x10
mov dword [ebp - 0xd8], edi
mov byte [ebp - 4], 6
mov dword [ebp - 0xcc], 0
test edi, edi
je 0x4bb869
cmp dword [esi], 0xffffffff
je 0x4bb869
push 0
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xd4]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bb869
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0xcc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004a0500
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.0040d040
movups xmm0, xmmword [ebp - 0x28]
mov byte [ebp - 0x28], 0
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 8
call fcn.005943c0
push ecx
push dword [ebp - 0xd0]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0xbc]
call fcn.00594520
test al, al
je 0x4bb7f1
mov eax, dword [ebp - 0xd0]
cmp byte [eax + 8], 7
je 0x4bb7fb
mov dword [ebp - 0xc4], 0xfffffffd
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 8
call fcn.0040cdb0
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x4bb842
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bb838
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bb8df
push edx
push ecx
call fcn.005b7992
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
push edi
mov byte [ebp - 4], 0
call fcn.005b79a0
mov edi, dword [ebp - 0xc4]
add esp, 4
jmp 0x4bb88f
mov dword [ebp - 0xc4], 0xffffffff
mov byte [ebp - 4], 0
test edi, edi
je 0x4bb88c
push edi
call fcn.005b79a0
mov edi, dword [ebp - 0xc4]
add esp, 4
jmp 0x4bb88f
or edi, 0xffffffff
test esi, esi
je 0x4bb8ab
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4bb8ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4bb8ab
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
call fcn.004cc0f0
mov eax, edi
jmp 0x4bb8c4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
call fcn.005c00b0
int3