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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov r12, qword [rcx + 0xb8]
mov rbx, qword [rcx + 0xc0]
mov rbp, rcx
cmp r12, rbx
je 0x51c772
mov rsi, qword [0x0071cad0]
lea r13, [0x005bf7d0]
mov rdx, rbx
mov r15, r12
mov rax, qword [0x0071c9a0]
sub rdx, r12
and edx, 8
lea r14, [rsi + 0x18]
lea rdi, [rax + 8]
jne 0x51c800
mov qword [rsp + 0x160], rbp
mov rbp, r15
mov r12, qword [rbp]
test r12, r12
je 0x51c6e3
mov rax, qword [r12]
mov rdx, qword [rax + 0x20]
cmp rdx, r13
jne 0x51ce60
lea rcx, [rsi + 0x90]
mov qword [r12], r14
mov qword [r12 + 0x10], rcx
mov rcx, qword [r12 + 0x40]
lea r8, [rsi + 0x180]
mov qword [r12 + 0x28], r8
mov r9d, dword [rcx]
test r9d, r9d
je 0x51c7e5
cmp r9d, 0xffffffff
je 0x51c6c0
lock sub dword [rcx], 1
je 0x51c7e0
nop word cs:[rax + rax]
lea rcx, [r12 + 0x10]
mov rdx, rdi
call fcn.005ba200
mov rcx, r12
call qword [0x0075cea4]
mov edx, 0x48
mov rcx, r12
call fcn.005ab728
lea r15, [rbp + 8]
mov rbp, qword [rbp + 8]
test rbp, rbp
je 0x51c756
mov r10, qword [rbp]
mov r11, qword [r10 + 0x20]
cmp r11, r13
jne 0x51ce50
mov rcx, qword [rbp + 0x40]
lea r12, [rsi + 0x90]
mov qword [rbp], r14
lea rax, [rsi + 0x180]
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x28], rax
mov edx, dword [rcx]
test edx, edx
je 0x51c7c0
cmp edx, 0xffffffff
je 0x51c734
lock sub dword [rcx], 1
je 0x51c7b2
lea rcx, [rbp + 0x10]
mov rdx, rdi
call fcn.005ba200
mov rcx, rbp
call qword [0x0075cea4]
mov edx, 0x48
mov rcx, rbp
call fcn.005ab728
lea rbp, [r15 + 8]
cmp rbx, rbp
jne 0x51c65f
mov rbp, qword [rsp + 0x160]
mov rbx, qword [rbp + 0xb8]
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0xc0], rbx
mov r8, qword [rcx + 0x50]
mov r9, qword [r8 + 0x18]
sub r9, qword [r8 + 0x10]
sar r9, 3
test r9d, r9d
jne 0x51c8a0
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbp + 0x40]
nop word cs:[rax + rax]
mov r8d, 8
mov edx, reloc.WS2_32.dll_recv
call qword [0x0075cc74]
jmp 0x51c734
mov rcx, qword [r12 + 0x40]
mov r8d, 8
mov edx, reloc.WS2_32.dll_recv
call qword [0x0075cc74]
jmp 0x51c6c0
mov r15, qword [r12]
test r15, r15
je 0x51c883
mov rcx, qword [r15]
mov r8, qword [rcx + 0x20]
cmp r8, r13
jne 0x51ce83
mov rcx, qword [r15 + 0x40]
lea r9, [rsi + 0x90]
mov qword [r15], r14
lea r10, [rsi + 0x180]
mov qword [r15 + 0x10], r9
mov qword [r15 + 0x28], r10
mov r11d, dword [rcx]
test r11d, r11d
je 0x51c850
cmp r11d, 0xffffffff
je 0x51c861
lock sub dword [rcx], 1
jne 0x51c861
mov rcx, qword [r15 + 0x40]
nop
mov r8d, 8
mov edx, reloc.WS2_32.dll_recv
call qword [0x0075cc74]
lea rcx, [r15 + 0x10]
mov rdx, rdi
call fcn.005ba200
mov rcx, r15
call qword [0x0075cea4]
mov edx, 0x48
mov rcx, r15
call fcn.005ab728
lea r15, [r12 + 8]
cmp rbx, r15
jne 0x51c654
jmp 0x51c76b
lea r12, [rsp + 0xc0]
mov rbx, qword [0x0075d33c]
mov edx, 0x1e
mov r9d, 0x96
mov rcx, r12
mov qword [rsp + 0x60], r12
mov r8d, gethostbyname
mov dword [rsp + 0x20], 0xff
call rbx
lea rcx, [r12 + 0x10]
mov r9d, 0xb4
mov r8d, 0x50
mov edx, 0x78
mov dword [rsp + 0x20], 0xff
call rbx
lea rcx, [r12 + 0x20]
xor r9d, r9d
mov r8d, 0x64
mov edx, 0xc8
mov dword [rsp + 0x20], 0xff
call rbx
lea rcx, [r12 + 0x30]
mov r9d, 0x1e
mov r8d, 0x78
mov edx, 0x1e
mov dword [rsp + 0x20], 0xff
call rbx
mov ecx, 0x40
call fcn.005ab718
mov r10d, dword [rsp + 0xc0]
mov rbx, qword [rbp + 0x30]
mov r14, rax
mov r11, qword [rsp + 0xc4]
movzx edi, word [rsp + 0xdc]
mov dword [rax], r10d
mov edx, dword [rsp + 0xd0]
mov r10, qword [rbx + 0x50]
mov qword [rax + 4], r11
movzx eax, word [rsp + 0xcc]
mov word [r14 + 0x1c], di
mov rsi, qword [rsp + 0xd4]
mov r13d, dword [rsp + 0xe0]
mov dword [r14 + 0x10], edx
mov r11, qword [r10 + 0x238]
mov qword [rsp + 0x68], r10
mov rdi, qword [r10 + 0x230]
mov word [r14 + 0xc], ax
movabs rax, 0x6f96f96f96f96f97
mov r15, qword [rsp + 0xe4]
mov qword [r14 + 0x14], rsi
movzx ecx, word [rsp + 0xec]
mov dword [r14 + 0x20], r13d
mov qword [rsp + 0x50], r11
mov r8d, dword [rsp + 0xf0]
sub r11, rdi
mov r9, qword [rsp + 0xf4]
sar r11, 3
mov qword [r14 + 0x24], r15
movzx r12d, word [rsp + 0xfc]
imul r11, rax
mov word [r14 + 0x2c], cx
mov dword [r14 + 0x30], r8d
mov qword [r14 + 0x34], r9
mov word [r14 + 0x3c], r12w
test r11, r11
mov qword [rsp + 0x58], r11
je 0x51cd0b
movsd xmm6, qword [0x006eb718]
lea r15, [rsp + 0x70]
xor r13d, r13d
xor esi, esi
imul rdx, rsi, 0x138
add rdi, rdx
mov r10, qword [rdi + 0x98]
mov r9, qword [rdi + 0x90]
mov r8, r10
sub r8, r9
sar r8, 2
test r8, r8
je 0x51ca78
mov r11d, dword [r9]
test r11d, r11d
jne 0x51ce70
xor ebx, ebx
jmp 0x51ca6d
mov r11d, dword [r9 + rcx*4]
test r11d, r11d
jne 0x51cd70
lea ecx, [rbx + 1]
cmp rcx, r8
mov rbx, rcx
jb 0x51ca60
mov rdi, qword [0x0075cc7c]
mov qword [rsp + 0x70], rdi
and esi, 3
add r13d, 1
mov r8d, 0xa
lea rdi, [rsp + 0x80]
shl rsi, 4
mov edx, r13d
add rsi, r14
mov rcx, rdi
mov rbx, qword [rsi + 4]
mov r12d, dword [rsi]
movzx esi, word [rsi + 0xc]
mov qword [rsp + 0x94], rbx
mov word [rsp + 0x9c], si
call qword [0x0075cee4]
lea rbx, [rsp + 0x88]
mov r8d, 3
lea rdx, [0x006eb6d7]
mov rcx, rbx
call qword [0x0075ceb4]
mov rdx, rdi
mov rcx, rbx
call qword [0x0075cecc]
movzx ecx, word [rsp + 0x9c]
mov dword [rsp + 0xa0], r12d
mov r11, qword [rsp + 0x94]
mov word [rsp + 0xac], cx
mov ecx, 0x48
mov qword [rsp + 0xa4], r11
call fcn.005ab718
mov r8, qword [0x006eb700]
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
lea rsi, [rsp + 0xa0]
mov r12, rax
mov qword [rsp + 0x20], r8
mov r8, rsi
call fcn.00543340
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x78], r12
mov edi, dword [rcx]
test edi, edi
je 0x51cd50
cmp edi, 0xffffffff
je 0x51cb79
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x88]
je 0x51cd50
mov rcx, qword [rsp + 0x80]
mov r9d, dword [rcx]
test r9d, r9d
je 0x51cd35
cmp r9d, 0xffffffff
je 0x51cba5
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x80]
je 0x51cd35
mov r10, qword [rsp + 0x78]
mov rdx, qword [rbp + 0xb0]
lea rcx, [r10 + 0x10]
call fcn.005ba1b8
mov rdx, qword [0x0071c560]
mov ecx, 0x20
mov qword [rsp + 0xb8], 0
mov rax, qword [fcn.00543500]
mov qword [rsp + 0xc8], 0
mov r12, qword [rsp + 0x78]
mov rbx, qword [rbp + 0xb0]
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xc0], rax
call fcn.005ab718
mov r9, qword [rsp + 0x60]
mov dword [rax], 1
mov rdx, rbx
mov rcx, qword [rsp + 0xc0]
lea r11, [0x0065c820]
mov r8, qword [rsp + 0xc8]
mov qword [rax + 8], r11
mov rdi, qword [0x0071c570]
mov qword [rax + 0x10], rcx
mov rcx, rsi
mov qword [rax + 0x18], r8
lea r8, [rsp + 0xb0]
mov qword [rsp + 0x20], r9
mov r9, r12
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [0x0075ce24]
mov rcx, rsi
call qword [0x0075ccb4]
mov rcx, qword [rsp + 0x78]
mov rdx, r15
call fcn.00542f20
mov rdx, qword [rbp + 0xc0]
cmp rdx, qword [rbp + 0xc8]
je 0x51ce30
mov rsi, qword [rsp + 0x78]
add rdx, 8
mov qword [rdx - 8], rsi
mov qword [rbp + 0xc0], rdx
mov rcx, qword [rsp + 0x70]
mov r10d, dword [rcx]
test r10d, r10d
je 0x51ccf0
cmp r10d, 0xffffffff
je 0x51ccce
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x70]
je 0x51ccf0
mov esi, r13d
cmp rsi, qword [rsp + 0x58]
jae 0x51cd0b
mov r12, qword [rsp + 0x68]
mov rdi, qword [r12 + 0x230]
jmp 0x51ca24
mov r8d, 8
mov edx, reloc.WS2_32.dll_recv
mov esi, r13d
call qword [0x0075cc74]
cmp rsi, qword [rsp + 0x58]
jb 0x51ccd8
mov rcx, qword [rbp + 0xb0]
call fcn.0053e640
mov rcx, qword [rbp + 0xb0]
mov r15, qword [rcx]
call qword [r15 + 0x1d8]
mov rcx, r14
call fcn.005ab730
jmp 0x51c796
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51cba5
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51cb79
mov r12, qword [0x0075cc7c]
mov qword [rsp + 0x70], r12
lea rdx, [rsp + 0xa0]
xor ecx, ecx
xor r8d, r8d
mov r12d, 0x51eb851f
mov qword [rsp + 0x50], rdx
jmp 0x51cdbd
lea edx, [rbx + 1]
mov rax, r10
sub rax, r9
mov rbx, rdx
sar rax, 2
cmp rdx, rax
jae 0x51ca84
mov r11d, dword [r9 + rdx*4]
add r8d, 1
add ecx, r11d
mov eax, r8d
mul r12d
shr edx, 5
imul r11d, edx, 0x64
cmp r8d, r11d
jne 0x51cda0
pxor xmm1, xmm1
cvtsi2sd xmm1, rcx
mov r9d, ebx
pxor xmm0, xmm0
cvtsi2sd xmm0, r9
mov rdx, qword [rsp + 0x50]
mov rcx, r15
divsd xmm1, xmm6
movsd qword [rsp + 0xa0], xmm0
movsd qword [rsp + 0xa8], xmm1
call fcn.0065a810
xor ecx, ecx
xor r8d, r8d
mov r9, qword [rdi + 0x90]
mov r10, qword [rdi + 0x98]
jmp 0x51cda0
lea rcx, [rbp + 0xb8]
lea r8, [rsp + 0x78]
call fcn.006a98f0
jmp 0x51ccb0
mov rcx, rbp
call r11
jmp 0x51c756
mov rcx, r12
call rdx
jmp 0x51c6e3
mov rax, qword [0x0075cc7c]
xor ebx, ebx
mov qword [rsp + 0x70], rax
jmp 0x51cd7c
mov rcx, r15
call r8
jmp 0x51c883