Function at 0x140040170
Capabilities:
Allocate or change rwx memory
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x140160140]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rdx
mov qword [rsp + 0x38], rdx
mov r13, rcx
mov qword [rsp + 0x28], rcx
lea rax, [rbp - 0x41]
mov qword [rsp + 0x30], rax
and dword [rbp - 0x41], 0
xor edi, edi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], rdi
lea ecx, [rdi + 0x38]
call fcn.1400c8ac8
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
mov qword [rbp - 9], 8
mov dword [rbp - 0x41], 0x3f800000
mov r8, rax
lea edx, [rdi + 0x10]
lea rcx, [rbp - 0x29]
call fcn.14004b434
nop
xor r9d, r9d
mov qword [rbp - 1], r9
xorps xmm0, xmm0
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp - 0x49], rbx
mov eax, dword [rbx + 0x3c]
mov edi, dword [rax + rbx + 0x88]
add rdi, rbx
cmp dword [rdi + 0x14], r9d
je 0x14004030d
mov r14d, dword [rdi + 0x20]
mov r15d, dword [rdi + 0x1c]
add r15, rbx
mov r12d, dword [rdi + 0x24]
add r12, rbx
add r14, rbx
je 0x14004030d
test r15, r15
je 0x14004030d
test r12, r12
je 0x14004030d
mov esi, r9d
cmp dword [rdi + 0x18], r9d
jbe 0x14004030d
mov edx, dword [r14 + rsi*4]
add rdx, rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x71], xmm0
mov qword [rbp - 0x61], r9
mov qword [rbp - 0x59], r9
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r9b
jne 0x140040285
lea rcx, [rbp - 0x71]
call fcn.14004cfdc
nop
movzx eax, word [r12 + rsi*2]
mov ebx, dword [r15 + rax*4]
lea r8, [rbp - 0x71]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x41]
call fcn.14004d1cc
mov rcx, qword [rax]
mov qword [rcx + 0x30], rbx
mov rdx, qword [rbp - 0x59]
cmp rdx, 0xf
jbe 0x1400402f5
inc rdx
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400402f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400406a3
call fcn.1400c8ac0
inc rsi
mov eax, dword [rdi + 0x18]
xor r9d, r9d
cmp rsi, rax
jae 0x14004030d
mov rbx, qword [rsp + 0x38]
jmp 0x14004026b
mov r8d, r9d
mov dword [rsp + 0x20], r9d
mov rdi, qword [rbp - 0x39]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400405ce
lea r13, [rbx + 0x10]
mov r12, qword [rsp + 0x38]
add r12, qword [r13 + 0x20]
mov rsi, r9
mov al, byte [rsi + r12]
inc rsi
cmp al, 0xc3
je 0x140040349
cmp rsi, 0x40
jb 0x140040335
mov rsi, r9
movzx edx, byte [r12]
movzx ecx, byte [r12 + 2]
movzx eax, byte [r12 + 1]
add ecx, eax
add ecx, edx
cmp ecx, 0x1a8
jne 0x1400405bd
test rsi, rsi
je 0x1400405bd
mov rcx, r12
inc rcx
cmp dl, 0xf
jne 0x140040383
cmp byte [rcx], 5
je 0x140040396
mov rax, rcx
sub rax, r12
cmp rax, rsi
jae 0x1400405bd
mov dl, byte [rcx]
jmp 0x140040376
mov rcx, qword [rsp + 0x28]
lea r15, [rcx + 8]
mov rax, qword [r15 + 8]
cmp qword [r15], rax
jne 0x1400403eb
mov r14, r9
lea r8, [r14 + r12]
mov al, byte [r8]
cmp al, 0xf6
jne 0x1400403bc
add r14, 9
jmp 0x1400403d6
mov rdx, qword [r15 + 8]
cmp rdx, qword [r15 + 0x10]
je 0x1400403ce
mov byte [rdx], al
inc qword [r15 + 8]
jmp 0x1400403d6
mov rcx, r15
call fcn.14004ff20
inc r14
cmp r14, rsi
jb 0x1400403ab
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rsp + 0x20]
xor r9d, r9d
mov rax, r9
cmp byte [rax + r12], 0xb8
je 0x140040403
inc rax
cmp rax, rsi
jb 0x1400403ee
movzx r12d, r9w
jmp 0x140040409
movzx r12d, word [rax + r12 + 1]
movzx eax, r12w
cmp eax, r8d
cmova r8d, eax
mov dword [rsp + 0x20], r8d
lea r14, [rcx + 0x20]
mov rcx, r13
cmp qword [r13 + 0x18], 0xf
jbe 0x14004042b
mov rcx, qword [r13]
mov rdx, qword [r13 + 0x10]
call fcn.140050e60
mov qword [rsp + 0x30], rax
mov r9, rax
mov r8, r13
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400508dc
mov rsi, qword [rsp + 0x58]
xor r9d, r9d
test rsi, rsi
jne 0x1400405b3
movabs rax, 0x492492492492492
cmp qword [r14 + 0x10], rax
je 0x140040696
lea rax, [r14 + 8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r9
lea ecx, [rsi + 0x38]
call fcn.1400c8ac8
mov rsi, rax
mov qword [rsp + 0x48], rax
lea r15, [rax + 0x10]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
xor eax, eax
mov qword [r15 + 0x10], rax
mov qword [r15 + 0x18], rax
mov r8, qword [r13 + 0x10]
cmp qword [r13 + 0x18], 0xf
jbe 0x1400404b3
mov r13, qword [r13]
mov rdx, r13
mov rcx, r15
call fcn.14004d09c
xor ecx, ecx
mov word [r15 + 0x20], cx
mov rcx, qword [r14 + 0x10]
add rcx, 1
xorps xmm0, xmm0
js 0x1400404d9
cvtsi2ss xmm0, rcx
jmp 0x1400404ee
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [r14 + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x140040501
cvtsi2ss xmm1, rcx
jmp 0x140040516
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [r14]
jbe 0x14004054a
mov rcx, r14
call fcn.14004e52c
mov r13, qword [rsp + 0x30]
mov r9, r13
mov r8, r15
lea rdx, [rbp - 0x71]
mov rcx, r14
call fcn.1400508dc
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x50], xmm0
jmp 0x14004054f
mov r13, qword [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x50]
mov r8, qword [rdx + 8]
inc qword [r14 + 0x10]
mov qword [rsi], rdx
mov qword [rsi + 8], r8
mov qword [r8], rsi
mov qword [rdx + 8], rsi
mov rcx, qword [r14 + 0x18]
mov rax, qword [r14 + 0x30]
and rax, r13
add rax, rax
mov r9, qword [rcx + rax*8]
cmp r9, qword [r14 + 8]
jne 0x14004058f
mov qword [rcx + rax*8], rsi
jmp 0x1400405a1
cmp r9, rdx
jne 0x14004059a
mov qword [rcx + rax*8], rsi
jmp 0x1400405a6
cmp qword [rcx + rax*8 + 8], r8
jne 0x1400405a6
mov qword [rcx + rax*8 + 8], rsi
lea rcx, [rsp + 0x40]
call fcn.14004da44
xor r9d, r9d
mov word [rsi + 0x30], r12w
mov r8d, dword [rsp + 0x20]
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140040325
mov r13, qword [rsp + 0x28]
mov r14, qword [r13 + 0x10]
sub r14, qword [r13 + 8]
lea ecx, [r8 + 1]
imul r14, rcx
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [r13], rax
test rax, rax
je 0x14004065d
mov r8, r14
mov edx, 0x90
mov rcx, rax
call fcn.1400f8fb0
mov rdi, qword [r13 + 0x28]
mov rbx, qword [rdi]
jmp 0x140040640
mov rdx, qword [r13 + 8]
mov r8, qword [r13 + 0x10]
sub r8, rdx
movzx esi, word [rbx + 0x30]
imul rsi, r8
add rsi, qword [r13]
mov rcx, rsi
call fcn.1400f9370
movzx eax, word [rbx + 0x30]
mov dword [rsi + 4], eax
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140040617
lea r9, [rbp - 0x79]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r14
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
lea rcx, [rbp - 1]
call fcn.1400492ec
lea rcx, [rbp - 0x41]
call fcn.1400406ac
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400c86e0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.unordered_map_set_too_long
call fcn.1400c9af8
int3
call fcn.1400dd534
int3