Function at 0x140006f50
Capabilities:
Create thread
Get file size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, rdx
mov r15, rcx
mov ecx, 0x90
call fcn.1400111ec
mov qword [rbp - 0x49], rax
mov rcx, rax
call fcn.140006c30
mov r14, rax
mov qword [rbp - 0x51], rax
lea rcx, [rax + 0x20]
xor r13d, r13d
cmp rcx, rdi
je 0x140006ffd
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x140006fc2
mov r9, qword [rdi]
mov rdx, qword [rdi + 0x10]
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x140006ff8
mov rsi, rcx
cmp rax, 8
jb 0x140006fdb
mov rsi, qword [rcx]
mov qword [rcx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.14002f4b0
mov word [rsi + rbx], r13w
jmp 0x140006ffd
call fcn.140005e90
lea rsi, [rdi + 0x20]
lea rcx, [r14 + 0x40]
cmp rcx, rsi
je 0x140007052
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x140007017
mov r9, qword [rsi]
mov rdx, qword [rsi + 0x10]
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x14000704d
mov r12, rcx
cmp rax, 8
jb 0x140007030
mov r12, qword [rcx]
mov qword [rcx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, r12
call fcn.14002f4b0
mov word [r12 + rbx], r13w
jmp 0x140007052
call fcn.140005e90
mov rax, qword [rdi + 0x40]
mov qword [r14 + 0x10], rax
mov eax, dword [rdi + 0x48]
mov dword [r14 + 8], eax
mov rbx, 0xffffffffffffffff
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140007075
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, rbx
je 0x1400070ba
lea rdx, [rbp - 0x49]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
cmovne rbx, qword [rbp - 0x49]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14 + 0x18], rbx
cmp rbx, 0xffffffffffffffff
jne 0x140007112
mov eax, dword [rdi + 0x48]
mov byte [rbp - 0x51], 3
mov dword [rbp - 0x50], eax
mov r9, qword [r15 + 0x20]
add r9, 0x28
lea r8, [rbp - 0x51]
lea rcx, [rbp - 0x71]
call fcn.1400088d0
nop
mov rdx, rax
mov rcx, qword [r15 + 0x20]
call fcn.14000ca30
nop
mov r8, qword [rbp - 0x71]
test r8, r8
je 0x14000732e
xor edx, edx
mov rcx, qword [0x1400600f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000732e
lea rcx, [r15 + 0x18]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rdx, qword [r15 + 8]
cmp rdx, qword [r15 + 0x10]
je 0x140007130
mov qword [rdx], r14
add qword [r15 + 8], 8
jmp 0x140007140
lea r8, [rbp - 0x51]
mov rcx, r15
call fcn.1400096e0
mov r14, qword [rbp - 0x51]
lea rcx, [r15 + 0x18]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r12d, dword [rdi + 0x48]
mov r13, qword [r14 + 0x18]
xor ecx, ecx
mov qword [rbp - 0x29], rcx
mov eax, 7
mov qword [rbp - 0x21], rax
mov word [rbp - 0x39], cx
mov qword [rbp - 9], rcx
mov qword [rbp - 1], rax
mov word [rbp - 0x19], cx
lea rcx, [rbp - 0x39]
cmp rcx, rdi
je 0x1400071ba
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x140007187
mov r9, qword [rdi]
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp - 0x39]
cmp rdx, 7
ja 0x1400071b1
mov qword [rbp - 0x29], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14002f4b0
xor eax, eax
mov word [rbp + rbx - 0x39], ax
jmp 0x1400071b6
call fcn.140005e90
mov rax, qword [rbp - 1]
lea rcx, [rbp - 0x19]
cmp rcx, rsi
je 0x14000720d
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400071d0
mov r9, qword [rsi]
mov rdx, qword [rsi + 0x10]
cmp rdx, rax
ja 0x140007204
lea rdi, [rbp - 0x19]
cmp rax, 8
cmovae rdi, qword [rbp - 0x19]
mov qword [rbp - 9], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call fcn.14002f4b0
xor esi, esi
mov word [rdi + rbx], si
jmp 0x14000720f
lea rcx, [rbp - 0x19]
call fcn.140005e90
xor esi, esi
mov qword [rbp + 7], r13
mov dword [rbp + 0xf], r12d
mov r9, qword [r15 + 0x20]
add r9, 0x28
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x71]
call fcn.140008d20
nop
mov rdx, rax
mov rcx, qword [r15 + 0x20]
call fcn.14000ca30
nop
mov r8, qword [rbp - 0x71]
test r8, r8
je 0x140007252
xor edx, edx
mov rcx, qword [0x1400600f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400111ec
mov rbx, rax
mov qword [rbp - 0x49], rax
mov ecx, 0x18
call fcn.1400111ec
mov qword [rax], r14
mov qword [rax + 8], r15
lea rcx, [0x1400075f0]
mov qword [rax + 0x10], rcx
mov qword [rbp - 0x51], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400098b0]
xor edx, edx
xor ecx, ecx
call fcn.140033b4c
mov qword [rbx], rax
test rax, rax
je 0x14000735b
mov qword [r14 + 0x88], rbx
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x1400072f2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400072ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007355
call fcn.1400111e4
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14000732e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007329
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007355
call fcn.1400111e4
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400111c0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14003393c
nop
mov dword [rdi], esi
mov ecx, 6
call fcn.14000fe90
int3