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

Disassembly:
mov r11, rsp
push rbx
push r12
push r13
push r15
sub rsp, 0x58
movsx rax, byte [rcx + 0x435]
mov rbx, rcx
mov r15, qword [rcx]
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
imul r13, rax, 0x138
mov qword [r11 + 0x20], rdi
xor r12d, r12d
mov qword [r11 - 0x28], r14
mov rcx, rbx
call fcn.180027c30
test eax, eax
jne 0x180032f76
mov rax, qword [rbx + 0x60]
cmp qword [rbx + 0x58], rax
je 0x180032ee0
mov rsi, qword [r13 + r15 + 0x2c0]
mov rcx, rbx
mov edi, dword [r15 + 0x7ec]
add rsi, 9
mov rbp, rsi
call fcn.180027bb0
mov rcx, qword [rax + 0xb8]
test rcx, rcx
je 0x180032d07
mov eax, dword [rcx + 0x38]
cmp rdi, rax
cmova edi, eax
sub rdi, 9
cmp qword [rbx + 0x90], r12
je 0x180032d22
mov rax, qword [rbx + 0x98]
cmp rdi, rax
cmova rdi, rax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x180032d36
cmp rdi, rcx
cmova rdi, rcx
mov rax, qword [rbx + 0x360]
movzx r9d, byte [rax + 0x1c]
test r9b, 0xf
je 0x180032d6f
mov rax, qword [rax + 0x10]
and r9d, 0xf
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [rax + r9*8 - 8]
mov eax, eax
test rax, rax
je 0x180032f8f
cmp rax, rdi
cmovb rdi, rax
mov eax, dword [rbx + 0x41c]
and eax, 0x100000
je 0x180032d80
lea rbp, [rsi + 0xa]
mov rcx, qword [rbx + 0x68]
lea r14, [rdi - 0x8a]
test eax, eax
mov qword [rsp + 0x80], r12
mov r8, rbp
lea rdx, [rsp + 0x80]
cmove r14, rdi
mov rax, qword [rcx + 8]
mov r9, r14
call qword [rax + 0x18]
test eax, eax
js 0x180032f93
mov rax, qword [rsp + 0x80]
mov edi, ebp
sub edi, esi
add edi, eax
test dword [rbx + 0x41c], 0x100000
cmovne edi, eax
test edi, edi
je 0x180032ee0
mov r8d, dword [r15 + 0x7e8]
mov edx, 0xa
mov rcx, rbx
call fcn.180035e70
mov edx, dword [rbx + 0x41c]
bt edx, 0x15
jae 0x180032e80
mov r9, qword [rbx + 0x3d8]
lea eax, [r14 + 0x80]
mov dword [rsp + 0x3c], eax
mov ecx, r12d
mov qword [rsp + 0x30], rbp
mov r8d, reloc.WS2_32.dll_gethostbyname
mov dword [rsp + 0x38], edi
mov eax, edi
add rax, qword [rbx + 0x58]
cmp rax, qword [rbx + 0x60]
movsx rax, byte [rbx + 0x436]
sete cl
mov qword [rsp + 0x28], r12
imul r10, rax, 0x38
mov rax, qword [rbx + 8]
shr edx, 0x14
and edx, 1
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x44], edx
mov rdx, rbx
mov rcx, qword [rax + 0x248]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [r10 + rcx + 8]
call fcn.1800286e0
test eax, eax
js 0x180032f93
mov edi, dword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov r8, qword [rsp + 0x80]
mov r9d, 3
add r8, qword [rbx + 0x58]
mov eax, 7
cmp r8, qword [rbx + 0x60]
mov rdx, rsi
mov r8d, edi
mov rcx, rbx
cmove r9d, eax
call fcn.180029a40
test eax, eax
js 0x180032f93
mov rcx, qword [rsp + 0x80]
add qword [rbx + 0x58], rcx
cmp eax, edi
je 0x180032ee0
mov rcx, qword [rbx + 0x68]
sub eax, edi
movsxd rdx, eax
mov r8, qword [rcx + 8]
call qword [r8 + reloc.WS2_32.dll_recv]
cmp rax, 0xffffffffffffffff
je 0x180032f93
mov rcx, rbx
call fcn.180027c30
test eax, eax
jne 0x180032ef6
mov rax, qword [rbx + 0x60]
cmp qword [rbx + 0x58], rax
jae 0x180032f15
mov rcx, rbx
call fcn.1800294e0
test eax, eax
je 0x180032cb6
mov rcx, rbx
call fcn.180037aa0
xor eax, eax
jmp 0x180032fb1
lea rcx, [rbx + 0x68]
mov word [rbx + 0x400], 0x119
mov rax, qword [rcx]
test rax, rax
je 0x180032f36
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180032f36
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180032f6f
mov r9, qword [rbx + 0x3d8]
mov r8d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x28], r12
mov rdx, rbx
mov qword [rsp + 0x20], r12
call fcn.1800286e0
test eax, eax
jns 0x180032f6f
test byte [rbx + 0x41c], 2
je 0x180032fac
mov eax, 1
jmp 0x180032fb1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.180029530
test eax, eax
js 0x180032f93
mov rcx, rbx
call fcn.180037aa0
xor eax, eax
jmp 0x180032fb1
mov rax, qword [rbx + 0x68]
lea rcx, [rbx + 0x68]
test rax, rax
je 0x180032fac
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180032fac
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
add rsp, 0x58
pop r15
pop r13
pop r12
pop rbx
ret