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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x980
mov qword [rsp + 0x140], 0xfffffffffffffffe
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x970], rax
mov esi, r9d
mov dword [rsp + 0x34], r9d
mov r15, r8
mov qword [rsp + 0xc0], r8
mov rdi, rdx
mov qword [rsp + 0xa8], rdx
mov r13, rcx
mov r14, qword [rsp + 0x9e0]
mov qword [rsp + 0xb0], r14
mov r12, qword [rsp + 0x9e8]
lea rcx, [0x1800d3740]
cmp qword [0x1800d3758], 8
cmovae rcx, qword [0x1800d3740]
lea rdx, str..dbf
call fcn.18002f130
test rax, rax
je 0x18004c157
mov eax, dword [0x1800d331c]
test eax, eax
je 0x18004c157
cmp eax, 1
je 0x18004c128
call fcn.180011f40
xor ebx, ebx
mov ecx, ebx
cmp eax, 2
sete cl
test ecx, ecx
je 0x18004c120
mov dword [0x1800d331c], 1
jmp 0x18004c12a
mov dword [0x1800d331c], ebx
jmp 0x18004c159
xor ebx, ebx
call fcn.18006e940
mov rcx, rax
call fcn.18006eab0
test eax, eax
je 0x18004c159
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x1800d3740]
lea rcx, [0x1800d37b8]
call fcn.1800049e0
jmp 0x18004c159
xor ebx, ebx
lea rcx, [r13 + 0x888]
cmp qword [rcx + 0x10], 0
jbe 0x18004d857
lea r8, [rsp + 0x70]
mov rdx, rdi
call fcn.18005c210
test eax, eax
je 0x18004d857
mov r15, qword [rsp + 0x70]
mov eax, dword [r15 + 0x104c]
mov dword [rsp + 0x30], eax
mov rdi, rbx
mov qword [rsp + 0x118], rbx
mov ecx, 0x18
call fcn.18007b11c
mov rsi, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x18004d81c
mov qword [rsp + 0x110], rax
mov qword [rax], rax
mov qword [rax + 8], rax
lea r14, [r15 + 0x1074]
mov r13d, ebx
cmp dword [r15 + 0x1070], 0
jbe 0x18004c241
nop dword [rax]
mov rax, qword [r14]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
mov rdx, qword [rsi + 8]
mov rcx, rsi
call fcn.180034420
movabs rcx, 0x1ffffffffffffffe
sub rcx, rdi
cmp rcx, 1
jb 0x18004c234
inc rdi
mov qword [rsp + 0x118], rdi
mov qword [rsi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
add r14, 8
inc r13d
cmp r13d, dword [r15 + 0x1070]
jb 0x18004c1e0
jmp 0x18004c241
lea rcx, str.list_T__too_long
call fcn.180078320
int3
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], rbx
test r12, r12
je 0x18004d265
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x40], ebx
mov eax, dword [r12 + 0x14]
cmp dword [r15 + 0x1248], 0
jne 0x18004c98f
mov r14d, dword [r12 + 0x10]
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0xa0], r14d
mov dword [rsp + 0xa4], eax
mov edx, 0x80000000
mov rdi, qword [rsp + 0xa0]
cmp rdi, rdx
jb 0x18004c37f
add rdi, 0x200
mov qword [rsp + 0xa0], rdi
mov rax, qword [r12]
mov qword [rsp + 0x80], rax
mov rax, qword [r12 + 8]
mov qword [rsp + 0x88], rax
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x90], rax
mov rax, qword [r12 + 0x18]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x90], eax
shr rdi, 0x20
mov dword [rsp + 0x94], edi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xa8]
call qword [0x1800d9608]
mov edi, eax
mov rcx, qword [rsp + 0x88]
mov qword [r12 + 8], rcx
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004c370
nop dword [rax]
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004c360
mov rcx, rsi
call fcn.18007a7a4
mov eax, edi
jmp 0x18004d86e
mov edx, dword [rsp + 0x34]
add edx, r14d
mov dword [rsp + 0x38], edx
mov r9d, edx
mov r8d, r14d
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x110]
call fcn.180034000
mov rax, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xd0]
sub rax, r13
sar rax, 3
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x18004c4a0
add rdi, 0x200
mov qword [rsp + 0xa0], rdi
mov rax, qword [r12]
mov qword [rsp + 0x80], rax
mov rax, qword [r12 + 8]
mov qword [rsp + 0x88], rax
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x90], rax
mov rax, qword [r12 + 0x18]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x90], eax
shr rdi, 0x20
mov dword [rsp + 0x94], edi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xa8]
call qword [0x1800d9608]
mov edi, eax
mov rdx, qword [rsp + 0x88]
mov qword [r12 + 8], rdx
test r13, r13
je 0x18004c472
mov rcx, r13
call fcn.18007a7a4
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004c491
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004c481
mov rcx, rsi
call fcn.18007a7a4
mov eax, edi
jmp 0x18004d86e
lea rcx, [rsp + 0x150]
call fcn.18003aba0
nop
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x150]
call fcn.18003f2f0
movzx eax, word [r15 + 0x1154]
mov dword [rsp + 0x960], eax
mov ecx, dword [r13]
cmp r14d, ecx
jbe 0x18004c4ee
mov dword [rsp + 0x78], 1
mov eax, r14d
sub eax, ecx
and eax, 0xf
sub r14d, eax
mov dword [r13], r14d
mov edx, dword [rsp + 0x38]
mov r8, qword [rsp + 0xd8]
mov eax, edx
cmp edx, dword [r8 - 4]
jae 0x18004c525
mov dword [rsp + 0x40], 1
sub eax, dword [r8 - 8]
and eax, 0xf
mov ecx, reloc.WS2_32.dll_recv
sub ecx, eax
cmp ecx, 0x10
cmove ecx, ebx
lea eax, [rcx + rdx]
mov dword [r8 - 4], eax
mov dword [rsp + 0x30], eax
mov edi, dword [rsp + 0x48]
sub edi, r14d
mov ecx, eax
sub ecx, r14d
mov dword [rsp + 0xa0], ecx
sub edx, eax
mov dword [rsp + 0x38], edx
mov r15d, ecx
call fcn.180078408
mov qword [rsp + 0x58], rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.18007e840
nop
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x18004c686
mov r15d, dword [r13 + 4]
sub r15d, dword [r13]
mov dword [rsp + 0x48], r15d
mov eax, r15d
mov qword [rsp + 0x70], rax
mov ecx, r15d
call fcn.180078408
mov qword [rsp + 0x68], rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.18007e840
nop
xor eax, eax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
lea eax, [r14 + 0x200]
mov dword [rsp + 0x100], eax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8d, r15d
mov rdx, qword [rsp + 0x68]
mov r15, qword [rsp + 0xa8]
mov rcx, r15
call qword [0x1800d95f8]
mov r11d, dword [rsp + 0x48]
mov dword [rsp + 0x20], r11d
mov rax, qword [rsp + 0x68]
mov r9, rax
mov r8, rax
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x960]
call fcn.18006c590
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call fcn.18007abc0
mov rcx, qword [rsp + 0x68]
call fcn.18007b7a8
mov eax, dword [rsp + 0x78]
jmp 0x18004c68e
mov r15, qword [rsp + 0xa8]
cmp dword [rsp + 0x40], 0
je 0x18004c7d5
test eax, eax
je 0x18004c6a9
cmp qword [rsp + 0x50], 1
jbe 0x18004c7d5
mov rcx, qword [rsp + 0xd8]
mov eax, dword [rcx - 4]
sub eax, dword [rcx - 8]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0xc8], rax
mov ecx, eax
call fcn.180078408
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0xc8]
xor edx, edx
mov rcx, rax
call fcn.18007e840
nop
xor eax, eax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
mov ecx, dword [rsp + 0x68]
mov eax, dword [rsp + 0x30]
sub eax, ecx
mov dword [rsp + 0x30], eax
add eax, 0x200
mov dword [rsp + 0x100], eax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8d, ecx
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call qword [0x1800d95f8]
mov r11d, dword [rsp + 0x68]
mov dword [rsp + 0x20], r11d
mov r15, qword [rsp + 0x60]
mov r9, r15
mov r8, r15
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x960]
call fcn.18006c590
mov ecx, dword [rsp + 0x30]
sub ecx, r14d
add rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0xc8]
mov rdx, r15
call fcn.18007abc0
mov rcx, r15
call fcn.18007b7a8
jmp 0x18004c7d5
mov r8d, dword [rsp + 0x34]
mov ecx, edi
add rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xc0]
call fcn.18007abc0
mov r15d, ebx
mov rdi, rbx
cmp qword [rsp + 0x50], 0
jbe 0x18004c847
nop dword [rax]
mov ecx, dword [r13 + rdi*8]
mov edx, dword [r13 + rdi*8 + 4]
sub edx, ecx
mov eax, r14d
sub rcx, rax
mov rax, qword [rsp + 0x58]
lea r8, [rcx + rax]
mov dword [rsp + 0x20], edx
mov r9, r8
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x960]
call fcn.18006c630
inc r15d
inc rdi
movsxd rax, r15d
cmp rax, qword [rsp + 0x50]
jb 0x18004c800
mov rax, qword [r12]
mov qword [rsp + 0x80], rax
mov rax, qword [r12 + 8]
mov qword [rsp + 0x88], rax
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x90], rax
mov rax, qword [r12 + 0x18]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x94], ebx
lea eax, [r14 + 0x200]
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x3c], ebx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0xa0]
mov rdi, qword [rsp + 0x58]
mov rdx, rdi
mov rbx, qword [rsp + 0xa8]
mov rcx, rbx
call qword [0x1800d9608]
mov r14d, eax
test eax, eax
je 0x18004c8e9
mov r9, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x34]
test r9, r9
je 0x18004c8e1
mov dword [r9], eax
mov r8d, eax
mov qword [r12 + 8], r8
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x18004c903
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
call qword [0x1800d9618]
mov rcx, rdi
call fcn.18007b7a8
nop
mov rcx, r13
call fcn.18007a7a4
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004c934
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004c924
mov rcx, rsi
call fcn.18007a7a4
mov eax, r14d
jmp 0x18004d86e
mov ecx, dword [r12 + 0x10]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], eax
mov r14d, ebx
mov r13, rbx
mov qword [rsp + 0x60], rbx
cmp qword [r12 + 0x18], 0
je 0x18004c9d6
mov r14d, 1
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r13, rax
mov qword [rsp + 0x60], rax
mov ecx, dword [rsp + 0x38]
mov edx, 0x80000000
mov rdi, qword [rsp + 0x48]
cmp rdi, rdx
jb 0x18004cb2f
add rdi, 0x200
mov qword [rsp + 0x48], rdi
mov rcx, qword [r12]
mov qword [rsp + 0x80], rcx
mov rax, qword [r12 + 8]
mov qword [rsp + 0x88], rax
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x90], rax
mov rcx, qword [r12 + 0x18]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x90], eax
shr rdi, 0x20
mov dword [rsp + 0x94], edi
test r14d, r14d
cmovne rcx, r13
mov qword [rsp + 0x98], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xa8]
mov rcx, rbx
call qword [0x1800d9608]
mov edi, eax
test eax, eax
jne 0x18004cad5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18004ca9d
or edx, 0xffffffff
test r14d, r14d
je 0x18004ca98
mov rcx, r13
jmp 0x18004cacf
mov rcx, rbx
jmp 0x18004cacf
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004cac0
nop dword [rax]
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004cab0
mov rcx, rsi
call fcn.18007a7a4
xor eax, eax
jmp 0x18004d86e
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x88]
mov qword [r12 + 8], rax
test r14d, r14d
je 0x18004cafc
mov rcx, qword [r12 + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call qword [0x1800d9668]
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004cb20
nop dword [rax + rax]
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004cb10
mov rcx, rsi
call fcn.18007a7a4
mov eax, edi
jmp 0x18004d86e
mov edx, dword [rsp + 0x34]
add edx, ecx
mov dword [rsp + 0x68], edx
mov r9d, edx
mov r8d, ecx
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x110]
call fcn.180034000
mov rax, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xd0]
sub rax, r13
sar rax, 3
mov qword [rsp + 0xc8], rax
test rax, rax
jne 0x18004cce2
add rdi, 0x200
mov qword [rsp + 0x48], rdi
mov rax, qword [r12]
mov qword [rsp + 0x80], rax
mov rax, qword [r12 + 8]
mov qword [rsp + 0x88], rax
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x90], rax
mov rcx, qword [r12 + 0x18]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x90], eax
shr rdi, 0x20
mov dword [rsp + 0x94], edi
test r14d, r14d
mov rdi, qword [rsp + 0x60]
cmovne rcx, rdi
mov qword [rsp + 0x98], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xa8]
mov rcx, rbx
call qword [0x1800d9608]
mov r15d, eax
test eax, eax
jne 0x18004cc7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18004cc42
or edx, 0xffffffff
test r14d, r14d
je 0x18004cc37
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18004cc7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18004cc98
test r13, r13
je 0x18004cc50
mov rcx, r13
call fcn.18007a7a4
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004cc70
nop
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004cc60
mov rcx, rsi
call fcn.18007a7a4
xor eax, eax
jmp 0x18004d86e
test r14d, r14d
je 0x18004cc98
mov rcx, qword [r12 + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [0x1800d9668]
mov rax, qword [rsp + 0x88]
mov qword [r12 + 8], rax
test r13, r13
je 0x18004ccb3
mov rcx, r13
call fcn.18007a7a4
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004ccd2
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004ccc2
mov rcx, rsi
call fcn.18007a7a4
mov eax, r15d
jmp 0x18004d86e
lea rcx, [rsp + 0x150]
call fcn.18003aba0
nop
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x150]
call fcn.18003f2f0
movzx eax, word [r15 + 0x1154]
mov dword [rsp + 0x960], eax
mov ecx, dword [r13]
mov edi, dword [rsp + 0x38]
mov r15d, edi
cmp edi, ecx
ja 0x18004cd25
mov dword [rsp + 0x38], edi
jmp 0x18004cd40
mov dword [rsp + 0x78], 1
mov eax, edi
sub eax, ecx
and eax, 0xf
sub r15d, eax
mov dword [rsp + 0x38], r15d
mov dword [r13], r15d
mov edx, dword [rsp + 0x68]
mov r8, qword [rsp + 0xd8]
mov eax, edx
cmp edx, dword [r8 - 4]
jae 0x18004cd77
mov dword [rsp + 0x40], 1
sub eax, dword [r8 - 8]
and eax, 0xf
mov ecx, reloc.WS2_32.dll_recv
sub ecx, eax
cmp ecx, 0x10
cmove ecx, ebx
lea eax, [rcx + rdx]
mov dword [r8 - 4], eax
mov dword [rsp + 0x30], eax
sub edi, r15d
mov ecx, eax
sub ecx, r15d
mov dword [rsp + 0x48], ecx
sub edx, eax
mov dword [rsp + 0x68], edx
call fcn.180078408
mov qword [rsp + 0x58], rax
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call fcn.18007e840
nop
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x18004cecf
mov eax, dword [r13 + 4]
sub eax, dword [r13]
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x70], rax
mov ecx, eax
call fcn.180078408
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, rax
call fcn.18007e840
nop
xor eax, eax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
lea eax, [r15 + 0x200]
mov dword [rsp + 0x100], eax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x50]
mov r15, qword [rsp + 0xa8]
mov rcx, r15
call qword [0x1800d95f8]
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov r9, rax
mov r8, rax
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x960]
call fcn.18006c590
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.18007abc0
mov rcx, qword [rsp + 0x50]
call fcn.18007b7a8
mov eax, dword [rsp + 0x78]
jmp 0x18004ced7
mov r15, qword [rsp + 0xa8]
cmp dword [rsp + 0x40], 0
je 0x18004d01f
test eax, eax
je 0x18004cef5
cmp qword [rsp + 0xc8], 1
jbe 0x18004d01f
mov rcx, qword [rsp + 0xd8]
mov eax, dword [rcx - 4]
sub eax, dword [rcx - 8]
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x70], rax
mov ecx, eax
call fcn.180078408
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, rax
call fcn.18007e840
nop
xor eax, eax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x30]
sub eax, ecx
mov dword [rsp + 0x30], eax
add eax, 0x200
mov dword [rsp + 0x100], eax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8d, ecx
mov rdx, qword [rsp + 0x50]
mov rcx, r15
call qword [0x1800d95f8]
mov r11d, dword [rsp + 0x3c]
mov dword [rsp + 0x20], r11d
mov rax, qword [rsp + 0x50]
mov r9, rax
mov r8, rax
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x960]
call fcn.18006c590
mov ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x38]
add rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
call fcn.18007abc0
mov rcx, qword [rsp + 0x50]
call fcn.18007b7a8
jmp 0x18004d01f
mov r8d, dword [rsp + 0x34]
mov ecx, edi
add rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xc0]
call fcn.18007abc0
mov dword [rsp + 0x3c], ebx
mov rdi, rbx
cmp qword [rsp + 0xc8], 0
jbe 0x18004d0a1
nop word [rax + rax]
mov ecx, dword [r13 + rdi*8]
mov edx, dword [r13 + rdi*8 + 4]
sub edx, ecx
mov eax, dword [rsp + 0x38]
sub rcx, rax
mov rax, qword [rsp + 0x58]
lea r8, [rcx + rax]
mov dword [rsp + 0x20], edx
mov r9, r8
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x960]
call fcn.18006c630
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
inc rdi
cdqe
cmp rax, qword [rsp + 0xc8]
jb 0x18004d050
mov rax, qword [r12]
mov qword [rsp + 0x80], rax
mov rax, qword [r12 + 8]
mov qword [rsp + 0x88], rax
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x90], rax
mov rcx, qword [r12 + 0x18]
mov dword [rsp + 0x94], ebx
mov eax, dword [rsp + 0x38]
add eax, 0x200
mov dword [rsp + 0x90], eax
test r14d, r14d
mov rdi, qword [rsp + 0x60]
cmovne rcx, rdi
mov qword [rsp + 0x98], rcx
mov dword [rsp + 0xa0], ebx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa0]
mov r8d, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, r15
call qword [0x1800d9608]
mov dword [rsp + 0x48], eax
test eax, eax
jne 0x18004d193
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18004d15c
or edx, 0xffffffff
test r14d, r14d
je 0x18004d151
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18004d193
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18004d1ac
mov rcx, r13
call fcn.18007a7a4
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004d184
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004d174
mov rcx, rsi
call fcn.18007a7a4
xor eax, eax
jmp 0x18004d86e
test r14d, r14d
je 0x18004d1ac
mov rcx, qword [r12 + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [0x1800d9668]
mov r9, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x34]
test r9, r9
je 0x18004d1c0
mov dword [r9], eax
mov qword [r12 + 8], rax
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x18004d1df
mov r9d, 1
xor r8d, r8d
mov rcx, r15
call qword [0x1800d9618]
mov rcx, rbx
call fcn.18007b7a8
nop
mov rcx, r13
call fcn.18007a7a4
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004d210
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004d200
mov rcx, rsi
call fcn.18007a7a4
mov eax, dword [rsp + 0x48]
jmp 0x18004d86e
lea rcx, [rsp + 0x150]
call fcn.18003aba0
nop
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x150]
call fcn.18003f2f0
movzx eax, word [r15 + 0x1154]
mov dword [rsp + 0x960], eax
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x70], rbx
mov r9d, 1
lea r8, [rsp + 0x70]
mov rdx, rbx
mov r14, qword [rsp + 0xa8]
mov rcx, r14
call qword [0x1800d9628]
mov edx, 0x80000000
mov rax, qword [rsp + 0x70]
cmp rax, rdx
jle 0x18004d325
mov qword [rsp + 0x20], rbx
mov r9, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xc0]
mov rcx, r14
call qword [0x1800d9608]
mov edi, eax
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004d316
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004d306
mov rcx, rsi
call fcn.18007a7a4
mov eax, edi
jmp 0x18004d86e
lea r12d, [rax - 0x200]
mov r13d, dword [rsp + 0x34]
lea edx, [r13 + r12]
mov dword [rsp + 0x30], edx
mov r9d, edx
mov r8d, r12d
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x110]
call fcn.180034000
mov rdx, qword [rsp + 0xd8]
mov r15, rdx
mov rdi, qword [rsp + 0xd0]
sub r15, rdi
sar r15, 3
mov qword [rsp + 0xc8], r15
test r15, r15
jne 0x18004d3e0
mov qword [rsp + 0x20], rbx
mov r9, qword [rsp + 0xb0]
mov r8d, r13d
mov rdx, qword [rsp + 0xc0]
mov rcx, r14
call qword [0x1800d9608]
mov r12d, eax
test rdi, rdi
je 0x18004d3ae
mov rcx, rdi
call fcn.18007a7a4
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004d3d0
nop dword [rax]
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004d3c0
mov rcx, rsi
call fcn.18007a7a4
mov eax, r12d
jmp 0x18004d86e
mov ecx, dword [rdi]
mov r13d, r12d
cmp r12d, ecx
jbe 0x18004d400
mov dword [rsp + 0x44], 1
mov eax, r12d
sub eax, ecx
and eax, 0xf
sub r13d, eax
mov dword [rdi], r13d
mov r8d, dword [rsp + 0x30]
mov eax, r8d
cmp r8d, dword [rdx - 4]
jae 0x18004d430
mov dword [rsp + 0x40], 1
sub eax, dword [rdx - 8]
and eax, 0xf
mov ecx, reloc.WS2_32.dll_recv
sub ecx, eax
cmp ecx, 0x10
cmove ecx, ebx
lea eax, [rcx + r8]
mov dword [rdx - 4], eax
mov dword [rsp + 0x38], eax
sub r12d, r13d
sub eax, r13d
mov dword [rsp + 0x68], eax
mov ecx, eax
call fcn.180078408
mov qword [rsp + 0x58], rax
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov rcx, rax
call fcn.18007e840
nop
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x18004d553
mov eax, dword [rdi + 4]
sub eax, dword [rdi]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x60], rax
mov ecx, eax
call fcn.180078408
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, rax
call fcn.18007e840
nop
lea edx, [r13 + 0x200]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [0x1800d9618]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, r14
call qword [0x1800d95f8]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov r9, rax
mov r8, rax
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x960]
call fcn.18006c590
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.18007abc0
mov rcx, qword [rsp + 0x50]
call fcn.18007b7a8
mov eax, dword [rsp + 0x44]
jmp 0x18004d553
cmp dword [rsp + 0x40], 0
je 0x18004d661
test eax, eax
je 0x18004d56c
cmp r15, 1
jbe 0x18004d661
mov rax, qword [rsp + 0xd8]
mov r15d, dword [rax - 4]
sub r15d, dword [rax - 8]
mov ecx, r15d
call fcn.180078408
mov qword [rsp + 0x60], rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.18007e840
nop
mov edx, dword [rsp + 0x38]
sub edx, r15d
mov dword [rsp + 0x38], edx
add edx, 0x200
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [0x1800d9618]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x3c]
mov r8d, r15d
mov rdx, qword [rsp + 0x60]
mov rcx, r14
call qword [0x1800d95f8]
mov dword [rsp + 0x20], r15d
mov rax, qword [rsp + 0x60]
mov r9, rax
mov r8, rax
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x960]
call fcn.18006c590
mov ecx, dword [rsp + 0x38]
sub ecx, r13d
add rcx, qword [rsp + 0x58]
mov r8d, r15d
mov r15, qword [rsp + 0x60]
mov rdx, r15
call fcn.18007abc0
mov rcx, r15
call fcn.18007b7a8
jmp 0x18004d661
mov r8d, dword [rsp + 0x34]
mov ecx, r12d
add rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xc0]
call fcn.18007abc0
mov r15d, ebx
mov r12, rbx
cmp qword [rsp + 0xc8], 0
jbe 0x18004d6d9
nop dword [rax]
mov ecx, dword [rdi + r12*8]
mov edx, dword [rdi + r12*8 + 4]
sub edx, ecx
mov eax, r13d
sub rcx, rax
mov rax, qword [rsp + 0x58]
lea r8, [rcx + rax]
mov dword [rsp + 0x20], edx
mov r9, r8
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x960]
call fcn.18006c630
inc r15d
inc r12
movsxd rax, r15d
cmp rax, qword [rsp + 0xc8]
jb 0x18004d690
mov eax, dword [rsp + 0x44]
mov r12d, dword [rsp + 0x40]
test eax, eax
jne 0x18004d6eb
test r12d, r12d
je 0x18004d701
lea edx, [r13 + 0x200]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [0x1800d9618]
mov qword [rsp + 0x20], rbx
mov r13, qword [rsp + 0xb0]
mov r9, r13
mov r8d, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, r14
call qword [0x1800d9608]
test eax, eax
jne 0x18004d762
mov rcx, rdi
call fcn.18007a7a4
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004d753
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004d743
mov rcx, rsi
call fcn.18007a7a4
xor eax, eax
jmp 0x18004d86e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r13, r13
je 0x18004d775
mov eax, dword [rsp + 0x34]
mov dword [r13], eax
test r12d, r12d
je 0x18004d793
mov edx, dword [rsp + 0x30]
add edx, 0x200
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [0x1800d9618]
mov rcx, rbx
call fcn.18007b7a8
nop
mov rcx, rdi
call fcn.18007a7a4
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x18004d7c4
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rsi
jne 0x18004d7b4
mov rcx, rsi
call fcn.18007a7a4
mov eax, 1
jmp 0x18004d86e
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x128]
call fcn.18007aac4
lea r11, vtable.std::bad_alloc.0
mov qword [rsp + 0x128], r11
lea rdx, [0x1800cc1e8]
lea rcx, [rsp + 0x128]
call fcn.18007e92c
int3
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8d, esi
mov rdx, r15
mov rcx, rdi
call qword [0x1800d9608]
mov rcx, qword [rsp + 0x970]
xor rcx, rsp
call fcn.18007a7c0
add rsp, 0x980
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret