Function at 0x51df20
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, 0x158
mov r12, qword [rcx + 0x98]
mov rbx, qword [rcx + 0xa0]
mov rdi, rcx
cmp r12, rbx
je 0x51e090
mov rsi, qword [0x0071cbb0]
lea r13, [0x005c31e0]
mov rdx, rbx
mov r15, r12
mov rax, qword [0x0071c9c0]
sub rdx, r12
and edx, 8
lea r14, [rsi + 0x18]
lea rbp, [rax + 8]
jne 0x51e110
mov qword [rsp + 0x1a0], rdi
mov rdi, r15
mov r12, qword [rdi]
test r12, r12
je 0x51e003
mov rax, qword [r12]
mov rdx, qword [rax + 0x20]
cmp rdx, r13
jne 0x51ee30
lea rcx, [rsi + 0x90]
mov qword [r12], r14
mov qword [r12 + 0x10], rcx
mov rcx, qword [r12 + 0x40]
lea r8, [rsi + 0x158]
mov qword [r12 + 0x28], r8
mov r9d, dword [rcx]
test r9d, r9d
je 0x51e0f5
cmp r9d, 0xffffffff
je 0x51dfe0
lock sub dword [rcx], 1
je 0x51e0f0
nop dword [rax]
lea rcx, [r12 + 0x10]
mov rdx, rbp
call fcn.005ba2c8
mov rcx, r12
call qword [0x0075cea4]
mov edx, 0x48
mov rcx, r12
call fcn.005ab728
lea r15, [rdi + 8]
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x51e074
mov r10, qword [rdi]
mov r11, qword [r10 + 0x20]
cmp r11, r13
jne 0x51ee22
mov rcx, qword [rdi + 0x40]
lea r12, [rsi + 0x90]
mov qword [rdi], r14
lea rax, [rsi + 0x158]
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x28], rax
mov edx, dword [rcx]
test edx, edx
je 0x51e0d4
cmp edx, 0xffffffff
je 0x51e052
lock sub dword [rcx], 1
je 0x51e0d0
lea rcx, [rdi + 0x10]
mov rdx, rbp
call fcn.005ba2c8
mov rcx, rdi
call qword [0x0075cea4]
mov edx, 0x48
mov rcx, rdi
call fcn.005ab728
lea rdi, [r15 + 8]
cmp rdi, rbx
jne 0x51df87
mov rdi, qword [rsp + 0x1a0]
mov rbx, qword [rdi + 0x98]
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0xa0], rbx
mov r8, qword [rcx + 0x50]
mov r9, qword [r8 + 0x18]
sub r9, qword [r8 + 0x10]
sar r9, 3
test r9d, r9d
jne 0x51e1b0
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rdi + 0x40]
mov r8d, 8
mov edx, reloc.WS2_32.dll_recv
call qword [0x0075cc74]
jmp 0x51e052
mov rcx, qword [r12 + 0x40]
mov r8d, 8
mov edx, reloc.WS2_32.dll_recv
call qword [0x0075cc74]
jmp 0x51dfe0
mov r15, qword [r12]
test r15, r15
je 0x51e193
mov rcx, qword [r15]
mov r8, qword [rcx + 0x20]
cmp r8, r13
jne 0x51ee40
mov rcx, qword [r15 + 0x40]
lea r9, [rsi + 0x90]
mov qword [r15], r14
lea r10, [rsi + 0x158]
mov qword [r15 + 0x10], r9
mov qword [r15 + 0x28], r10
mov r11d, dword [rcx]
test r11d, r11d
je 0x51e160
cmp r11d, 0xffffffff
je 0x51e171
lock sub dword [rcx], 1
jne 0x51e171
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, rbp
call fcn.005ba2c8
mov rcx, r15
call qword [0x0075cea4]
mov edx, 0x48
mov rcx, r15
call fcn.005ab728
lea r15, [r12 + 8]
cmp r15, rbx
jne 0x51df7c
jmp 0x51e089
lea r12, [rsp + 0x110]
mov rbx, qword [0x0075d33c]
mov edx, 0xff
mov r9d, gethostname
mov rcx, r12
mov qword [rsp + 0xa0], r12
mov r8d, 0x18
mov dword [rsp + 0x20], 0xff
call rbx
lea rcx, [r12 + 0x10]
xor r9d, r9d
mov r8d, pe_nt_image_headers64
mov edx, 0xff
mov dword [rsp + 0x20], 0xff
call rbx
lea rcx, [r12 + 0x20]
mov r9d, 0xc8
mov r8d, gethostbyname
mov edx, 0x64
mov dword [rsp + 0x20], 0xff
call rbx
xor r9d, r9d
mov r8d, 0xc8
mov edx, 0xc8
lea rcx, [r12 + 0x30]
mov dword [rsp + 0x20], 0xff
call rbx
mov ecx, 0x40
call fcn.005ab718
mov r11d, dword [rsp + 0x110]
mov r10, rax
movzx ecx, word [rsp + 0x13c]
mov qword [rsp + 0x90], rax
movzx edx, word [rsp + 0x11c]
mov esi, dword [rsp + 0x120]
mov dword [rax], r11d
mov rbp, qword [rsp + 0x124]
mov rax, qword [rsp + 0x114]
mov word [r10 + 0x2c], cx
movzx r13d, word [rsp + 0x12c]
mov word [r10 + 0xc], dx
mov r14d, dword [rsp + 0x130]
mov dword [r10 + 0x10], esi
mov r15, qword [rsp + 0x134]
mov qword [r10 + 0x14], rbp
mov r8d, dword [rsp + 0x140]
mov qword [r10 + 4], rax
movabs rax, 0x6f96f96f96f96f97
mov r9, qword [rsp + 0x144]
mov word [r10 + 0x1c], r13w
movzx r12d, word [rsp + 0x14c]
mov dword [r10 + 0x20], r14d
mov rbx, qword [rdi + 0x30]
mov qword [r10 + 0x24], r15
mov dword [r10 + 0x30], r8d
mov qword [r10 + 0x34], r9
mov word [r10 + 0x3c], r12w
mov r10, qword [rbx + 0x50]
mov r11, qword [r10 + 0x238]
mov qword [rsp + 0xa8], r10
mov rcx, qword [r10 + 0x230]
mov qword [rsp + 0x58], r11
sub r11, rcx
sar r11, 3
imul r11, rax
test r11, r11
mov qword [rsp + 0x98], r11
je 0x51edf4
mov dword [rsp + 0x58], 0
lea r15, [rsp + 0xd8]
mov r12, qword [0x0075ceb4]
mov qword [rsp + 0x60], 0
mov rsi, qword [0x0075cecc]
jmp 0x51ea58
cmp r8d, 0xffffffff
je 0x51e378
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51eb01
mov rcx, qword [rsp + 0xe0]
mov r9d, dword [rcx]
test r9d, r9d
je 0x51eb26
cmp r9d, 0xffffffff
je 0x51e3a4
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xe0]
je 0x51eb26
mov rcx, qword [rsp + 0xd8]
mov r10d, dword [rcx]
test r10d, r10d
je 0x51eb4b
cmp r10d, 0xffffffff
je 0x51e3d0
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51eb4b
pxor xmm1, xmm1
mov r11, qword [0x0075ced4]
lea r13, [rsp + 0xd0]
mov r9d, 1
mov r8d, 0x66
cvtss2sd xmm1, dword [r14 + 0x78]
mov rcx, r13
mov qword [rsp + 0x80], r11
call r11
mov rax, qword [0x0075cefc]
lea rcx, [rsp + 0xc0]
mov edx, 0x3bc
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x88], rax
call rax
mov rdx, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rdx
mov r8d, dword [rdx]
add r8d, 1
cmp r8d, 1
ja 0x51eda0
lea rdx, [0x006eb6df]
mov r8d, 3
mov rcx, rbx
call r12
lea rcx, [rsp + 0xc8]
mov rdx, rbx
mov qword [rsp + 0x70], rcx
call rsi
mov rcx, qword [rsp + 0xf0]
mov r9d, dword [rcx]
test r9d, r9d
je 0x51ed40
cmp r9d, 0xffffffff
je 0x51e498
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51ed40
mov r10, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], r10
mov r11d, dword [r10]
add r11d, 1
cmp r11d, 1
ja 0x51ed90
mov rdx, r13
mov rcx, r15
call rsi
mov rdx, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rdx
mov eax, dword [rdx]
add eax, 1
cmp eax, 1
ja 0x51edc0
lea rdx, [0x006eb6e3]
mov r8d, 3
mov rcx, rbx
call r12
mov rdx, rbx
mov rcx, rbp
call rsi
mov rcx, qword [rsp + 0xf0]
mov r8d, dword [rcx]
test r8d, r8d
je 0x51ed20
cmp r8d, 0xffffffff
je 0x51e526
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51ed20
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call rsi
mov rcx, qword [rsp + 0xe0]
mov r9d, dword [rcx]
test r9d, r9d
je 0x51ed00
cmp r9d, 0xffffffff
je 0x51e55c
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xe0]
je 0x51ed00
mov rcx, qword [rsp + 0xd8]
mov r10d, dword [rcx]
test r10d, r10d
je 0x51ece0
cmp r10d, 0xffffffff
je 0x51e588
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51ece0
mov rcx, qword [rsp + 0xc8]
mov r11d, dword [rcx]
test r11d, r11d
je 0x51ecc0
cmp r11d, 0xffffffff
je 0x51e5b4
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc8]
je 0x51ecc0
mov rcx, qword [rsp + 0xc0]
mov edx, dword [rcx]
test edx, edx
je 0x51eca0
cmp edx, 0xffffffff
je 0x51e5dd
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc0]
je 0x51eca0
mov rcx, qword [rsp + 0xd0]
mov eax, dword [rcx]
test eax, eax
je 0x51ec80
cmp eax, 0xffffffff
je 0x51e606
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd0]
je 0x51ec80
pxor xmm1, xmm1
mov r9d, 1
mov rcx, r13
mov r8d, 0x66
cvtss2sd xmm1, dword [r14 + 0x80]
mov r10, qword [rsp + 0x80]
call r10
mov edx, 0x3c3
mov rcx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x88]
call r8
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rcx
mov r9d, dword [rcx]
add r9d, 1
cmp r9d, 1
ja 0x51edb0
lea rdx, [0x006eb6df]
mov r8d, 3
mov rcx, rbx
call r12
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call rsi
mov rcx, qword [rsp + 0xf0]
mov r11d, dword [rcx]
test r11d, r11d
je 0x51ec60
cmp r11d, 0xffffffff
je 0x51e6ac
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51ec60
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], rdx
mov eax, dword [rdx]
add eax, 1
cmp eax, 1
ja 0x51ed80
mov rdx, r13
mov rcx, r15
call rsi
mov r10, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], r10
mov r8d, dword [r10]
add r8d, 1
cmp r8d, 1
ja 0x51ed70
lea rdx, [0x006eb6e7]
mov r8d, 2
mov rcx, rbx
call r12
mov rdx, rbx
mov rcx, rbp
call rsi
mov rcx, qword [rsp + 0xf0]
mov r9d, dword [rcx]
test r9d, r9d
je 0x51ec40
cmp r9d, 0xffffffff
je 0x51e73a
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51ec40
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call rsi
mov rcx, qword [rsp + 0xe0]
mov ebp, dword [rcx]
test ebp, ebp
je 0x51ec20
cmp ebp, 0xffffffff
je 0x51e76d
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xe0]
je 0x51ec20
mov rcx, qword [rsp + 0xd8]
mov r11d, dword [rcx]
test r11d, r11d
je 0x51ec00
cmp r11d, 0xffffffff
je 0x51e799
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51ec00
mov rcx, qword [rsp + 0xc8]
mov edx, dword [rcx]
test edx, edx
je 0x51ebe0
cmp edx, 0xffffffff
je 0x51e7c2
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc8]
je 0x51ebe0
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rcx]
test eax, eax
je 0x51ebc0
cmp eax, 0xffffffff
je 0x51e7eb
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc0]
je 0x51ebc0
mov rcx, qword [rsp + 0xd0]
mov r10d, dword [rcx]
test r10d, r10d
je 0x51eba0
cmp r10d, 0xffffffff
je 0x51e817
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd0]
je 0x51eba0
mov r8, qword [rsp + 0x60]
mov r11, qword [rsp + 0xb8]
and r8d, 3
shl r8, 4
add r8, qword [rsp + 0x90]
mov qword [rsp + 0xd8], r11
mov r9, qword [r8 + 4]
movzx ebp, word [r8 + 0xc]
mov ecx, dword [r8]
mov qword [rsp + 0xe4], r9
mov word [rsp + 0xec], bp
mov edx, dword [r11]
add edx, 1
cmp edx, 1
ja 0x51ed60
mov rax, qword [rsp + 0xe4]
mov dword [rsp + 0xf0], ecx
mov ecx, 0x48
movzx r10d, word [rsp + 0xec]
mov qword [rsp + 0xf4], rax
mov word [rsp + 0xfc], r10w
call fcn.005ab718
movsd xmm3, qword [0x006eb700]
mov r8, rbx
mov rdx, r15
mov rcx, rax
mov rbp, rax
call fcn.00541750
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0xd0], rbp
mov r8d, dword [rcx]
test r8d, r8d
je 0x51eb80
cmp r8d, 0xffffffff
je 0x51e8e7
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51eb80
mov rcx, qword [rsp + 0xd0]
lea rdx, [r14 + 0x88]
call fcn.005411b0
mov r14, qword [rsp + 0xd0]
mov rdx, qword [rdi + 0x90]
lea rcx, [r14 + 0x10]
call fcn.005ba1b8
mov rcx, qword [0x0071c560]
mov qword [rsp + 0x108], 0
mov r9, qword [fcn.00541900]
mov qword [rsp + 0x118], 0
mov r14, qword [rsp + 0xd0]
mov rbp, qword [rdi + 0x90]
mov qword [rsp + 0x100], rcx
mov ecx, 0x20
mov qword [rsp + 0x110], r9
call fcn.005ab718
mov rdx, qword [rsp + 0x110]
lea r11, [0x0065d340]
mov r9, r14
mov rcx, rbx
mov r10, qword [rsp + 0x118]
mov dword [rax], 1
mov qword [rax + 8], r11
mov r8, qword [0x0071c570]
mov qword [rax + 0x10], rdx
mov rdx, rbp
mov qword [rax + 0x18], r10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], r8
lea r8, [rsp + 0x100]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [0x0075ce24]
mov rcx, rbx
call qword [0x0075ccb4]
mov rdx, qword [rdi + 0xa0]
cmp rdx, qword [rdi + 0xa8]
je 0x51ede0
mov rbx, qword [rsp + 0xd0]
add rdx, 8
mov qword [rdx - 8], rbx
mov qword [rdi + 0xa0], rdx
mov rcx, qword [rsp + 0xb8]
mov r13d, dword [rcx]
test r13d, r13d
je 0x51eb61
cmp r13d, 0xffffffff
je 0x51ea31
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xb8]
je 0x51eb61
mov r14d, dword [rsp + 0x58]
cmp r14, qword [rsp + 0x98]
mov qword [rsp + 0x60], r14
jae 0x51edf4
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rbp + 0x230]
imul rbp, qword [rsp + 0x60], 0x138
mov r8d, 0xa
add dword [rsp + 0x58], 1
mov edx, dword [rsp + 0x58]
lea r14, [rcx + rbp]
mov rcx, r15
call qword [0x0075cee4]
lea rbp, [rsp + 0xe0]
mov r8d, 3
lea rdx, [0x006eb6d7]
mov rcx, rbp
call r12
mov rdx, r15
mov rcx, rbp
call rsi
mov r13, qword [rsp + 0xe0]
mov qword [rsp + 0xb8], r13
mov ecx, dword [r13]
add ecx, 1
cmp ecx, 1
ja 0x51edd0
lea rbx, [rsp + 0xf0]
mov r8d, 3
lea rdx, [0x006eb6db]
mov rcx, rbx
call r12
lea rcx, [rsp + 0xb8]
mov rdx, rbx
mov qword [rsp + 0x68], rcx
call rsi
mov rcx, qword [rsp + 0xf0]
mov r8d, dword [rcx]
test r8d, r8d
jne 0x51e360
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
mov rcx, qword [rsp + 0xe0]
mov r9d, dword [rcx]
test r9d, r9d
jne 0x51e38c
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
mov rcx, qword [rsp + 0xd8]
mov r10d, dword [rcx]
test r10d, r10d
jne 0x51e3b8
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e3d0
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51ea31
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e8e7
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e817
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e7eb
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e7c2
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e799
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e76d
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e73a
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e6ac
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e606
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e5dd
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e5b4
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e588
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e55c
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e526
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51e498
lock add dword [r11], 1
jmp 0x51e867
lock add dword [r10], 1
jmp 0x51e6f3
lock add dword [rdx], 1
jmp 0x51e6ca
lock add dword [r10], 1
jmp 0x51e4b9
lock add dword [rdx], 1
jmp 0x51e447
lock add dword [rcx], 1
jmp 0x51e663
lock add dword [rdx], 1
jmp 0x51e4df
lock add dword [r13], 1
jmp 0x51eac0
lea rcx, [rdi + 0x98]
mov r8, r13
call fcn.006aa7c0
jmp 0x51ea05
mov rcx, qword [rdi + 0x90]
call fcn.0053e640
mov rcx, qword [rdi + 0x90]
mov rdi, qword [rcx]
call qword [rdi + 0x1d8]
mov rcx, qword [rsp + 0x90]
call fcn.005ab730
jmp 0x51e0b4
mov rcx, rdi
call r11
jmp 0x51e074
mov rcx, r12
call rdx
jmp 0x51e003
mov rcx, r15
call r8
jmp 0x51e193