Function at 0x140081030
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0x88
cmp byte [rcx + 0x2c0], 0
mov rbx, rcx
je 0x14008105a
call fcn.1400248c0
add rsp, 0x88
pop rbx
pop rbp
ret
cmp byte [rcx + 0x2f0], 0
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x68], r13
je 0x1400811a9
mov rdx, qword [rbx + 0x2e0]
mov ecx, dword [rcx + 0x2a8]
mov eax, edx
cmp rdx, rcx
cmovge eax, ecx
xor r13d, r13d
mov edi, eax
sub rdx, rdi
mov dword [rbp + 0x67], edi
mov qword [rbx + 0x2e0], rdx
test eax, eax
je 0x1400810d7
mov rdx, qword [rbx + 0x2a0]
lea r9, [rbp + 0x77]
mov rcx, qword [rbx + 0x70]
mov r8d, edi
mov dword [rbp + 0x77], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400810c6
cmp dword [rbp + 0x77], edi
je 0x1400810d7
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
xor eax, eax
jmp 0x14008164e
mov rax, r13
test edi, edi
je 0x1400810e5
mov rax, qword [rbx + 0x2a0]
mov rdx, qword [rbx + 0x2b0]
lea r9, [rbp + 0x7f]
mov rcx, qword [rbx + 0x310]
lea r8, [rbp + 0x6f]
mov qword [rbp + 0x7f], rax
mov eax, dword [rbx + 0x2c]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x6f], r13d
call fcn.14002bdd0
mov ecx, eax
mov edx, eax
shr ecx, 0x1f
test cl, cl
jne 0x140081161
mov r8d, dword [rbp + 0x6f]
test r8d, r8d
je 0x140081168
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov edx, eax
shr eax, 0x1f
test al, al
je 0x14008116e
test edi, edi
jne 0x140081161
mov eax, edx
shr eax, 0x1f
not al
test al, 1
je 0x140081161
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov edx, eax
mov eax, edx
jmp 0x14008164e
cmp dword [rbp + 0x67], r13d
je 0x140081146
mov eax, dword [rbx + 0x2c]
lea r9, [rbp + 0x7f]
mov rdx, qword [rbx + 0x2b0]
lea r8, [rbp + 0x6f]
mov rcx, qword [rbx + 0x310]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
call fcn.14002bdd0
mov edx, eax
shr eax, 0x1f
test al, al
je 0x140081123
mov eax, edx
jmp 0x14008164e
movzx eax, word [rcx + 0x2c8]
add eax, 0xfffffffe
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x60], r14
cmp eax, 0x62
ja case.0x1400811e4.3
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x8167c]
mov ecx, dword [rdx + rax*4 + 0x81664]
add rcx, rdx
jmp rcx
mov eax, dword [rbx + 0x2cc]
mov rdi, qword [rbx + 0x2e0]
cmp rdi, rax
cmovge edi, eax
mov dword [rbp + 0x67], edi
test edi, edi
je 0x1400815b1
mov rdx, qword [rbx + 0x2a0]
lea r9, [rbp + 0x6f]
mov rcx, qword [rbx + 0x70]
xor r13d, r13d
mov r8d, edi
mov dword [rbp + 0x6f], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400815b1
cmp dword [rbp + 0x6f], edi
jne 0x1400815b1
mov r9d, dword [rbp + 0x67]
lea rcx, [rbx + 0x310]
mov r8, qword [rbx + 0x2a0]
mov rdx, qword [rbx + 0x2b0]
sub qword [rbx + 0x2e0], r9
call fcn.1400461f0
mov edx, eax
mov rcx, rbx
mov r14d, eax
call fcn.140025060
jmp 0x140081641
mov eax, dword [rbx + 0x2cc]
mov rdi, qword [rbx + 0x2e0]
cmp rdi, rax
cmovge edi, eax
mov dword [rbp + 0x67], edi
test edi, edi
je 0x1400815b1
mov rdx, qword [rbx + 0x2a0]
lea r9, [rbp + 0x6f]
mov rcx, qword [rbx + 0x70]
xor r13d, r13d
mov r8d, edi
mov dword [rbp + 0x6f], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400815b1
cmp dword [rbp + 0x6f], edi
jne 0x1400815b1
mov eax, dword [rbp + 0x67]
xor edx, edx
sub qword [rbx + 0x2e0], rax
mov r10d, r13d
mov r8d, dword [rbx + 0x20]
div r8d
mov dword [rbp + 0x6f], r13d
lea ecx, [rax*2 - 7]
mov eax, dword [rbx + 0x5a0]
cmp eax, ecx
cmovae eax, ecx
mov r14d, eax
mov rax, qword [rbx + 0x2b8]
cmp r14, rax
cmovge r14d, eax
test r8d, r8d
je 0x14008162f
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x58], r15
movaps xmmword [rsp + 0x40], xmm6
movss xmm6, dword [0x14012bff4]
mov rax, qword [rbx + 0x2a0]
lea r9d, [r10*4]
mov edx, r10d
mov esi, r13d
mov edi, r13d
mov r12d, r13d
movsx r8d, word [rax + r9]
mov dword [rbx + rdx*8 + 0x310], r8d
mov rax, qword [rbx + 0x2a0]
movd xmm0, r8d
cvtdq2ps xmm0, xmm0
movzx ecx, byte [rax + r9 + 2]
mov dword [rbx + rdx*8 + 0x314], ecx
mov rax, qword [rbx + 0x2b0]
mulss xmm0, xmm6
mov r11, qword [rax + rdx*8]
mov edx, 1
movss dword [r11], xmm0
mov ecx, dword [rbx + 0x20]
mov rax, qword [rbx + 0x2a0]
lea r15, [rax + rcx*4]
add r15, r9
cmp r14d, edx
jbe 0x140081425
add r11, 4
lea ecx, [r14 - 1]
mov qword [rbp + 0x7f], r11
mov qword [rbp - 9], rcx
nop word [rax + rax]
mov r9d, dword [rbx + 0x2ac]
cmp edi, r9d
jae 0x1400813e0
mov eax, esi
mov ecx, edi
inc esi
movzx edx, byte [rax + r15]
shl edx, cl
add r12d, edx
cmp esi, 4
jne 0x1400813dd
mov eax, dword [rbx + 0x20]
mov esi, r13d
shl eax, 2
add r15, rax
add edi, 8
mov ecx, r9d
mov r8d, 1
shl r8d, cl
mov edx, r10d
dec r8d
sub edi, r9d
and r8d, r12d
shr r12d, cl
lea rcx, [rbx + 0x310]
call fcn.14003da00
mov rcx, qword [rbp + 0x7f]
mov r10d, dword [rbp + 0x6f]
movss dword [rcx], xmm0
add rcx, 4
sub qword [rbp - 9], 1
mov qword [rbp + 0x7f], rcx
jne 0x1400813b0
mov edx, r14d
inc r10d
mov r14d, edx
mov dword [rbp + 0x6f], r10d
cmp r10d, dword [rbx + 0x20]
jb 0x140081320
movaps xmm6, xmmword [rsp + 0x40]
mov rcx, rbx
mov r15, qword [rsp + 0x58]
mov r12, qword [rsp + 0x70]
call fcn.140025060
jmp 0x140081641
mov ecx, dword [rbx + 0x2c]
xor edx, edx
mov r8, qword [rbx + 0x2a0]
mov eax, ecx
div dword [rbx + 0x5a0]
sub ecx, edx
lea rdx, [rbx + 0x70]
mov eax, ecx
mov rcx, qword [rbx + 0x2b8]
cmp rcx, rax
cmovge ecx, eax
imul ecx, dword [rbx + 0x2ac]
lea r9d, [rcx + 7]
shr r9d, 3
lea rcx, [rbx + 0x2f8]
call fcn.1400235f0
test al, al
je 0x1400815b1
mov edx, dword [rbx + 0x2ac]
lea rcx, [rbx + 0x2f8]
xor r13d, r13d
mov r14d, r13d
call fcn.140022f70
test al, al
je 0x14008162f
mov edx, dword [rbx + 0x2ac]
lea rcx, [rbx + 0x2f8]
call fcn.140024500
movzx edx, al
lea rcx, [rbx + 0x310]
call qword [rbx + 0x348]
mov edx, r14d
inc r14d
movsx ecx, ax
mov rax, qword [rbx + 0x2b0]
movd xmm0, ecx
mov rcx, qword [rax]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [rbx + 0x344]
movss dword [rcx + rdx*4], xmm0
lea rcx, [rbx + 0x2f8]
mov edx, dword [rbx + 0x2ac]
call fcn.140022f70
test al, al
jne 0x1400814c1
mov edx, r14d
mov rcx, rbx
call fcn.140025060
jmp 0x140081641
mov eax, dword [rbx + 0x2cc]
mov rdi, qword [rbx + 0x2e0]
cmp rdi, rax
cmovge edi, eax
mov dword [rbp + 0x67], edi
test edi, edi
je 0x1400815b1
mov rdx, qword [rbx + 0x2a0]
lea r9, [rbp + 0x6f]
mov rcx, qword [rbx + 0x70]
xor r13d, r13d
mov r8d, edi
mov dword [rbp + 0x6f], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400815b1
cmp dword [rbp + 0x6f], edi
jne 0x1400815b1
mov rdx, qword [rbx + 0x2b0]
lea rcx, [rbx + 0x310]
mov r9d, dword [rbp + 0x67]
sub qword [rbx + 0x2e0], r9
mov r8, qword [rbx + 0x2a0]
mov rdx, qword [rdx]
call fcn.140038f50
mov edx, eax
mov rcx, rbx
mov r14d, eax
call fcn.140025060
jmp 0x140081641
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
xor eax, eax
jmp 0x140081641
mov r8d, dword [rbx + 0x20]
xor r13d, r13d
mov rdx, qword [rbx + 0x2b0]
xor r9d, r9d
mov rcx, qword [rbx + 0x318]
mov qword [rsp + 0x20], r13
call fcn.14003f330
mov r14d, eax
test eax, eax
jne 0x1400815f7
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x140081641
mov eax, dword [rbx + 0x324]
test eax, eax
je 0x14008162f
cmp eax, r14d
mov r9d, r14d
cmovb r9d, eax
sub eax, r9d
mov dword [rbx + 0x324], eax
sub r14d, r9d
je 0x1400815bb
mov rcx, qword [rbx + 0x2b0]
xor edx, edx
mov r8, rcx
mov dword [rsp + 0x20], r14d
call fcn.140027780
mov edx, r14d
mov rcx, rbx
call fcn.140025060
jmp 0x140081641
mov eax, 0x80040200
mov rsi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
mov r13, qword [rsp + 0x68]
add rsp, 0x88
pop rbx
pop rbp
ret