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

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
mov r15d, dword [r8 + 0x1c]
mov r14d, r9d
mov rsi, qword [rbx + 0x30]
mov r13, rdx
mov rdi, rcx
movsxd rbp, dword [rsi + 0x80]
mov dword [rsp + 0x3c], r15d
lea eax, [rbp + 1]
mov dword [rsi + 0x80], eax
lea eax, [rbp - 1]
test ebp, eax
jne 0x18007feb8
mov rdx, qword [rsi + 0x88]
mov rcx, qword [rsi]
lea eax, [rbp + rbp + 1]
movsxd r8, eax
shl r8, 2
call fcn.180017710
mov r8, qword [rsp + 0xa0]
mov qword [rsi + 0x88], rax
mov rcx, qword [rsi + 0x88]
or edx, 0xffffffff
test rcx, rcx
je 0x18007feca
mov dword [rcx + rbp*4], edx
mov rax, qword [rsp + 0xb0]
mov r12, qword [r8]
sub edx, ebp
movzx ebp, byte [rax]
mov ecx, dword [rax + 4]
xor r9d, r9d
mov dword [rsp + 0x40], edx
mov edx, dword [r8 + 0x14]
mov esi, r9d
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], ecx
test edx, edx
je 0x18007ffe4
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov r8d, dword [r8 + 0x10]
cmp dword [rax + 0x64], ecx
jg 0x18007ff26
mov dword [rsp + 0x20], r9d
mov r9d, edx
mov rcx, rbx
mov edx, select
call fcn.18003a660
xor r9d, r9d
jmp 0x18007ff52
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], sil
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 word [rax + rcx*8], select
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007ff7b
xor r8d, r8d
mov dword [rsp + 0x20], r9d
mov rcx, rbx
lea edx, [r8 + 0xd]
mov r9d, r15d
call fcn.18003a660
xor r9d, r9d
jmp 0x18007ffa8
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], sil
mov dword [rax + rcx*8 + 4], r9d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov word [rax + rcx*8], select
mov rdx, qword [rbx + 0x30]
mov r8, qword [rsp + 0xa0]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18007ffd4
movsxd rax, dword [r8 + 0x14]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [rdx + 0x6c], eax
mov rax, qword [rsp + 0xb0]
mov r15d, dword [r8 + 0xc]
mov dword [rsp + 0x34], r15d
cmp ebp, 9
je 0x180080044
cmp ebp, 0xd
je 0x180080044
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x180080007
inc dword [rdi + 0x58]
mov ecx, dword [rdi + 0x58]
jmp 0x180080013
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ecx, dword [rdi + rax*4 + 0x28]
movzx eax, byte [rdi + 0x1f]
mov dword [rsp + 0x90], ecx
test al, al
jne 0x180080030
inc dword [rdi + 0x58]
mov ebp, dword [rdi + 0x58]
mov r14d, 1
jmp 0x18008004f
dec al
mov r14d, 1
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0x28]
jmp 0x18008004f
mov ebp, dword [rax + 8]
mov dword [rsp + 0x90], r9d
mov r12d, dword [r12]
sub r12d, dword [r8 + 8]
test byte [r8 + 0x20], 1
mov dword [rsp + 0x44], r12d
je 0x18008019c
mov r15d, dword [rdi + 0x54]
inc dword [rdi + 0x58]
mov r12d, dword [rdi + 0x58]
lea eax, [r15 + 1]
mov dword [rdi + 0x54], eax
cmp dword [r8 + 0x14], esi
je 0x180080089
mov rcx, rdi
call fcn.180053430
mov esi, eax
mov eax, dword [rsp + 0x44]
mov r9d, r12d
mov r8d, r15d
lea ecx, [rax + r14 + 1]
mov edx, 0x3c
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call fcn.18003a6c0
test esi, esi
je 0x1800800e7
mov ecx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov edx, dword [rbx + 0x3c]
test esi, esi
jns 0x1800800c3
lea esi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x1800800d5
lea rax, [0x1802f0540]
jmp 0x1800800e4
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rax, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov r8d, dword [rsp + 0x34]
xor r11d, r11d
cmp dword [rax + 0x64], edx
jg 0x180080116
mov r9d, dword [rsp + 0x3c]
lea edx, [r11 + 0x6a]
mov rcx, rbx
mov dword [rsp + 0x20], r11d
call fcn.18003a660
mov edx, eax
jmp 0x180080148
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 4], r8d
mov r8d, dword [rsp + 0x3c]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov word [rax + rcx*8], WSAGetLastError
mov dword [rax + rcx*8 + 8], r8d
mov r8d, dword [r13 + 0x14]
lea esi, [rdx + 1]
mov dword [rsp + 0x38], esi
test r8d, r8d
jle 0x180080172
mov r9d, dword [rsp + 0x40]
mov edx, 0x8a
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.18003a6c0
mov r8d, dword [rsp + 0x34]
mov r9d, r12d
mov edx, 0x64
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.18003a6c0
mov r12d, dword [rsp + 0x44]
xor r8d, r8d
mov r11d, r8d
jmp 0x18008022c
mov rax, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], edx
jg 0x1800801c7
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0x3c]
mov r8d, r15d
mov edx, WSAGetLastError
mov rcx, rbx
call fcn.18003a660
mov edx, eax
jmp 0x1800801f9
mov r8d, dword [rsp + 0x3c]
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], sil
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov word [rax + rcx*8], WSASetLastError
mov r8d, dword [r13 + 0x14]
lea eax, [rdx + 1]
mov dword [rsp + 0x38], eax
test r8d, r8d
jle 0x180080223
mov r9d, dword [rsp + 0x40]
mov edx, 0x8a
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.18003a6c0
mov r11d, 1
xor r8d, r8d
test r14d, r14d
jle 0x1800802a6
mov r13d, ebp
lea esi, [r11 + r12]
sub r13d, r11d
sub r13d, r12d
mov r12d, r14d
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18008026f
lea eax, [r13 + rsi]
mov r9d, esi
mov r8d, r15d
mov edx, gethostbyaddr
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.18003a660
xor r8d, r8d
jmp 0x18008029f
lea rdx, [rcx + rcx*2]
lea eax, [rcx + 1]
mov rcx, qword [rbx + 8]
mov dword [rbx + 0x3c], eax
lea eax, [r13 + rsi]
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], r15d
mov dword [rcx + rdx*8 + 8], esi
mov qword [rcx + rdx*8 + 0x10], r8
mov dword [rcx + rdx*8 + 0xc], eax
mov word [rcx + rdx*8], gethostbyaddr
inc esi
dec r12
jne 0x180080241
mov edx, dword [rsp + 0x48]
mov ecx, edx
sub ecx, 0xa
je 0x180080604
dec ecx
mov rax, qword [rbx + 0x30]
je 0x1800804b5
dec ecx
movsxd rcx, dword [rbx + 0x3c]
je 0x1800803e1
mov rsi, qword [rsp + 0xb0]
cmp edx, 9
jne 0x18008038e
mov edx, dword [rsi + 8]
mov r12d, dword [rsp + 0xa8]
cmp dword [rax + 0x64], ecx
jg 0x180080308
mov dword [rsp + 0x20], r8d
mov r8d, edx
mov r9d, r12d
mov edx, 0x21
mov rcx, rbx
call fcn.18003a660
jmp 0x180080334
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov word [rax + rcx*8], 0x21
mov r9d, dword [rsi + 8]
lea rcx, [rdi + 0x9c]
mov edx, 0xa
lea r10d, [r9 + r12 - 1]
xor r11d, r11d
nop dword [rax]
mov r8d, dword [rcx]
cmp r8d, r9d
jl 0x18008037d
cmp r8d, r10d
jg 0x18008037d
cmp byte [rcx - 6], r11b
je 0x18008037a
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x180080376
movzx eax, al
mov dword [rdi + rax*4 + 0x28], r8d
inc byte [rdi + 0x1f]
mov byte [rcx - 6], r11b
mov dword [rcx], r11d
add rcx, 0x14
dec rdx
jne 0x180080350
xor r13d, r13d
jmp 0x1800806b3
mov edx, dword [rsi + 4]
xor r13d, r13d
cmp dword [rax + 0x64], ecx
jg 0x1800803b5
mov r8d, edx
lea edx, [r13 + 0x12]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.18003a660
jmp 0x1800806b3
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], r13
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], reloc.WS2_32.dll_select
jmp 0x1800806b3
mov r12d, dword [rsp + 0x90]
xor r13d, r13d
cmp dword [rax + 0x64], ecx
jg 0x180080410
mov r8d, dword [rsp + 0x30]
lea edx, [r13 + 0x4a]
mov r9d, r12d
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.18003a660
mov edx, dword [rsp + 0x30]
jmp 0x180080440
mov edx, dword [rsp + 0x30]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], 0x4a
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180080467
mov r8d, edx
mov r9d, ebp
mov rcx, rbx
mov edx, 0x4b
mov dword [rsp + 0x20], r12d
call fcn.18003a660
jmp 0x180080492
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], 0x4b
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x1800806bb
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 - 0x15], 8
jmp 0x1800806bb
movsxd rdx, dword [rbx + 0x3c]
mov rsi, qword [rsp + 0xb0]
mov r12d, dword [rsp + 0x90]
cmp dword [rax + 0x64], edx
jg 0x1800804ef
mov r9d, 1
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x30]
mov dword [rsp + 0x20], r12d
call fcn.18003a660
xor r13d, r13d
mov edx, eax
jmp 0x180080521
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
xor r13d, r13d
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], 1
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], gethostbyaddr
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x18008053a
lea r8, [rsi + 1]
mov edx, 1
call fcn.18003b100
jmp 0x180080564
test edx, edx
jns 0x180080543
mov edx, dword [rbx + 0x3c]
dec edx
movsxd rax, edx
lea r8, [rsi + 1]
mov r9d, 1
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rdx, [rax + rcx*8]
mov rcx, rbx
call fcn.18003b3c0
lea rcx, [rdi + 0x9c]
mov edx, 0xa
mov r8d, dword [rcx]
cmp r8d, ebp
jl 0x18008059a
jg 0x18008059a
cmp byte [rcx - 6], 0
je 0x180080597
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x180080593
movzx eax, al
mov dword [rdi + rax*4 + 0x28], r8d
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r13d
add rcx, 0x14
dec rdx
jne 0x180080570
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x1800805cf
mov r8d, dword [rsp + 0x30]
mov r9d, r12d
mov edx, WSASetLastError
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.18003a660
jmp 0x1800806bb
mov edx, dword [rsp + 0x30]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], WSASetLastError
jmp 0x1800806bb
mov r10, qword [rdi + 0x10]
mov rax, qword [r10 + 0x30]
movsxd rcx, dword [r10 + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180080637
mov r9d, dword [rsp + 0x30]
mov r8d, ebp
mov edx, 0x1d
mov rcx, r10
mov dword [rsp + 0x20], 1
call fcn.18003a660
xor r13d, r13d
jmp 0x18008066d
mov edx, dword [rsp + 0x30]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [r10 + 0x3c], eax
mov rax, qword [r10 + 8]
xor r13d, r13d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], 1
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], 0x1d
lea rcx, [rdi + 0x9c]
mov edx, 0xa
nop dword [rax]
mov r8d, dword [rcx]
cmp r8d, ebp
jl 0x1800806aa
jg 0x1800806aa
cmp byte [rcx - 6], 0
je 0x1800806a7
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1800806a3
movzx eax, al
mov dword [rdi + rax*4 + 0x28], r8d
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r13d
add rcx, 0x14
dec rdx
jne 0x180080680
mov r12d, dword [rsp + 0x90]
test r12d, r12d
je 0x180080732
test ebp, ebp
je 0x1800806f7
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x1800806f7
mov ecx, r13d
lea rax, [rdi + 0x90]
cmp dword [rax + 0xc], ebp
je 0x1800806f3
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1800806d7
movzx eax, dl
mov dword [rdi + rax*4 + 0x28], ebp
inc byte [rdi + 0x1f]
jmp 0x1800806f7
mov byte [rax + 6], 1
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x180080732
mov ecx, r13d
lea rax, [rdi + 0x90]
nop word [rax + rax]
cmp dword [rax + 0xc], r12d
je 0x18008072e
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x180080710
movzx eax, dl
mov dword [rdi + rax*4 + 0x28], r12d
inc byte [rdi + 0x1f]
jmp 0x180080732
mov byte [rax + 6], 1
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x180080757
movsxd rax, dword [rsp + 0x40]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
mov rdi, qword [rsp + 0xa0]
mov r8d, dword [rsp + 0x34]
dec eax
test byte [rdi + 0x20], 1
mov dword [rdx + 0x6c], eax
movsxd rcx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
je 0x1800807ae
cmp dword [rax + 0x64], ecx
jg 0x180080798
mov r9d, dword [rsp + 0x38]
mov edx, 3
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.18003a660
jmp 0x1800807fc
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 3
jmp 0x1800807e0
cmp dword [rax + 0x64], ecx
jg 0x1800807cc
mov r9d, dword [rsp + 0x38]
mov edx, 7
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.18003a660
jmp 0x1800807fc
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 7
mov edx, dword [rsp + 0x38]
mov qword [rax + rcx*8 + 0x10], r13
mov dword [rax + rcx*8 + 0xc], r13d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 4], r8d
mov byte [rax + rcx*8 + 3], 0
mov edx, dword [rdi + 0x10]
test edx, edx
je 0x180080854
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180080829
xor r9d, r9d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0xf]
mov dword [rsp + 0x20], r13d
call fcn.18003a660
jmp 0x180080854
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], reloc.WS2_32.dll_ntohs
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x180080879
movsxd rax, dword [rsp + 0x3c]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
mov rbx, qword [rsp + 0x98]
dec eax
mov dword [rdx + 0x6c], eax
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret