Function at 0x51ef70
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 + 0x58]
mov rbx, qword [rcx + 0x60]
mov rdi, rcx
cmp r12, rbx
je 0x51f0dd
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 0x51f160
mov qword [rsp + 0x1a0], rdi
mov rdi, r15
mov r12, qword [rdi]
test r12, r12
je 0x51f053
mov rax, qword [r12]
mov rdx, qword [rax + 0x20]
cmp rdx, r13
jne 0x51fe70
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 0x51f145
cmp r9d, 0xffffffff
je 0x51f030
lock sub dword [rcx], 1
je 0x51f140
nop word [rax + 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 0x51f0c4
mov r10, qword [rdi]
mov r11, qword [r10 + 0x20]
cmp r11, r13
jne 0x51fe60
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 0x51f120
cmp edx, 0xffffffff
je 0x51f0a2
lock sub dword [rcx], 1
je 0x51f112
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 0x51efd1
mov rdi, qword [rsp + 0x1a0]
mov rbx, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x60], rbx
mov r8, qword [rcx + 0x50]
mov r9, qword [r8 + 0x18]
sub r9, qword [r8 + 0x10]
sar r9, 3
test r9d, r9d
jne 0x51f200
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]
nop word cs:[rax + rax]
mov r8d, 8
mov edx, reloc.WS2_32.dll_recv
call qword [0x0075cc74]
jmp 0x51f0a2
mov rcx, qword [r12 + 0x40]
mov r8d, 8
mov edx, reloc.WS2_32.dll_recv
call qword [0x0075cc74]
jmp 0x51f030
mov r15, qword [r12]
test r15, r15
je 0x51f1e3
mov rcx, qword [r15]
mov r8, qword [rcx + 0x20]
cmp r8, r13
jne 0x51fe80
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 0x51f1b0
cmp r11d, 0xffffffff
je 0x51f1c1
lock sub dword [rcx], 1
jne 0x51f1c1
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 0x51efc6
jmp 0x51f0d9
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 0x51fe31
mov dword [rsp + 0x58], 0
lea r15, [rsp + 0xd8]
mov r12, qword [0x0075ceb4]
mov qword [rsp + 0x60], 0
mov rsi, qword [0x0075cecc]
jmp 0x51fa93
cmp r8d, 0xffffffff
je 0x51f3c8
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51fb3c
mov rcx, qword [rsp + 0xe0]
mov r9d, dword [rcx]
test r9d, r9d
je 0x51fb61
cmp r9d, 0xffffffff
je 0x51f3f4
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xe0]
je 0x51fb61
mov rcx, qword [rsp + 0xd8]
mov r10d, dword [rcx]
test r10d, r10d
je 0x51fb86
cmp r10d, 0xffffffff
je 0x51f420
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51fb86
pxor xmm1, xmm1
mov r11, qword [0x0075ced4]
lea r13, [rsp + 0xd0]
mov r9d, 1
mov r8d, 0x66
cvtss2sd xmm1, dword [r14 + 0x38]
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 0x51fde0
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 0x51fd80
cmp r9d, 0xffffffff
je 0x51f4e8
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51fd80
mov r10, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], r10
mov r11d, dword [r10]
add r11d, 1
cmp r11d, 1
ja 0x51fdd0
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 0x51fe00
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 0x51fd60
cmp r8d, 0xffffffff
je 0x51f576
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51fd60
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call rsi
mov rcx, qword [rsp + 0xe0]
mov r9d, dword [rcx]
test r9d, r9d
je 0x51fd40
cmp r9d, 0xffffffff
je 0x51f5ac
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xe0]
je 0x51fd40
mov rcx, qword [rsp + 0xd8]
mov r10d, dword [rcx]
test r10d, r10d
je 0x51fd20
cmp r10d, 0xffffffff
je 0x51f5d8
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51fd20
mov rcx, qword [rsp + 0xc8]
mov r11d, dword [rcx]
test r11d, r11d
je 0x51fd00
cmp r11d, 0xffffffff
je 0x51f604
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc8]
je 0x51fd00
mov rcx, qword [rsp + 0xc0]
mov edx, dword [rcx]
test edx, edx
je 0x51fce0
cmp edx, 0xffffffff
je 0x51f62d
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc0]
je 0x51fce0
mov rcx, qword [rsp + 0xd0]
mov eax, dword [rcx]
test eax, eax
je 0x51fcc0
cmp eax, 0xffffffff
je 0x51f656
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd0]
je 0x51fcc0
pxor xmm1, xmm1
mov r9d, 1
mov rcx, r13
mov r8d, 0x66
cvtss2sd xmm1, dword [r14 + 0x40]
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 0x51fdf0
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 0x51fca0
cmp r11d, 0xffffffff
je 0x51f6f9
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51fca0
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], rdx
mov eax, dword [rdx]
add eax, 1
cmp eax, 1
ja 0x51fdc0
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 0x51fdb0
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 0x51fc80
cmp r9d, 0xffffffff
je 0x51f787
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51fc80
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call rsi
mov rcx, qword [rsp + 0xe0]
mov ebp, dword [rcx]
test ebp, ebp
je 0x51fc60
cmp ebp, 0xffffffff
je 0x51f7ba
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xe0]
je 0x51fc60
mov rcx, qword [rsp + 0xd8]
mov r11d, dword [rcx]
test r11d, r11d
je 0x51fc40
cmp r11d, 0xffffffff
je 0x51f7e6
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51fc40
mov rcx, qword [rsp + 0xc8]
mov edx, dword [rcx]
test edx, edx
je 0x51fc20
cmp edx, 0xffffffff
je 0x51f80f
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc8]
je 0x51fc20
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rcx]
test eax, eax
je 0x51fc00
cmp eax, 0xffffffff
je 0x51f838
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc0]
je 0x51fc00
mov rcx, qword [rsp + 0xd0]
mov r10d, dword [rcx]
test r10d, r10d
je 0x51fbe0
cmp r10d, 0xffffffff
je 0x51f864
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd0]
je 0x51fbe0
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 0x51fda0
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 0x51fbc0
cmp r8d, 0xffffffff
je 0x51f934
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51fbc0
mov rcx, qword [rsp + 0xd0]
lea rdx, [r14 + 0x48]
call fcn.005411b0
mov r14, qword [rsp + 0xd0]
mov rdx, qword [rdi + 0x50]
lea rcx, [r14 + 0x10]
call fcn.005ba1b8
mov rcx, qword [0x0071c560]
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x118], 0
mov rbp, qword [rdi + 0x50]
mov r9, qword [fcn.00541900]
mov r14, qword [rsp + 0xd0]
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 + 0x60]
cmp rdx, qword [rdi + 0x68]
je 0x51fe20
mov rbx, qword [rsp + 0xd0]
add rdx, 8
mov qword [rdx - 8], rbx
mov qword [rdi + 0x60], rdx
mov rcx, qword [rsp + 0xb8]
mov r13d, dword [rcx]
test r13d, r13d
je 0x51fba0
cmp r13d, 0xffffffff
je 0x51fa6c
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xb8]
je 0x51fba0
mov r14d, dword [rsp + 0x58]
cmp r14, qword [rsp + 0x98]
mov qword [rsp + 0x60], r14
jae 0x51fe31
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 0x51fe10
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 0x51f3b0
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
mov rcx, qword [rsp + 0xe0]
mov r9d, dword [rcx]
test r9d, r9d
jne 0x51f3dc
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
mov rcx, qword [rsp + 0xd8]
mov r10d, dword [rcx]
test r10d, r10d
jne 0x51f408
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f420
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51fa6c
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f934
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f864
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f838
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f80f
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f7e6
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f7ba
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f787
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f6f9
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f656
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f62d
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f604
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f5d8
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f5ac
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f576
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51f4e8
lock add dword [r11], 1
jmp 0x51f8b4
lock add dword [r10], 1
jmp 0x51f740
lock add dword [rdx], 1
jmp 0x51f717
lock add dword [r10], 1
jmp 0x51f509
lock add dword [rdx], 1
jmp 0x51f497
lock add dword [rcx], 1
jmp 0x51f6b0
lock add dword [rdx], 1
jmp 0x51f52f
lock add dword [r13], 1
jmp 0x51fafb
lea rcx, [rdi + 0x58]
mov r8, r13
call fcn.006aa7c0
jmp 0x51fa40
mov rcx, qword [rdi + 0x50]
call fcn.0053e640
mov rcx, qword [rdi + 0x50]
mov rdi, qword [rcx]
call qword [rdi + 0x1d8]
mov rcx, qword [rsp + 0x90]
call fcn.005ab730
jmp 0x51f0fe
mov rcx, rdi
call r11
jmp 0x51f0c4
mov rcx, r12
call rdx
jmp 0x51f053
mov rcx, r15
call r8
jmp 0x51f1e3