Function at 0x51cee0
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 + 0x78]
mov rbx, qword [rcx + 0x80]
mov rdi, rcx
cmp r12, rbx
je 0x51d04d
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 0x51d0d0
mov qword [rsp + 0x1a0], rdi
mov rdi, r15
mov r12, qword [rdi]
test r12, r12
je 0x51cfc3
mov rax, qword [r12]
mov rdx, qword [rax + 0x20]
cmp rdx, r13
jne 0x51dde0
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 0x51d0b5
cmp r9d, 0xffffffff
je 0x51cfa0
lock sub dword [rcx], 1
je 0x51d0b0
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 0x51d034
mov r10, qword [rdi]
mov r11, qword [r10 + 0x20]
cmp r11, r13
jne 0x51ddd0
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 0x51d090
cmp edx, 0xffffffff
je 0x51d012
lock sub dword [rcx], 1
je 0x51d085
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 0x51cf44
mov rdi, qword [rsp + 0x1a0]
mov rbx, qword [rdi + 0x78]
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x80], rbx
mov r8, qword [rcx + 0x50]
mov r9, qword [r8 + 0x18]
sub r9, qword [r8 + 0x10]
sar r9, 3
test r9d, r9d
jne 0x51d170
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 dword [rax]
mov r8d, 8
mov edx, reloc.WS2_32.dll_recv
call qword [0x0075cc74]
jmp 0x51d012
mov rcx, qword [r12 + 0x40]
mov r8d, 8
mov edx, reloc.WS2_32.dll_recv
call qword [0x0075cc74]
jmp 0x51cfa0
mov r15, qword [r12]
test r15, r15
je 0x51d153
mov rcx, qword [r15]
mov r8, qword [rcx + 0x20]
cmp r8, r13
jne 0x51ddf0
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 0x51d120
cmp r11d, 0xffffffff
je 0x51d131
lock sub dword [rcx], 1
jne 0x51d131
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 0x51cf39
jmp 0x51d049
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 0x51dda1
mov dword [rsp + 0x58], 0
lea r15, [rsp + 0xd8]
mov r12, qword [0x0075ceb4]
mov qword [rsp + 0x60], 0
mov rsi, qword [0x0075cecc]
jmp 0x51da0c
cmp r8d, 0xffffffff
je 0x51d338
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51dab5
mov rcx, qword [rsp + 0xe0]
mov r9d, dword [rcx]
test r9d, r9d
je 0x51dada
cmp r9d, 0xffffffff
je 0x51d364
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xe0]
je 0x51dada
mov rcx, qword [rsp + 0xd8]
mov r10d, dword [rcx]
test r10d, r10d
je 0x51daff
cmp r10d, 0xffffffff
je 0x51d390
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51daff
pxor xmm1, xmm1
mov r11, qword [0x0075ced4]
lea r13, [rsp + 0xd0]
mov r9d, 1
mov r8d, 0x66
cvtss2sd xmm1, dword [r14 + 0x58]
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 0x51dd50
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 0x51dcf0
cmp r9d, 0xffffffff
je 0x51d458
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51dcf0
mov r10, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], r10
mov r11d, dword [r10]
add r11d, 1
cmp r11d, 1
ja 0x51dd40
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 0x51dd70
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 0x51dcd0
cmp r8d, 0xffffffff
je 0x51d4e6
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51dcd0
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call rsi
mov rcx, qword [rsp + 0xe0]
mov r9d, dword [rcx]
test r9d, r9d
je 0x51dcb0
cmp r9d, 0xffffffff
je 0x51d51c
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xe0]
je 0x51dcb0
mov rcx, qword [rsp + 0xd8]
mov r10d, dword [rcx]
test r10d, r10d
je 0x51dc90
cmp r10d, 0xffffffff
je 0x51d548
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51dc90
mov rcx, qword [rsp + 0xc8]
mov r11d, dword [rcx]
test r11d, r11d
je 0x51dc70
cmp r11d, 0xffffffff
je 0x51d574
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc8]
je 0x51dc70
mov rcx, qword [rsp + 0xc0]
mov edx, dword [rcx]
test edx, edx
je 0x51dc50
cmp edx, 0xffffffff
je 0x51d59d
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc0]
je 0x51dc50
mov rcx, qword [rsp + 0xd0]
mov eax, dword [rcx]
test eax, eax
je 0x51dc30
cmp eax, 0xffffffff
je 0x51d5c6
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd0]
je 0x51dc30
pxor xmm1, xmm1
mov r9d, 1
mov rcx, r13
mov r8d, 0x66
cvtss2sd xmm1, dword [r14 + 0x60]
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 0x51dd60
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 0x51dc10
cmp r11d, 0xffffffff
je 0x51d669
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51dc10
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], rdx
mov eax, dword [rdx]
add eax, 1
cmp eax, 1
ja 0x51dd30
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 0x51dd20
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 0x51dbf0
cmp r9d, 0xffffffff
je 0x51d6f7
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xf0]
je 0x51dbf0
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call rsi
mov rcx, qword [rsp + 0xe0]
mov ebp, dword [rcx]
test ebp, ebp
je 0x51dbd0
cmp ebp, 0xffffffff
je 0x51d72a
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xe0]
je 0x51dbd0
mov rcx, qword [rsp + 0xd8]
mov r11d, dword [rcx]
test r11d, r11d
je 0x51dbb0
cmp r11d, 0xffffffff
je 0x51d756
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51dbb0
mov rcx, qword [rsp + 0xc8]
mov edx, dword [rcx]
test edx, edx
je 0x51db90
cmp edx, 0xffffffff
je 0x51d77f
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc8]
je 0x51db90
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rcx]
test eax, eax
je 0x51db70
cmp eax, 0xffffffff
je 0x51d7a8
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xc0]
je 0x51db70
mov rcx, qword [rsp + 0xd0]
mov r10d, dword [rcx]
test r10d, r10d
je 0x51db50
cmp r10d, 0xffffffff
je 0x51d7d4
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd0]
je 0x51db50
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 0x51dd10
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 0x51db30
cmp r8d, 0xffffffff
je 0x51d8a4
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xd8]
je 0x51db30
mov rcx, qword [rsp + 0xd0]
lea rdx, [r14 + 0x68]
call fcn.005411b0
mov r14, qword [rsp + 0xd0]
mov rdx, qword [rdi + 0x70]
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 + 0x70]
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 + 0x80]
cmp rdx, qword [rdi + 0x88]
je 0x51dd90
mov rbx, qword [rsp + 0xd0]
add rdx, 8
mov qword [rdx - 8], rbx
mov qword [rdi + 0x80], rdx
mov rcx, qword [rsp + 0xb8]
mov r13d, dword [rcx]
test r13d, r13d
je 0x51db15
cmp r13d, 0xffffffff
je 0x51d9e5
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xb8]
je 0x51db15
mov r14d, dword [rsp + 0x58]
cmp r14, qword [rsp + 0x98]
mov qword [rsp + 0x60], r14
jae 0x51dda1
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 0x51dd80
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 0x51d320
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
mov rcx, qword [rsp + 0xe0]
mov r9d, dword [rcx]
test r9d, r9d
jne 0x51d34c
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
mov rcx, qword [rsp + 0xd8]
mov r10d, dword [rcx]
test r10d, r10d
jne 0x51d378
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d390
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d9e5
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d8a4
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d7d4
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d7a8
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d77f
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d756
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d72a
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d6f7
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d669
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d5c6
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d59d
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d574
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d548
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d51c
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d4e6
mov r8d, 8
mov edx, 2
call qword [0x0075cc74]
jmp 0x51d458
lock add dword [r11], 1
jmp 0x51d824
lock add dword [r10], 1
jmp 0x51d6b0
lock add dword [rdx], 1
jmp 0x51d687
lock add dword [r10], 1
jmp 0x51d479
lock add dword [rdx], 1
jmp 0x51d407
lock add dword [rcx], 1
jmp 0x51d620
lock add dword [rdx], 1
jmp 0x51d49f
lock add dword [r13], 1
jmp 0x51da74
lea rcx, [rdi + 0x78]
mov r8, r13
call fcn.006aa7c0
jmp 0x51d9b9
mov rcx, qword [rdi + 0x70]
call fcn.0053e640
mov rcx, qword [rdi + 0x70]
mov rdi, qword [rcx]
call qword [rdi + 0x1d8]
mov rcx, qword [rsp + 0x90]
call fcn.005ab730
jmp 0x51d071
mov rcx, rdi
call r11
jmp 0x51d034
mov rcx, r12
call rdx
jmp 0x51cfc3
mov rcx, r15
call r8
jmp 0x51d153