Function at 0x4b68f0
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 0x56fcd5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor eax, eax
cmp dword [edi + 0x10], eax
je 0x4b69dd
mov ecx, dword [edi + 0x1c]
add ecx, dword [edi + 0x58]
push 0
adc eax, dword [edi + 0x5c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push ecx
push dword [edi + 0x88]
mov dword [ebp - 0x48], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4b69f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0xd4]
mov edx, eax
mov dword [ebp - 0x28], ecx
lea esi, [edi + 0x60]
push ecx
lea ecx, [ebp - 0x24]
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 - 0x2c], eax
call fcn.0049a5c0
test al, al
je 0x4b69a2
add edi, 8
push dword [ebp - 0x2c]
push edi
push 0x103
push dword [ebp - 0x28]
call fcn.004a45d0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b69d8
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
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x28], eax
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4b6d3a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 3
mov byte [ebp - 0x4c], 0
mov dword [ebp - 4], 4
xor esi, esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x24], esi
cmp dword [edi + 0x10], esi
jbe 0x4b6c00
mov dword [ebp - 0x28], esi
push 0
lea eax, [ebp - 0x18]
push eax
push 0x18
lea eax, [ebp - 0x68]
push eax
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b6cbc
cmp dword [ebp - 0x18], 0
je 0x4b6cbc
test esi, esi
je 0x4b6a90
push esi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x14]
inc eax
push eax
call fcn.004a8b90
mov esi, dword [ebp - 0x14]
test al, al
je 0x4b6cb2
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x54]
add eax, eax
push eax
push esi
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b6c5b
cmp dword [ebp - 0x18], 0
je 0x4b6c5b
mov eax, dword [ebp - 0x54]
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 0x4b6b4a
mov edx, dword [edi]
lea edi, [ebp - 0x68]
cmp edi, edx
mov edi, dword [ebp - 0x20]
jb 0x4b6b13
mov eax, ecx
lea edi, [ebp - 0x68]
shl eax, 5
add eax, edx
cmp edi, eax
mov edi, dword [ebp - 0x20]
jb 0x4b6d3a
mov eax, dword [ebp - 0x1c]
test ecx, ecx
jne 0x4b6b21
mov eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x4b6b2f
add eax, eax
mov dword [ebp - 0x1c], eax
js 0x4b6ba3
cmp eax, 0x3ffffff
ja 0x4b6ba3
push 0x20
push eax
push edx
call fcn.00535885
add esp, 0xc
test eax, eax
je 0x4b6ba3
mov ecx, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ecx
mov dword [ebp - 0x30], eax
shl eax, 5
add eax, dword [edi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x10
je 0x4b6b9c
movups xmm0, xmmword [ebp - 0x68]
lea edi, [eax + 0x18]
mov dword [ebp - 0x38], eax
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x58]
movq qword [eax + 0x10], xmm0
mov dword [ebp - 0x3c], edi
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.00409540
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1c]
mov al, byte [ebp - 0x4c]
mov byte [ecx + 0x1c], al
mov byte [ebp - 4], 0x10
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 5
inc dword [edi + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
js 0x4b6d44
cmp eax, dword [edi + 4]
jge 0x4b6d44
mov edi, dword [edi]
add edi, dword [ebp - 0x28]
test esi, esi
jne 0x4b6bc4
xor eax, eax
jmp 0x4b6bdf
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b6bd0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.004098b0
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
inc eax
add dword [ebp - 0x28], 0x20
mov dword [ebp - 0x24], eax
cmp eax, dword [edi + 0x10]
jb 0x4b6a52
xor edi, edi
mov byte [ebp - 4], 4
push esi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x50]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4b6c45
mov ecx, dword [eax]
push eax
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2c]
mov edx, eax
add ecx, 0xd4
mov dword [ebp - 0x24], ecx
push ecx
lea ecx, [ebp - 0x20]
call fcn.0049df40
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [edi + 0x60]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x2c], eax
call fcn.0049a5c0
test al, al
mov eax, dword [ebp - 0x2c]
je 0x4b6c9c
add eax, 8
push dword [ebp - 0x28]
push eax
push 0x103
push dword [ebp - 0x24]
call fcn.004a45d0
add esp, 0x10
jmp 0x4b6d11
mov edi, 3
jmp 0x4b6c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2c]
mov edx, eax
add ecx, 0xd4
mov dword [ebp - 0x24], ecx
push ecx
lea ecx, [ebp - 0x20]
call fcn.0049df40
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [edi + 0x60]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x2c], eax
call fcn.0049a5c0
test al, al
mov eax, dword [ebp - 0x2c]
je 0x4b6cfd
add eax, 8
push dword [ebp - 0x28]
push eax
push 0x103
push dword [ebp - 0x24]
call fcn.004a45d0
add esp, 0x10
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b6d30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 2
jmp 0x4b6c02
push 0x80004005
call fcn.00409a00
push 1
push 0xc000008c
call fcn.00412050
int3