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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
mov rbx, rdx
lea ecx, [rbp + 0x34]
mov dword [rsp + 0x60], ebp
call fcn.180076d78
mov rsi, rax
cmp dword [rbx + 0x9c], ebp
je 0x180091c39
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x180091c39
call fcn.180076a50
mov qword [rbx + 0x90], rbp
xor edx, edx
mov rcx, rsi
mov dword [rbx + 0x9c], 1
lea r8d, [rdx + 0x34]
mov dword [rbx + 0x98], ebp
mov qword [rbx + 0x90], rsi
call fcn.1800795c0
mov rcx, qword [rdi]
mov edx, dword [rbx + 0x50]
xor r11d, r11d
xor r8d, r8d
mov dword [rsp + 0x20], r11d
mov dword [rsp + 0x24], r11d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x2c], r11d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x34], r11d
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rdi]
mov rdx, qword [rbx + 0x90]
mov rax, qword [rcx]
lea r9, [rsp + 0x60]
mov r8d, reloc.WS2_32.dll_gethostbyname
call qword [rax + 0x18]
mov r11, qword [rbx + 0x90]
mov edx, dword [r11 + 8]
sub edx, dword [rsp + 0x60]
je 0x180091cc9
mov rcx, qword [rdi]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rdi]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov rax, qword [rcx]
mov r8d, 0x18
call qword [rax + 0x18]
mov r11, qword [rbx + 0x90]
mov edx, dword [r11 + 0xc]
sub edx, dword [rsp + 0x60]
je 0x180091d02
mov rcx, qword [rdi]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r9, qword [rbx + 0x90]
movzx ecx, word [rsp + 0x32]
mov r8d, dword [rsp + 0x2c]
movzx eax, word [r9 + 4]
mov r10d, dword [rsp + 0x28]
mov r11d, dword [rsp + 0x24]
mov dword [rbx], eax
movzx eax, word [rsp + 0x20]
mov dword [rbx + 0xc], r8d
mov dword [rbx + 4], eax
movzx eax, word [rsp + 0x22]
mov dword [rbx + 0x14], r10d
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x34]
mov dword [rbx + 0x10], r11d
mov dword [rbx + 0x1c], eax
movzx eax, word [rsp + 0x30]
mov dword [rbx + 0x18], ecx
mov dword [rbx + 0x20], eax
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, eax
mov dword [rbx + 0x24], eax
imul edx, ecx
mov dword [rbx + 0x28], edx
test r8d, r8d
jne 0x180091d6f
mov ecx, ebp
jmp 0x180091d7a
lea ecx, [r8 - 1]
imul ecx, r11d
add ecx, r10d
test byte [rsp + 0x22], 0x20
mov dword [rbx + 0x40], ecx
mov r8d, 0x2c
jne 0x180091d8e
mov r8d, dword [r9 + 0x14]
mov dword [rbx + 0x2c], r8d
mov eax, dword [r9 + 0x20]
imul edx, ecx
mov dword [rbx + 0x34], eax
add eax, edx
mov dword [rbx + 0x30], edx
add eax, r8d
mov dword [rbx + 0x38], eax
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov edx, dword [rbx + 0x1c]
movd xmm1, dword [rbx + 0x40]
movd xmm0, edx
mov dword [rbx + 0x3c], eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x1800d0680]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si ecx, xmm1
mov dword [rbx + 0x44], ecx
test ecx, ecx
jg 0x180091de2
mov eax, ebp
jmp 0x180091e02
movd xmm1, eax
movd xmm0, ecx
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
mulsd xmm1, qword [0x1800d22c8]
divsd xmm1, xmm0
cvttsd2si eax, xmm1
imul edx, dword [rbx + 0x28]
mov dword [rbx + 0x48], eax
mov eax, 0x10624dd3
mov r12, 0xffffffffffffffff
shl edx, 3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov rax, qword [rbx + 0x90]
mov dword [rbx + 0x4c], edx
mov ecx, dword [rax + 0x10]
mov eax, 4
shr ecx, 2
mov dword [rbx + 0x54], ecx
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180076d78
mov rsi, rax
cmp dword [rbx + 0x6c], ebp
je 0x180091e65
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x180091e65
call fcn.180076a50
mov qword [rbx + 0x60], rbp
mov dword [rbx + 0x6c], 1
mov dword [rbx + 0x68], 1
mov qword [rbx + 0x60], rsi
mov rdx, rsi
test rsi, rsi
jne 0x180091e87
mov eax, r12d
jmp 0x180091f07
mov rcx, qword [rdi]
mov r8d, dword [rbx + 0x54]
lea r9, [rsp + 0x60]
mov rax, qword [rcx]
shl r8d, 2
call qword [rax + 0x18]
test byte [rsp + 0x22], 0x20
jne 0x180091f05
movsxd rcx, dword [rbx + 0x2c]
call fcn.180076d78
mov rsi, rax
cmp dword [rbx + 0x8c], ebp
je 0x180091ed0
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x180091ed0
call fcn.180076a50
mov qword [rbx + 0x80], rbp
mov dword [rbx + 0x8c], 1
mov dword [rbx + 0x88], 1
mov qword [rbx + 0x80], rsi
mov rdx, rsi
test rsi, rsi
je 0x180091e7f
mov rcx, qword [rdi]
mov r8d, dword [rbx + 0x2c]
lea r9, [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x18]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret