Function at 0x4b1500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c5fd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
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
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x4b1768
mov ecx, dword [edi + 0xc]
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 0x4b158d
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
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
cmp dword [edi + 8], esi
jbe 0x4b174d
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 8
lea eax, [ebp - 0x34]
push eax
push dword [edi + 0x88]
call ebx
test eax, eax
je 0x4b17c8
cmp dword [ebp - 0x14], 0
je 0x4b17c8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.00411fd0
test eax, eax
je 0x4b17e9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
test esi, esi
je 0x4b1619
push esi
call fcn.00521c5a
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.004a2900
mov esi, dword [ebp - 0x10]
test al, al
je 0x4b1798
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
push esi
push dword [edi + 0x88]
call ebx
test eax, eax
je 0x4b177a
cmp dword [ebp - 0x14], 0
je 0x4b177a
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push esi
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x2c]
call fcn.004127a0
mov ecx, dword [edi + 0x9c]
mov edx, dword [edi + 0xa0]
cmp ecx, edx
jne 0x4b16d2
mov eax, dword [edi + 0x98]
lea ebx, [ebp - 0x2c]
cmp ebx, eax
jb 0x4b1698
lea eax, [eax + edx*8]
cmp ebx, eax
jb 0x4b17e9
mov eax, dword [edi + 0x98]
test edx, edx
jne 0x4b16a1
lea ebx, [edx + 1]
jmp 0x4b16b0
lea ebx, [ecx + ecx]
test ebx, ebx
js 0x4b1714
cmp ebx, 0xfffffff
ja 0x4b1714
push 8
push ebx
push eax
call fcn.00529406
add esp, 0xc
test eax, eax
je 0x4b1714
mov ecx, dword [edi + 0x9c]
mov dword [edi + 0xa0], ebx
mov dword [edi + 0x98], eax
mov eax, dword [edi + 0x98]
lea ebx, [eax + ecx*8]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 8
test ebx, ebx
je 0x4b170a
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ecx - 0x10]
call fcn.0040a1d0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x28]
mov dword [ebx + 4], eax
mov byte [ebp - 4], 8
mov byte [ebp - 4], 3
inc dword [edi + 0x9c]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b173d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
inc ebx
mov dword [ebp - 0x18], ebx
cmp ebx, dword [edi + 8]
jb 0x4b15af
xor edi, edi
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00521c5a
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 0x4b179d
mov edi, 3
mov byte [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b174f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4b174f
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 0x4b174f
push 0x80004005
call fcn.004126a0
int3