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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0xc8
call fcn.14036a3f0
sub rsp, rax
mov dword [rsp + 0x38], 1
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xd0]
mov rax, qword [rcx + rax + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x180]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x188]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
movabs rax, 0xfffffffe0
cmp qword [rsp + 0x48], rax
ja 0x140156b2b
xor eax, eax
cmp eax, 1
je 0x140156b35
mov rax, qword [rsp + 0xe8]
cmp qword [rsp + 0x48], rax
jae 0x140156b35
mov eax, 0xffffffff
jmp 0x140157460
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x48]
mov qword [rcx + rax + 0x30], rdx
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x178]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xd0]
cmp dword [rax + 0x17c], 0
je 0x140156c3b
cmp qword [rsp + 0xe8], 0
jne 0x140156bc4
mov rax, qword [rsp + 0xd0]
add rax, 0x60
mov rcx, qword [rsp + 0xd0]
add rcx, 0x40
mov rdx, rax
mov rax, qword [rsp + 0xd0]
call qword [rax + 0x170]
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x17c], 0
xor eax, eax
jmp 0x140157460
mov rax, qword [rsp + 0xd0]
add rax, 0x40
mov rcx, qword [rsp + 0xd0]
add rcx, 0x190
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xd0]
mov qword [rcx + rax + 0x40], 0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xd0]
mov qword [rcx + rax + 0x40], 0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x17c], 0
movsx eax, byte [rsp + 0x38]
test eax, eax
je 0x140156c60
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0xd0]
mov eax, dword [rcx + rax]
bswap eax
mov dword [rsp + 0x24], eax
jmp 0x140156c78
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0xd0]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x24], eax
xor edx, edx
mov eax, dword [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_recv
div ecx
mov eax, edx
mov dword [rsp + 0x28], eax
xor eax, eax
cmp eax, 1
je 0x1401572cb
cmp dword [rsp + 0x28], 0
je 0x140156dd4
cmp dword [rsp + 0x28], 0
je 0x140156d5e
cmp qword [rsp + 0xe8], 0
je 0x140156d5e
mov rax, qword [rsp + 0xd8]
movzx eax, byte [rax]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0xd0]
movzx ecx, byte [rdx + rcx + 0x10]
xor eax, ecx
mov rcx, qword [rsp + 0xe0]
mov byte [rcx], al
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xe0]
movzx edx, byte [rdx]
mov byte [rcx + rax + 0x190], dl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xe0]
inc rax
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xd8]
inc rax
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xe8]
dec rax
mov qword [rsp + 0xe8], rax
mov eax, dword [rsp + 0x28]
inc eax
xor edx, edx
mov ecx, reloc.WS2_32.dll_recv
div ecx
mov eax, edx
mov dword [rsp + 0x28], eax
jmp 0x140156ca1
cmp dword [rsp + 0x28], 0
jne 0x140156dbb
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
add rcx, 0x190
mov rdx, qword [rsp + 0xd0]
add rdx, 0x60
mov r8, qword [rsp + 0xd0]
add r8, 0x40
mov qword [rsp + 0x70], r8
mov r9d, eax
mov r8, rcx
mov rax, qword [rsp + 0x70]
mov rcx, rax
mov rax, qword [rsp + 0xd0]
call qword [rax + 0x168]
mov dword [rsp + 0x20], 0
jmp 0x140156dd4
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x178], ecx
xor eax, eax
jmp 0x140157460
cmp qword [rsp + 0xe8], 0x10
jb 0x140156e3a
cmp dword [rsp + 0x20], 0
je 0x140156e3a
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
add rcx, 0x190
mov rdx, qword [rsp + 0xd0]
add rdx, 0x60
mov r8, qword [rsp + 0xd0]
add r8, 0x40
mov qword [rsp + 0x78], r8
mov r9d, eax
mov r8, rcx
mov rax, qword [rsp + 0x78]
mov rcx, rax
mov rax, qword [rsp + 0xd0]
call qword [rax + 0x168]
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0xe8], 0xc00
jb 0x140156fea
mov qword [rsp + 0x60], 0xc00
cmp qword [rsp + 0x60], 0
je 0x140156f7c
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xd0]
add rax, 0x10
mov rcx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0x50]
mov rdx, rax
call qword [rsp + 0x58]
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsx eax, byte [rsp + 0x38]
test eax, eax
je 0x140156ed0
mov eax, dword [rsp + 0x24]
bswap eax
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0xd0]
mov dword [rdx + rcx], eax
jmp 0x140156ee8
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0xd0]
mov edx, dword [rsp + 0x24]
mov dword [rcx + rax], edx
mov qword [rsp + 0x30], 0
jmp 0x140156f00
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 2
jae 0x140156f41
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rdx + r8*8 + 0x10]
mov rax, qword [rax + rcx*8]
xor rax, rdx
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x30]
mov qword [rcx + rdx*8], rax
jmp 0x140156ef3
mov rax, qword [rsp + 0xe0]
add rax, 0x10
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xd8]
add rax, 0x10
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x60]
sub rax, 0x10
mov qword [rsp + 0x60], rax
jmp 0x140156e55
mov rax, qword [rsp + 0xe0]
sub rax, 0xc00
mov rcx, qword [rsp + 0xd0]
add rcx, 0x60
mov rdx, qword [rsp + 0xd0]
add rdx, 0x40
mov qword [rsp + 0x90], rdx
mov r9d, 0xc00
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x90]
mov rcx, rax
mov rax, qword [rsp + 0xd0]
call qword [rax + 0x168]
mov rax, qword [rsp + 0xe8]
sub rax, 0xc00
mov qword [rsp + 0xe8], rax
jmp 0x140156e3a
mov rax, qword [rsp + 0xe8]
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140157198
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0xe8], 0x10
jb 0x140157141
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xd0]
add rax, 0x10
mov rcx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0x50]
mov rdx, rax
call qword [rsp + 0x58]
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsx eax, byte [rsp + 0x38]
test eax, eax
je 0x14015708f
mov eax, dword [rsp + 0x24]
bswap eax
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0xd0]
mov dword [rdx + rcx], eax
jmp 0x1401570a7
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0xd0]
mov edx, dword [rsp + 0x24]
mov dword [rcx + rax], edx
mov qword [rsp + 0x30], 0
jmp 0x1401570bf
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 2
jae 0x140157100
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rdx + r8*8 + 0x10]
mov rax, qword [rax + rcx*8]
xor rax, rdx
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x30]
mov qword [rcx + rdx*8], rax
jmp 0x1401570b2
mov rax, qword [rsp + 0xe0]
add rax, 0x10
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xd8]
add rax, 0x10
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xe8]
sub rax, 0x10
mov qword [rsp + 0xe8], rax
jmp 0x140157011
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xe0]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xd0]
add rcx, 0x60
mov rdx, qword [rsp + 0xd0]
add rdx, 0x40
mov qword [rsp + 0xa8], rdx
mov r9, qword [rsp + 0x68]
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0xa8]
mov rcx, rax
mov rax, qword [rsp + 0xd0]
call qword [rax + 0x168]
cmp qword [rsp + 0xe8], 0
je 0x1401572a8
mov rax, qword [rsp + 0xd0]
add rax, 0x10
mov rcx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0x50]
mov rdx, rax
call qword [rsp + 0x58]
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsx eax, byte [rsp + 0x38]
test eax, eax
je 0x1401571f6
mov eax, dword [rsp + 0x24]
bswap eax
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0xd0]
mov dword [rdx + rcx], eax
jmp 0x14015720e
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0xd0]
mov edx, dword [rsp + 0x24]
mov dword [rcx + rax], edx
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xe8]
dec rax
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xb0], 0
je 0x1401572a8
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xd8]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0xd0]
movzx ecx, byte [rdx + rcx + 0x10]
xor eax, ecx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xe0]
movzx edx, byte [rsp + 0x3c]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
movzx edx, byte [rsp + 0x3c]
mov byte [rcx + rax + 0x190], dl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x14015720e
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x178], ecx
xor eax, eax
jmp 0x140157460
mov qword [rsp + 0x30], 0
jmp 0x1401572e3
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe8]
cmp qword [rsp + 0x30], rax
jae 0x14015744c
cmp dword [rsp + 0x28], 0
jne 0x140157364
mov rax, qword [rsp + 0xd0]
add rax, 0x10
mov rcx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0x50]
mov rdx, rax
call qword [rsp + 0x58]
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsx eax, byte [rsp + 0x38]
test eax, eax
je 0x14015734c
mov eax, dword [rsp + 0x24]
bswap eax
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0xd0]
mov dword [rdx + rcx], eax
jmp 0x140157364
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0xd0]
mov edx, dword [rsp + 0x24]
mov dword [rcx + rax], edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0xd0]
movzx ecx, byte [rdx + rcx + 0x10]
xor eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x40]
mov byte [rax], cl
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
movzx edx, byte [rsp + 0x40]
mov byte [rcx + rax + 0x190], dl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
inc eax
xor edx, edx
mov ecx, reloc.WS2_32.dll_recv
div ecx
mov eax, edx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cmp rax, 0x30
jne 0x140157447
mov rax, qword [rsp + 0xd0]
add rax, 0x190
mov rcx, qword [rsp + 0xd0]
add rcx, 0x60
mov rdx, qword [rsp + 0xd0]
add rdx, 0x40
mov qword [rsp + 0xb8], rdx
mov r9d, gethostbyname
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0xb8]
mov rcx, rax
mov rax, qword [rsp + 0xd0]
call qword [rax + 0x168]
mov dword [rsp + 0x20], 0
jmp 0x1401572d6
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x178], ecx
xor eax, eax
add rsp, 0xc8
ret