Function at 0x4b47a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501add
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x534090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x4b47ee
cmp byte [edi + 0x14], 0
jne 0x4b47ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b49bb
mov dword [edi + 0x10], 0xffffffff
mov eax, dword [edi + 0x1c]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xffffffff
test eax, eax
je 0x4b4840
mov edx, dword [edi + 0x18]
mov ecx, ebx
push eax
call fcn.0049d330
add esp, 4
test eax, eax
jne 0x4b49c0
mov edx, dword [edi + 0x18]
or ecx, 0xffffffff
push 0x5393c0
push dword [edi + 0x1c]
call dword [0x5391c4]
mov esi, dword [edi + 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
jmp 0x4b4849
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
cmp byte [edi + 0x2c], 0
mov dword [ebp - 0x10], esi
je 0x4b4965
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebp - 4], 0
push SysReAllocString
push dword [edi + 0x20]
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x4b4990
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edi + 0x34]
ja 0x4b4958
jb 0x4b48a0
cmp esi, dword [edi + 0x30]
jae 0x4b4958
nop
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push 0x100000
push dword [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b4990
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b4952
mov edx, dword [edi + 0x18]
mov esi, eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
mov eax, SysReAllocString
cmp esi, eax
cmovb eax, esi
push eax
push edx
push ebx
call ecx
mov edx, dword [ebp - 0x20]
mov ebx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
sub esi, eax
mov dword [ebp - 0x20], edx
test ebx, ebx
jne 0x4b4995
test eax, eax
je 0x4b4990
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x4b48d7
mov esi, dword [ebp - 0x1c]
mov edx, dword [edi + 0x18]
mov ecx, dword [ebp - 0x18]
push 0x5393c0
push esi
call dword [0x5391c4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x10], eax
adc ecx, 0
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 0x34]
ja 0x4b4952
jb 0x4b494a
cmp eax, dword [edi + 0x30]
jae 0x4b4952
mov eax, dword [ebp - 0x2c]
jmp 0x4b48a0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4b4965
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov eax, dword [ebp - 0x18]
cmp dword [edi + 0x38], eax
jne 0x4b49bb
cmp esi, dword [edi + 0x30]
jne 0x4b49bb
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0x34]
jne 0x4b49bb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, 0x80004005
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4b49a5
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4