Function at 0x4b6dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fdd2
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor eax, eax
cmp dword [ebx + 0x9c], eax
jg 0x4b70a7
mov ecx, dword [ebx + 0xc]
add ecx, dword [ebx + 0x58]
push 0
adc eax, dword [ebx + 0x5c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
push ecx
push dword [ebx + 0x88]
mov dword [ebp - 0x50], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4b6eba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea esi, [ebx + 0x60]
mov edx, eax
lea ecx, [ebp - 0x10]
add ebx, 0xd4
call fcn.0049df40
add esp, 4
mov dword [ebp - 4], 0
mov ecx, esi
mov eax, dword [eax]
mov edi, dword [esi]
mov dword [ebp - 0x18], eax
call fcn.0049a5c0
test al, al
je 0x4b6e6f
add edi, 8
push dword [ebp - 0x18]
push edi
push 0x103
push ebx
call fcn.004a45d0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b6ea3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], esi
cmp dword [ebx + 8], esi
jbe 0x4b708c
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 8
lea eax, [ebp - 0x44]
push eax
push dword [ebx + 0x88]
call edi
test eax, eax
je 0x4b7163
cmp dword [ebp - 0x14], 0
je 0x4b7163
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
call fcn.00409d30
test eax, eax
je 0x4b71d9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
test esi, esi
je 0x4b6f4a
push esi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.004a8b90
mov esi, dword [ebp - 0x10]
test al, al
je 0x4b712c
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x40]
add eax, eax
push eax
push esi
push dword [ebx + 0x88]
call edi
test eax, eax
je 0x4b70b9
cmp dword [ebp - 0x14], 0
je 0x4b70b9
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [esi + eax*2], cx
test esi, esi
je 0x4b6faf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b6fa0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.004098b0
mov ecx, dword [ebx + 0x9c]
lea edi, [ebx + 0x98]
mov edx, dword [edi + 8]
mov dword [ebp - 0x24], edi
cmp ecx, edx
jne 0x4b7015
mov eax, dword [edi]
lea ebx, [ebp - 0x3c]
cmp ebx, eax
jb 0x4b6fe5
lea eax, [eax + edx*8]
cmp ebx, eax
jb 0x4b71d9
mov eax, dword [edi]
test edx, edx
jne 0x4b6fee
lea ebx, [edx + 1]
jmp 0x4b6ffd
lea ebx, [ecx + ecx]
test ebx, ebx
js 0x4b7050
cmp ebx, 0xfffffff
ja 0x4b7050
push 8
push ebx
push eax
call fcn.00535885
add esp, 0xc
test eax, eax
je 0x4b7050
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 0x28], ecx
lea ebx, [eax + ecx*8]
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 0xe
test ebx, ebx
je 0x4b7049
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
lea ecx, [ecx - 0x10]
call fcn.00409540
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x38]
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 7
inc dword [edi + 4]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b7079
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 8]
jb 0x4b6ee0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0052e812
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]
lea ecx, [ebx + 0xd4]
mov edx, eax
mov dword [ebp - 0x18], ecx
lea edi, [ebx + 0x60]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0049df40
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, edi
mov eax, dword [eax]
mov ebx, dword [edi]
mov dword [ebp - 0x1c], eax
call fcn.0049a5c0
test al, al
je 0x4b70f2
add ebx, 8
push dword [ebp - 0x1c]
push ebx
push 0x103
push dword [ebp - 0x18]
call fcn.004a45d0
add esp, 0x10
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b7125
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 2
jmp 0x4b7131
mov edi, 3
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b708e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4b708e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebx + 0xd4]
mov edx, eax
mov dword [ebp - 0x1c], ecx
lea edi, [ebx + 0x60]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0049df40
add esp, 4
mov byte [ebp - 4], 3
mov ecx, edi
mov eax, dword [eax]
mov ebx, dword [edi]
mov dword [ebp - 0x20], eax
call fcn.0049a5c0
test al, al
je 0x4b719c
add ebx, 8
push dword [ebp - 0x20]
push ebx
push 0x103
push dword [ebp - 0x1c]
call fcn.004a45d0
add esp, 0x10
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b71cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 2
jmp 0x4b708e
push 0x80004005
call fcn.00409a00
int3