Function at 0x4b1160
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c550
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
xor eax, eax
cmp dword [edi + 0x10], eax
je 0x4b1445
mov ecx, dword [edi + 0x1c]
add ecx, dword [edi + 0x58]
push 0
adc eax, dword [edi + 0x5c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push ecx
push dword [edi + 0x88]
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4b1202
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.004b27f0
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x24], eax
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4b147e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 1
mov byte [ebp - 0x44], 0
mov dword [ebp - 4], 2
xor esi, esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], esi
cmp dword [edi + 0x10], esi
jbe 0x4b13fe
mov dword [ebp - 0x20], esi
push 0
lea eax, [ebp - 0x18]
push eax
push 0x18
lea eax, [ebp - 0x60]
push eax
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b1460
cmp dword [ebp - 0x18], 0
je 0x4b1460
cmp dword [ebp - 0x20], 0
je 0x4b12a3
push esi
call fcn.00521c5a
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x14]
inc eax
push eax
call fcn.004a2900
mov esi, dword [ebp - 0x14]
test al, al
je 0x4b1459
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x4c]
add eax, eax
push eax
push esi
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b1460
cmp dword [ebp - 0x18], 0
je 0x4b1460
mov eax, dword [ebp - 0x4c]
add edi, 0x78
xor ecx, ecx
mov dword [ebp - 0x20], edi
mov word [esi + eax*2], cx
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jne 0x4b135d
mov edx, dword [edi]
lea edi, [ebp - 0x60]
cmp edi, edx
mov edi, dword [ebp - 0x20]
jb 0x4b1326
mov eax, ecx
lea edi, [ebp - 0x60]
shl eax, 5
add eax, edx
cmp edi, eax
mov edi, dword [ebp - 0x20]
jb 0x4b147e
mov eax, dword [ebp - 0x1c]
test ecx, ecx
jne 0x4b1334
mov eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x4b1342
add eax, eax
mov dword [ebp - 0x1c], eax
js 0x4b13b3
cmp eax, 0x3ffffff
ja 0x4b13b3
push 0x20
push eax
push edx
call fcn.00529406
add esp, 0xc
test eax, eax
je 0x4b13b3
mov ecx, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ecx
shl eax, 5
add eax, dword [edi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xa
je 0x4b13ac
movups xmm0, xmmword [ebp - 0x60]
lea edi, [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.0040a1d0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x1c]
mov al, byte [ebp - 0x44]
mov byte [ecx + 0x1c], al
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 3
inc dword [edi + 4]
push dword [ebp - 0x24]
mov ecx, edi
call fcn.004b3330
lea edi, [eax + 0x18]
test esi, esi
jne 0x4b13c8
xor eax, eax
jmp 0x4b13df
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b13d0
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.004126c0
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
cmp eax, dword [edi + 0x10]
jb 0x4b1263
xor edi, edi
mov byte [ebp - 4], 2
push esi
call fcn.00521c5a
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x48]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b1443
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, 3
jmp 0x4b1400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.004b27f0
mov edi, 2
jmp 0x4b1400
push 0x80004005
call fcn.004126a0
int3