Function at 0x140176160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rsi, r9
mov dword [rsp + 0x48], r8d
mov r13, rdx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x88], r9
xor edi, edi
mov dword [rsp + 0x50], edi
mov rax, qword [rdx + 0x10]
mov ecx, edi
mov edx, 3
test rax, rax
cmove ecx, edx
je 0x14017671c
lea r12, [0x14028b1b8]
test r9, r9
je 0x1401761e5
mov dword [r9], edi
mov byte [r9 + 4], dil
mov qword [r9 + 8], r12
mov qword [rsp + 0x30], rdi
mov ecx, 0x40
test rsi, rsi
jne 0x14017637c
call fcn.1400e351c
mov rbx, rax
test rax, rax
je 0x140176238
mov dword [rax], edi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], 7
mov word [rax + 8], di
mov dword [rax + 0x28], edi
mov qword [rax + 0x2c], 0xffff
mov dword [rax + 0x34], 0xffff
mov qword [rax + 0x38], rdi
mov eax, 1
lock xadd dword [rbx], eax
jmp 0x14017623b
mov rbx, rdi
mov qword [rsp + 0x30], rbx
movdqa xmm0, xmmword [0x14027bc70]
movdqu xmmword [rsp + 0xd8], xmm0
mov word [rsp + 0xc8], di
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x3c], 0xffff
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], 0xffff
mov rdx, r13
cmp qword [r13 + 0x18], 8
jb 0x14017627f
mov rdx, qword [r13]
movdqa xmm0, xmmword [0x14027bc70]
movdqu xmmword [rsp + 0x138], xmm0
mov word [rsp + 0x128], di
mov r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401762a2
lea rcx, [rsp + 0x128]
call fcn.140086f50
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x128]
lea rdx, [rbx + 0x38]
lea rcx, [rsp + 0x70]
call fcn.140175e40
nop
lea rcx, [rsp + 0x128]
call fcn.1400867f0
nop
mov edx, dword [rsp + 0x70]
test edx, edx
je 0x1401764ab
mov dword [rsp + 0x60], reloc.WS2_32.dll_listen
mov byte [rsp + 0x64], 1
lea rax, [0x14028b1c8]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
call qword [rax + 0x18]
test al, al
jne 0x14017634e
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x70]
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x140176359
test byte [rsp + 0x48], 1
jne 0x140176419
mov ecx, dword [rsp + 0x70]
test ecx, ecx
jne 0x140176406
test rsi, rsi
je 0x140176419
mov dword [rsi], edi
mov byte [rsi + 4], cl
mov qword [rsi + 8], r12
jmp 0x140176419
lea rdx, [0x140374a78]
call fcn.140267610
mov rbx, rax
test rax, rax
je 0x1401763c3
mov dword [rax], edi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], 7
mov word [rax + 8], di
mov dword [rax + 0x28], edi
mov qword [rax + 0x2c], 0xffff
mov dword [rax + 0x34], 0xffff
mov qword [rax + 0x38], rdi
mov eax, 1
lock xadd dword [rbx], eax
jmp 0x1401763c6
mov rbx, rdi
mov qword [rsp + 0x30], rbx
test rbx, rbx
jne 0x140176240
mov dword [rsp + 0x98], send
mov byte [rsp + 0x9c], 1
lea rax, [0x14028b1c8]
mov qword [rsp + 0xa0], rax
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsi], xmm0
jmp 0x14017672e
lea r9, str.boost::filesystem::directory_iterator::construct
mov r8, rsi
mov rdx, r13
call fcn.140177610
nop
mov rdx, qword [rsp + 0xe0]
cmp rdx, 8
jb 0x140176465
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017645f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14017645f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082ab0
nop
test rbx, rbx
je 0x1401764a6
lock xadd dword [rbx], r15d
lea eax, [r15 - 1]
test eax, eax
jne 0x1401764a6
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14017648a
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x38], rdi
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx + 8]
call fcn.1400867f0
nop
mov edx, 0x40
mov rcx, rbx
call fcn.140082ab0
jmp 0x14017672e
mov r14, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xe0]
cmp qword [rbx + 0x38], 0
je 0x14017668d
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov qword [rcx], rbx
mov rbx, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xf8], xmm0
lea rcx, [rsp + 0xc8]
cmp r12, 8
cmovae rcx, r14
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0xd8]
cmp rax, 8
jae 0x14017652c
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], 7
jmp 0x1401765a7
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
cmova rax, rcx
mov qword [rsp + 0x80], rax
lea rdx, [rax + 1]
lea rcx, [rsp + 0xe8]
call fcn.140086a90
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xe8], rax
mov r8, qword [rsp + 0xd8]
lea r8, [r8*2 + 2]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x100], rax
mov rdx, r13
lea rcx, [rsp + 0x108]
call fcn.14008e160
mov dword [rsp + 0x50], 1
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x108]
call fcn.140173f50
mov rax, qword [rsp + 0x58]
mov r13, qword [rax]
add r13, 8
lea rax, [rsp + 0x108]
cmp r13, rax
je 0x140176617
lea rdx, [rsp + 0x108]
cmp qword [rsp + 0x120], 8
cmovae rdx, qword [rsp + 0x108]
mov r8, qword [rsp + 0x118]
mov rcx, r13
call fcn.140086f50
mov eax, dword [rsp + 0x38]
mov dword [r13 + 0x20], eax
mov eax, dword [rsp + 0x3c]
mov dword [r13 + 0x24], eax
mov eax, dword [rsp + 0x40]
mov dword [r13 + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [r13 + 0x2c], eax
lea rcx, [rsp + 0x108]
call fcn.1400867f0
nop
lea rcx, [rsp + 0xe8]
call fcn.1400867f0
nop
lea rax, [rsp + 0xc8]
cmp r12, 8
cmovae rax, r14
cmp word [rax], 0x2e
jne 0x14017668d
movzx edx, word [rax + 2]
test dx, dx
je 0x14017667f
cmp dx, 0x2e
jne 0x14017668d
cmp word [rax + 4], 0
jne 0x14017668d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.140176760
nop
cmp r12, 8
jb 0x1401766cc
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1401766c3
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401766c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140082ab0
nop
jmp 0x1401766d9
test rbx, rbx
je 0x14017672e
lock xadd dword [rbx], r15d
lea eax, [r15 - 1]
test eax, eax
jne 0x14017672e
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140176703
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x38], rdi
lea rcx, [rbx + 8]
call fcn.1400867f0
nop
mov edx, 0x40
mov rcx, rbx
call fcn.140082ab0
jmp 0x14017672e
lea r9, str.boost::filesystem::directory_iterator::construct
mov r8, rsi
mov rdx, r13
call fcn.140177610
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.1400e39a0
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret