Function at 0x4b1140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c2ed
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 0x4b13a8
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 0x4b11cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.004b2440
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 0x4b138d
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 0x4b1408
cmp dword [ebp - 0x14], 0
je 0x4b1408
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.00413cd0
test eax, eax
je 0x4b1429
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 0x4b1259
push esi
call fcn.00521576
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.004a2520
mov esi, dword [ebp - 0x10]
test al, al
je 0x4b13d8
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 0x4b13ba
cmp dword [ebp - 0x14], 0
je 0x4b13ba
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push esi
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x2c]
call fcn.004144a0
mov ecx, dword [edi + 0x9c]
mov edx, dword [edi + 0xa0]
cmp ecx, edx
jne 0x4b1312
mov eax, dword [edi + 0x98]
lea ebx, [ebp - 0x2c]
cmp ebx, eax
jb 0x4b12d8
lea eax, [eax + edx*8]
cmp ebx, eax
jb 0x4b1429
mov eax, dword [edi + 0x98]
test edx, edx
jne 0x4b12e1
lea ebx, [edx + 1]
jmp 0x4b12f0
lea ebx, [ecx + ecx]
test ebx, ebx
js 0x4b1354
cmp ebx, 0xfffffff
ja 0x4b1354
push 8
push ebx
push eax
call fcn.00528b26
add esp, 0xc
test eax, eax
je 0x4b1354
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 0x4b134a
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ecx - 0x10]
call fcn.0040be70
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 0x4b137d
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 0x4b11ef
xor edi, edi
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00521576
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.004b2440
mov edi, 2
jmp 0x4b13dd
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 0x4b138f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4b138f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.004b2440
mov edi, 2
jmp 0x4b138f
push 0x80004005
call fcn.004143a0
int3