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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov r11d, dword [r8 + 0x1c]
mov r13d, r9d
dec dword [rcx + 0x44]
xor r9d, r9d
mov eax, dword [rcx + 0x44]
mov r15, rdx
mov rbp, qword [rdx]
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
add rbp, 8
mov edx, dword [r8 + 0x14]
mov esi, r9d
mov r14, qword [r8]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xd0]
mov dword [rsp + 0x34], r11d
mov qword [rsp + 0x50], rbp
movzx r12d, byte [rax]
mov ecx, dword [rax + 4]
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x38], ecx
test edx, edx
je 0x1401c47bf
movsxd rcx, dword [rbx + 0x90]
mov r8d, dword [r8 + 0x10]
cmp dword [rbx + 0x94], ecx
jg 0x1401c4737
mov dword [rsp + 0x20], r9d
mov rcx, rbx
mov r9d, edx
mov edx, listen
call fcn.1401c6d10
mov r11d, dword [rsp + 0x34]
jmp 0x1401c4765
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], listen
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov edx, r11d
mov rcx, rbx
call fcn.14021feb0
mov rcx, qword [rbx + 0x18]
mov r8, qword [rsp + 0xc0]
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
mov edx, dword [r8 + 0x14]
not edx
jns 0x1401c479f
mov r8d, edx
mov rdx, rbx
call fcn.1401d7da0
mov r8, qword [rsp + 0xc0]
jmp 0x1401c47af
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
mov r11d, dword [rsp + 0x34]
xor r9d, r9d
mov rax, qword [rsp + 0xd0]
mov edx, dword [r8 + 0xc]
mov dword [rsp + 0x30], edx
cmp r12d, 9
je 0x1401c4855
cmp r12b, 0xd
je 0x1401c4855
cmp r12b, 0xa
je 0x1401c4855
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1401c47f0
inc dword [rdi + 0x38]
mov r10d, dword [rdi + 0x38]
xor cl, cl
jmp 0x1401c4800
dec al
movzx ecx, al
mov byte [rdi + 0x1f], cl
mov r10d, dword [rdi + rcx*4 + 0xcc]
lea eax, [r12 - 0xc]
mov dword [rsp + 0xc8], r10d
test al, 0xfd
je 0x1401c4830
mov edx, r13d
mov rcx, rdi
call fcn.1401fe760
mov r8, qword [rsp + 0xc0]
mov r12d, eax
mov edx, dword [rsp + 0x30]
xor r9d, r9d
jmp 0x1401c4861
test cl, cl
jne 0x1401c4840
inc dword [rdi + 0x38]
mov r13d, r9d
mov r12d, dword [rdi + 0x38]
jmp 0x1401c4861
dec cl
mov r13d, r9d
movzx eax, cl
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xcc]
jmp 0x1401c4861
mov r12d, dword [rax + 8]
mov dword [rsp + 0xc8], r9d
mov r14d, dword [r14]
sub r14d, dword [r8 + 8]
test byte [r8 + 0x24], 1
je 0x1401c4a2b
mov r15d, dword [rdi + 0x34]
inc dword [rdi + 0x38]
mov ebp, dword [rdi + 0x38]
mov dword [rsp + 0x3c], r15d
lea eax, [r15 + 1]
mov dword [rdi + 0x34], eax
cmp dword [r8 + 0x14], esi
je 0x1401c489e
mov edx, reloc.COMCTL32.dll_InitCommonControls
mov rcx, rbx
call fcn.140217060
mov esi, eax
movsxd rcx, dword [rbx + 0x90]
lea edx, [r13 + 1]
add edx, r14d
cmp dword [rbx + 0x94], ecx
jg 0x1401c48d0
mov dword [rsp + 0x20], edx
mov r9d, ebp
mov edx, reloc.WS2_32.dll_WSACleanup
mov r8d, r15d
mov rcx, rbx
call fcn.1401c6d10
xor r8d, r8d
jmp 0x1401c4900
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], reloc.WS2_32.dll_WSACleanup
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r8
test esi, esi
je 0x1401c4938
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x61], 0
je 0x1401c491c
lea rax, [0x1403dbb90]
jmp 0x1401c4935
lea eax, [rdx - 1]
test esi, esi
cmovns eax, esi
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
movsxd rsi, dword [rbx + 0x90]
cmp dword [rbx + 0x94], esi
jg 0x1401c4967
mov r9d, dword [rsp + 0x34]
mov edx, 0x22
mov dword [rsp + 0x20], r8d
mov rcx, rbx
mov r8d, dword [rsp + 0x30]
call fcn.1401c6d10
mov esi, eax
jmp 0x1401c499c
mov edx, dword [rsp + 0x30]
lea rcx, [rsi + rsi*2]
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x34]
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8], 0x22
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rsp + 0xb8]
mov rcx, rbx
mov r8d, dword [rsp + 0x40]
mov edx, dword [rax + 0x14]
call fcn.1401a5ef0
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401c49ed
mov r8d, dword [rsp + 0x30]
mov r9d, ebp
mov edx, 0x7e
mov dword [rsp + 0x20], r15d
mov rcx, rbx
call fcn.1401c6d10
mov rbp, qword [rsp + 0x50]
xor r9d, r9d
mov eax, r9d
jmp 0x1401c4aa7
mov edx, dword [rsp + 0x30]
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
xor r9d, r9d
mov dword [rax + rcx*8 + 8], ebp
mov rbp, qword [rsp + 0x50]
mov dword [rax + rcx*8], 0x7e
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r9
mov eax, r9d
jmp 0x1401c4aa7
movsxd rsi, dword [rbx + 0x90]
cmp dword [rbx + 0x94], esi
jg 0x1401c4a56
mov dword [rsp + 0x20], r9d
mov r8d, edx
mov r9d, r11d
mov edx, 0x23
mov rcx, rbx
call fcn.1401c6d10
mov esi, eax
jmp 0x1401c4a84
lea rcx, [rsi + rsi*2]
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x23
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r11d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
mov edx, dword [r15 + 0x14]
call fcn.1401a5ef0
mov r15d, dword [rsp + 0x30]
mov eax, 1
mov dword [rsp + 0x3c], r15d
xor r9d, r9d
lea ecx, [rsi + 1]
mov dword [rsp + 0xb8], ecx
lea r8d, [rax + r14]
mov dword [rsp + 0x44], r8d
lea esi, [r8 - 1]
test r13d, r13d
jle 0x1401c4ae6
lea rcx, [rbp + 0x20]
mov edx, r13d
nop word [rax + rax]
cmp word [rcx], 0
lea eax, [rsi + 1]
lea rcx, [rcx + 0x28]
cmovne eax, esi
mov esi, eax
sub rdx, 1
jne 0x1401c4ad0
lea eax, [r13 - 1]
movsxd r14, eax
test eax, eax
js 0x1401c4b99
mov r15, qword [rsp + 0x50]
lea ebp, [rax + r12]
mov edi, dword [rsp + 0x3c]
lea rax, [r14 + r14*4]
add r15, 0x20
lea r15, [r15 + rax*8]
nop
movzx eax, word [r15]
test ax, ax
je 0x1401c4b20
movzx edx, ax
dec edx
jmp 0x1401c4b24
mov edx, esi
dec esi
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401c4b4f
mov r9d, edx
mov dword [rsp + 0x20], ebp
mov edx, 0x5a
mov r8d, edi
mov rcx, rbx
call fcn.1401c6d10
xor r9d, r9d
jmp 0x1401c4b7b
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r9
dec ebp
sub r15, 0x28
sub r14, 1
jns 0x1401c4b10
mov rdi, qword [rsp + 0xb0]
mov r15d, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x44]
mov r14d, dword [rsp + 0x48]
mov ecx, r14d
sub ecx, 0xa
je 0x1401c4bfd
sub ecx, 1
je 0x1401c4e05
sub ecx, 1
je 0x1401c4cba
cmp ecx, 2
je 0x1401c4cba
mov rsi, qword [rsp + 0xd0]
movsxd rcx, dword [rbx + 0x90]
cmp r14b, 9
jne 0x1401c4c69
mov edx, dword [rsi + 8]
cmp dword [rbx + 0x94], ecx
jg 0x1401c4c39
mov dword [rsp + 0x20], r9d
mov r8d, edx
mov r9d, r13d
mov edx, 0x51
mov rcx, rbx
call fcn.1401c6d10
mov ebp, dword [rsp + 0xc8]
xor esi, esi
test ebp, ebp
je 0x1401c4fa3
cmp r14b, 0xb
jne 0x1401c4f73
cmp r13d, 1
je 0x1401c4f73
cmp r13d, dword [rdi + 0x28]
jle 0x1401c4f8e
mov dword [rdi + 0x28], r13d
mov dword [rdi + 0x2c], r12d
jmp 0x1401c4f8e
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x51
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
jmp 0x1401c4bfd
mov edx, dword [rsi + 4]
cmp dword [rbx + 0x94], ecx
jg 0x1401c4c88
mov dword [rsp + 0x20], r9d
mov r8d, edx
xor r9d, r9d
lea edx, [r9 + 0xe]
jmp 0x1401c4bf5
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], reloc.WS2_32.dll_ntohl
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
jmp 0x1401c4bfd
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401c4ce6
mov r9d, r8d
mov dword [rsp + 0x20], r12d
mov r8d, r15d
mov edx, 0x5a
mov rcx, rbx
call fcn.1401c6d10
xor r9d, r9d
jmp 0x1401c4d15
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rbx + 0x90]
mov r8d, dword [rsp + 0x38]
cmp dword [rbx + 0x94], ecx
jg 0x1401c4d54
mov dword [rsp + 0x20], r9d
mov edx, 0x79
mov r9d, dword [rsp + 0xc8]
mov rcx, rbx
call fcn.1401c6d10
mov edx, dword [rsp + 0xc8]
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
jmp 0x1401c4d89
mov edx, dword [rsp + 0xc8]
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x79
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401c4dae
mov dword [rsp + 0x20], edx
mov r9d, r12d
mov edx, 0x7a
mov rcx, rbx
call fcn.1401c6d10
jmp 0x1401c4ddc
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x7a
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x1401c4bfd
lea rcx, [rax + rax*2]
mov edx, 8
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
jmp 0x1401c4bfd
mov rsi, qword [rsp + 0xd0]
movsxd rdx, dword [rbx + 0x90]
mov ebp, dword [rsp + 0xc8]
mov rsi, qword [rsi + 0x10]
cmp dword [rbx + 0x94], edx
jg 0x1401c4e42
mov r9d, r13d
mov dword [rsp + 0x20], ebp
mov r8d, r12d
mov edx, 0x5c
mov rcx, rbx
call fcn.1401c6d10
mov edx, eax
jmp 0x1401c4e70
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x5c
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r9
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x1401c4e8c
cmp r13d, 0xfffffff4
je 0x1401c4eea
mov r8, rsi
mov edx, r13d
call fcn.1401b1ff0
jmp 0x1401c4eea
test edx, edx
jns 0x1401c4e98
mov edx, dword [rbx + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rax + rcx*8]
test r13d, r13d
jns 0x1401c4edc
cmp byte [rdx + 1], 0
jne 0x1401c4edc
cmp r13d, 0xfffffffd
jne 0x1401c4ec4
mov dword [rdx + 0x10], esi
mov byte [rdx + 1], r13b
jmp 0x1401c4eea
test rsi, rsi
je 0x1401c4eea
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], r13b
cmp r13d, 0xfffffff4
jne 0x1401c4eea
inc dword [rsi + 0x18]
jmp 0x1401c4eea
mov r9d, r13d
mov r8, rsi
mov rcx, rbx
call fcn.140231240
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [rsp + 0x38]
cmp dword [rbx + 0x94], edx
jg 0x1401c4f19
mov r9d, ebp
mov dword [rsp + 0x20], r12d
mov edx, 0x84
mov rcx, rbx
call fcn.1401c6d10
mov edx, eax
xor esi, esi
jmp 0x1401c4f49
lea rcx, [rdx + rdx*2]
xor esi, esi
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x84
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], rsi
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
jne 0x1401c4c06
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], r13d
jmp 0x1401c4c06
test r12d, r12d
je 0x1401c4f8e
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401c4f8e
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], r12d
inc byte [rdi + 0x1f]
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401c4fa3
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], ebp
inc byte [rdi + 0x1f]
mov rcx, qword [rbx + 0x18]
mov edx, dword [rsp + 0x40]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401c4fc2
mov r8d, edx
mov rdx, rbx
call fcn.1401d7da0
jmp 0x1401c4fd2
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
mov rdi, qword [rsp + 0xc0]
movsxd rcx, dword [rbx + 0x90]
mov eax, dword [rbx + 0x94]
test byte [rdi + 0x24], 1
je 0x1401c5031
cmp eax, ecx
jg 0x1401c5014
mov r9d, dword [rsp + 0xb8]
mov edx, 3
mov r8d, dword [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.1401c6d10
xor r8d, r8d
jmp 0x1401c5093
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 3
jmp 0x1401c5073
cmp eax, ecx
jg 0x1401c5058
mov r9d, dword [rsp + 0xb8]
mov edx, 5
mov r8d, dword [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.1401c6d10
xor r8d, r8d
jmp 0x1401c5093
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 5
mov edx, dword [rsp + 0x30]
xor r8d, r8d
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0xb8]
mov qword [rax + rcx*8 + 0x10], r8
mov dword [rax + rcx*8 + 0xc], r8d
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x10]
test edx, edx
je 0x1401c50ef
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401c50c2
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x42]
call fcn.1401c6d10
jmp 0x1401c50ef
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x42
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx + 0x18]
mov edx, dword [rsp + 0x34]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401c510e
mov r8d, edx
mov rdx, rbx
call fcn.1401d7da0
jmp 0x1401c511e
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret