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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov eax, dword [rcx + 0x58]
mov r13d, dword [rsp + 0xf0]
mov rsi, qword [rcx]
mov dword [rsp + 0x34], r13d
inc r13d
mov r12, rcx
mov rbx, qword [r12 + 0x10]
mov dword [rsp + 0x50], r13d
inc r13d
mov dword [rsp + 0x3c], r13d
inc r13d
mov r14, rdx
mov r15d, r13d
mov dword [rsp + 0x30], r13d
inc r13d
mov ebp, r13d
mov dword [rsp + 0x4c], r13d
inc r13d
mov dword [rsp + 0x58], r13d
inc r13d
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x48], r13d
inc r13d
mov byte [rsp + 0x54], 1
cmp eax, r13d
mov ecx, r13d
mov dword [rsp + 0xf0], r13d
cmovg ecx, eax
mov dword [r12 + 0x58], ecx
test rbx, rbx
jne 0x18005a638
mov rcx, r12
call fcn.18003a350
mov rbx, rax
mov qword [r12 + 0x10], rax
test rax, rax
je 0x18005a614
mov edx, 0x9e
mov rcx, rax
call fcn.18003a750
cmp qword [r12 + 0x1c8], 0
jne 0x18005a62f
mov rax, qword [r12]
test byte [rax + 0x50], 8
jne 0x18005a62f
mov byte [r12 + 0x23], 1
test rbx, rbx
je 0x18005b37c
test r14, r14
je 0x18005b37c
cmp dword [r14 + 0x38], 0
je 0x18005b37c
mov rdx, qword [r14]
lea r8, [0x1802b6394]
lea rcx, str.sqlite__
xor r9d, r9d
call fcn.18006b050
test eax, eax
jne 0x18005b37c
mov rcx, qword [r14 + 0x68]
mov qword [rsp + 0x88], rdi
mov edi, 0xfff0bdc0
xor eax, eax
mov dword [rsp + 0x60], edi
test rcx, rcx
je 0x18005a6b4
mov edi, eax
mov dword [rsp + 0x60], eax
cmp dword [rsi + 0x28], eax
jle 0x18005a6b4
mov rax, qword [rsi + 0x20]
add rax, 0x18
nop dword [rax]
cmp qword [rax], rcx
je 0x18005a6b0
inc edi
add rax, 0x20
cmp edi, dword [rsi + 0x28]
jl 0x18005a6a0
mov dword [rsp + 0x60], edi
mov rax, qword [rsi + 0x20]
mov r8, qword [r14]
xor r9d, r9d
movsxd rcx, edi
lea edx, [r9 + 0x1c]
shl rcx, 5
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, r12
call fcn.18005cfa0
test eax, eax
jne 0x18005b374
mov rax, qword [r14]
mov r8d, dword [r14 + 0x38]
xor r9d, r9d
mov edx, edi
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.18005d060
mov eax, dword [r12 + 0x54]
mov r11d, dword [rsp + 0xf8]
mov ecx, r11d
inc r11d
mov r9, r14
mov esi, r11d
mov dword [rsp + 0x38], r11d
inc r11d
cmp eax, r11d
mov dword [rsp + 0x64], ecx
mov edx, ecx
cmovg r11d, eax
mov r8d, edi
mov rcx, r12
mov dword [r12 + 0x54], r11d
mov dword [rsp + 0x20], getservbyname
call fcn.180071400
mov r8, qword [r14]
mov edx, ebp
mov rcx, rbx
call fcn.18003a8a0
mov rbp, qword [r14 + 0x10]
mov qword [rsp + 0x40], rbp
test rbp, rbp
je 0x18005b145
mov rax, qword [rsp + 0xe0]
test rax, rax
je 0x18005a776
cmp rax, rbp
jne 0x18005b133
mov eax, dword [rsp + 0x54]
cmp qword [rbp + 0x48], 0
mov r8d, 0
movzx eax, al
cmove eax, r8d
test byte [r14 + 0x46], 0x20
mov dword [rsp + 0x54], eax
je 0x18005a82e
mov eax, dword [rbp + 0x64]
and al, 3
cmp al, 2
jne 0x18005a82e
movzx edi, word [rbp + 0x5e]
mov r8, qword [r14]
lea r14d, [rdi - 1]
mov edx, dword [rsp + 0x58]
mov rcx, rbx
call fcn.18003a8a0
mov eax, dword [r12 + 0x58]
lea r11d, [r14 + r13]
cmp eax, r11d
mov r8d, esi
mov edx, getservbyname
cmovg r11d, eax
mov eax, dword [rsp + 0x60]
mov rcx, rbx
mov dword [r12 + 0x58], r11d
mov r9d, dword [rbp + 0x58]
mov dword [rsp + 0x20], eax
call fcn.18003a6c0
mov rdx, rbp
mov rcx, r12
call fcn.18003b540
mov rax, qword [rbx + 0x30]
mov r12d, dword [rsp + 0x50]
movsxd rcx, dword [rbx + 0x3c]
lea esi, [r12 + 1]
cmp dword [rax + 0x64], ecx
jg 0x18005a84d
xor eax, eax
mov r9d, esi
mov r8d, edi
lea edx, [rax + 0x16]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.18003a660
xor r9d, r9d
jmp 0x18005a87b
test byte [rbp + 0x64], 8
movzx edi, word [rbp + 0x60]
mov r8, qword [rbp]
je 0x18005a7af
movzx r14d, word [rbp + 0x5e]
dec r14d
jmp 0x18005a7b3
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r9d, r9d
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov word [rax + rcx*8], reloc.WS2_32.dll_shutdown
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
movzx r8d, word [rbp + 0x5e]
lea edx, [r12 + 2]
cmp dword [rax + 0x64], ecx
jg 0x18005a8ac
mov dword [rsp + 0x20], r9d
mov r9d, edx
mov rcx, rbx
mov edx, reloc.WS2_32.dll_shutdown
call fcn.18003a660
xor r9d, r9d
jmp 0x18005a8d8
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], 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], reloc.WS2_32.dll_shutdown
mov rax, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], edx
jg 0x18005a900
xor r8d, r8d
mov r9d, esi
mov rcx, rbx
lea edx, [r8 + 0x23]
mov dword [rsp + 0x20], r12d
call fcn.18003a660
mov edx, eax
jmp 0x18005a92c
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], 0
mov dword [rax + rcx*8 + 4], r9d
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r9
mov word [rax + rcx*8], 0x23
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x18005a948
lea r8, [0x1802b6228]
mov edx, 0xfffffffb
call fcn.18003b100
jmp 0x18005a98d
test edx, edx
jns 0x18005a951
mov edx, dword [rbx + 0x3c]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18005a97e
lea r8, [0x1802b6228]
mov r9d, 0xfffffffb
mov rcx, rbx
call fcn.18003b3c0
jmp 0x18005a98d
lea rax, [0x1802b6228]
mov byte [rdx + 1], 0xfb
mov qword [rdx + 0x10], rax
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x18005a9a7
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 - 0x15], 2
mov esi, dword [rsp + 0x38]
mov edx, WSASetLastError
mov rcx, rbx
mov r8d, esi
call fcn.18003a7c0
mov rcx, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov edi, eax
mov dword [rsp + 0x5c], eax
cmp dword [rcx + 0x64], edx
jg 0x18005a9e9
mov r9d, dword [rsp + 0x3c]
xor eax, eax
xor r8d, r8d
lea edx, [rax + 0x16]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.18003a660
jmp 0x18005aa1c
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov edx, dword [rsp + 0x3c]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
xor r8d, r8d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov word [rax + rcx*8], reloc.WS2_32.dll_shutdown
mov r12d, dword [rbx + 0x3c]
test r14d, r14d
jle 0x18005ae45
mov rcx, rbx
call fcn.18003ad30
mov rcx, qword [rsp + 0x70]
movsxd rdx, r14d
shl rdx, 2
mov ebp, eax
mov dword [rsp + 0x68], eax
call fcn.180017520
mov r15, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x18005b111
mov edx, recv
mov rcx, rbx
call fcn.18003a750
movsxd r12, dword [rbx + 0x3c]
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x6c], r12d
cmp r14d, 1
jne 0x18005aae3
cmp word [rax + 0x5e], r14w
jne 0x18005aae3
xor edi, edi
cmp byte [rax + 0x62], dil
je 0x18005aae5
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x64], r12d
jg 0x18005aaaf
lea edx, [rdi + 0x4d]
mov r9d, ebp
mov r8d, r13d
mov rcx, rbx
mov dword [rsp + 0x20], edi
call fcn.18003a660
mov rax, qword [rsp + 0x40]
jmp 0x18005aae5
lea rcx, [r12 + r12*2]
lea eax, [r12 + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
mov word [rax + rcx*8], 0x4d
mov rax, qword [rsp + 0x40]
jmp 0x18005aae5
xor edi, edi
mov esi, edi
test r14d, r14d
jle 0x18005ac98
mov r12, r15
mov r15d, dword [rsp + 0xf0]
mov r13, rdi
nop
mov rdx, qword [rax + 0x40]
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [r13 + rdx]
call fcn.18005fa10
mov rcx, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov rbp, rax
cmp dword [rcx + 0x64], edx
jg 0x18005ab41
mov r9d, dword [rsp + 0x3c]
mov r8d, esi
mov edx, reloc.WS2_32.dll_shutdown
mov rcx, rbx
mov dword [rsp + 0x20], edi
call fcn.18003a660
jmp 0x18005ab6f
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov edx, dword [rsp + 0x3c]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
mov word [rax + rcx*8], reloc.WS2_32.dll_shutdown
mov eax, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x38]
mov r9d, esi
mov edx, gethostbyaddr
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.18003a6c0
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x64], edi
jg 0x18005abb9
mov r8d, dword [rsp + 0x30]
xor r9d, r9d
lea eax, [rsi + r15]
lea edx, [r9 + 0x4e]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.18003a660
mov edi, eax
jmp 0x18005abef
mov rcx, qword [rbx + 8]
lea rdx, [rdi + rdi*2]
lea eax, [rdi + 1]
mov dword [rbx + 0x3c], eax
mov eax, dword [rsp + 0x30]
xor r8d, r8d
mov dword [rcx + rdx*8 + 4], eax
lea eax, [rsi + r15]
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 8], r8d
mov qword [rcx + rdx*8 + 0x10], r8
mov word [rcx + rdx*8], 0x4e
mov dword [rcx + rdx*8 + 0xc], eax
mov rcx, qword [rbx]
mov eax, edi
cmp byte [rcx + 0x55], 0
je 0x18005ac09
mov r8, rbp
mov edx, 0xfffffffc
call fcn.18003b100
jmp 0x18005ac47
test edi, edi
jns 0x18005ac12
mov eax, dword [rbx + 0x3c]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18005ac3a
mov r9d, 0xfffffffc
mov r8, rbp
mov rcx, rbx
call fcn.18003b3c0
jmp 0x18005ac47
test rbp, rbp
je 0x18005ac47
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xfc
mov dword [r12], edi
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x18005ac65
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 - 0x15], 0x80
mov rax, qword [rsp + 0x40]
inc esi
add r13, 8
add r12, 4
mov edi, 0
cmp esi, r14d
jl 0x18005ab00
mov r15, qword [rsp + 0x78]
mov ebp, dword [rsp + 0x68]
mov r12d, dword [rsp + 0x6c]
mov r13d, dword [rsp + 0xf0]
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18005acc0
mov r9d, dword [rsp + 0x3c]
mov r8d, r14d
mov edx, reloc.WS2_32.dll_shutdown
mov rcx, rbx
mov dword [rsp + 0x20], edi
call fcn.18003a660
jmp 0x18005acef
mov edx, dword [rsp + 0x3c]
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], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
mov word [rax + rcx*8], reloc.WS2_32.dll_shutdown
mov edx, ebp
mov rcx, rbx
call fcn.18003a830
mov r11d, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
dec r11d
lea ecx, [r12 - 1]
mov dword [rax + 0x6c], r11d
mov edx, dword [rbx + 0x3c]
test ecx, ecx
jns 0x18005ad17
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x18005ad29
lea rax, [0x1802f0540]
jmp 0x18005ad38
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
test r14d, r14d
jle 0x18005adb9
mov ebp, dword [rsp + 0x38]
mov rsi, r15
nop word [rax + rax]
mov ecx, dword [rbx + 0x3c]
mov edx, dword [rsi]
mov rax, qword [rbx + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov r8d, dword [rbx + 0x3c]
test edx, edx
jns 0x18005ad6a
lea edx, [r8 - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x18005ad7c
lea rax, [0x1802f0540]
jmp 0x18005ad8b
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], r8d
lea eax, [rdi + r13]
mov r9d, edi
mov r8d, ebp
mov edx, gethostbyaddr
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.18003a6c0
inc edi
add rsi, 4
cmp edi, r14d
jl 0x18005ad50
mov ebp, dword [rsp + 0x68]
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18005addc
movsxd rax, ebp
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
mov rsi, qword [rsp + 0x70]
dec eax
mov dword [rdx + 0x6c], eax
cmp qword [rsi + 0x290], 0
je 0x18005ae00
mov rdx, r15
mov rcx, rsi
call fcn.180017190
jmp 0x18005ae33
cmp r15, qword [rsi + 0x178]
jb 0x18005ae2b
cmp r15, qword [rsi + 0x180]
jae 0x18005ae2b
mov rax, qword [rsi + 0x170]
mov qword [r15], rax
dec dword [rsi + 0x158]
mov qword [rsi + 0x170], r15
jmp 0x18005ae33
mov rcx, r15
call fcn.180017120
mov rbp, qword [rsp + 0x40]
mov edi, dword [rsp + 0x5c]
mov r15d, dword [rsp + 0x30]
mov esi, dword [rsp + 0x38]
mov rax, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov r14d, dword [rsp + 0x50]
cmp dword [rax + 0x64], edx
jg 0x18005ae74
mov edx, 0x23
mov r9d, r14d
mov rcx, rbx
lea r8d, [rdx - 0x22]
mov dword [rsp + 0x20], r15d
call fcn.18003a660
mov edx, eax
jmp 0x18005aea7
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
xor r8d, r8d
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r8
mov word [rax + rcx*8], 0x23
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x18005aec3
lea r8, [0x1802b6260]
mov edx, 0xfffffffb
call fcn.18003b100
jmp 0x18005af08
test edx, edx
jns 0x18005aecc
mov edx, dword [rbx + 0x3c]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18005aef9
lea r8, [0x1802b6260]
mov r9d, 0xfffffffb
mov rcx, rbx
call fcn.18003b3c0
jmp 0x18005af08
lea rax, [0x1802b6260]
mov byte [rdx + 1], 0xfb
mov qword [rdx + 0x10], rax
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x18005af22
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 - 0x15], 2
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18005af4b
xor eax, eax
mov r9d, r12d
mov r8d, esi
lea edx, [rax + 7]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.18003a660
xor r12d, r12d
jmp 0x18005af7a
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], r12d
xor r12d, r12d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov word [rax + rcx*8], 7
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov r8d, dword [rsp + 0x48]
mov edx, r14d
mov rcx, rbx
call fcn.18005a460
mov rax, qword [rbx + 0x30]
movsxd r11, dword [rbx + 0x3c]
cmp dword [rax + 0x64], r11d
jg 0x18005afb9
mov r8d, dword [rsp + 0x4c]
mov r9d, 3
mov rcx, rbx
lea edx, [r9 + 0x2e]
mov dword [rsp + 0x20], r15d
call fcn.18003a660
mov r11d, eax
jmp 0x18005afed
mov edx, dword [rsp + 0x4c]
lea rcx, [r11 + r11*2]
lea eax, [r11 + 1]
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], 3
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r12
mov word [rax + rcx*8], gethostbyaddr
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x18005b006
lea r8, [0x1802bd254]
xor edx, edx
call fcn.18003b100
jmp 0x18005b033
test r11d, r11d
jns 0x18005b012
mov r11d, dword [rbx + 0x3c]
dec r11d
movsxd rax, r11d
lea r8, [0x1802bd254]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rdx, [rax + rcx*8]
mov rcx, rbx
call fcn.18003b3c0
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18005b061
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0xe8]
mov edx, 0x4a
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.18003a660
jmp 0x18005b097
mov edx, dword [rsp + 0xe8]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x34]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov word [rax + rcx*8], 0x4a
mov dword [rax + rcx*8 + 8], edx
mov eax, dword [rsp + 0x34]
mov r8d, dword [rsp + 0xe8]
mov r9d, r15d
mov edx, 0x4b
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.18003a6c0
mov r11, qword [rbx]
cmp byte [r11 + 0x55], 0
jne 0x18005b0d2
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 - 0x15], 8
mov ecx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov edx, dword [rbx + 0x3c]
test edi, edi
jns 0x18005b0e8
lea edi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x18005b0fd
lea rax, [0x1802f0540]
mov dword [rax + 8], edx
jmp 0x18005b11b
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
jmp 0x18005b11b
mov rbp, qword [rsp + 0x40]
mov r15d, dword [rsp + 0x30]
mov rax, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xd0]
mov rbp, qword [rbp + 0x28]
mov qword [rsp + 0x40], rbp
test rbp, rbp
jne 0x18005a768
cmp qword [rsp + 0xe0], 0
jne 0x18005b374
cmp byte [rsp + 0x54], 0
je 0x18005b374
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
xor esi, esi
cmp dword [rax + 0x64], ecx
jg 0x18005b189
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x64]
lea edx, [rsi + 0x32]
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.18003a660
jmp 0x18005b1bb
mov edx, dword [rsp + 0x64]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x48]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov word [rax + rcx*8], getservbyname
mov dword [rax + rcx*8 + 8], edx
mov r8d, dword [rsp + 0x48]
mov edx, 0x2e
mov rcx, rbx
call fcn.18003a7c0
mov rcx, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov edi, eax
cmp dword [rcx + 0x64], edx
jg 0x18005b1f6
mov r9d, dword [rsp + 0x58]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0x19]
mov dword [rsp + 0x20], esi
call fcn.18003a660
jmp 0x18005b224
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov edx, dword [rsp + 0x58]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov word [rax + rcx*8], 0x19
mov rax, qword [rbx + 0x30]
movsxd r10, dword [rbx + 0x3c]
cmp dword [rax + 0x64], r10d
jg 0x18005b253
mov r8d, dword [rsp + 0x4c]
mov r9d, 3
mov rcx, rbx
lea edx, [r9 + 0x2e]
mov dword [rsp + 0x20], r15d
call fcn.18003a660
mov r10d, eax
jmp 0x18005b287
mov edx, dword [rsp + 0x4c]
lea rcx, [r10 + r10*2]
lea eax, [r10 + 1]
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], 3
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], rsi
mov word [rax + rcx*8], gethostbyaddr
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x18005b2a0
lea r8, [0x1802bd254]
xor edx, edx
call fcn.18003b100
jmp 0x18005b2cd
test r10d, r10d
jns 0x18005b2ac
mov r10d, dword [rbx + 0x3c]
dec r10d
movsxd rax, r10d
lea r8, [0x1802bd254]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rdx, [rax + rcx*8]
mov rcx, rbx
call fcn.18003b3c0
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18005b2fa
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0xe8]
mov edx, 0x4a
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.18003a660
jmp 0x18005b32f
mov edx, dword [rsp + 0xe8]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x34]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov word [rax + rcx*8], 0x4a
mov dword [rax + rcx*8 + 8], edx
mov eax, dword [rsp + 0x34]
mov r8d, dword [rsp + 0xe8]
mov r9d, r15d
mov edx, 0x4b
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.18003a6c0
mov r11, qword [rbx]
cmp byte [r11 + 0x55], 0
jne 0x18005b36a
movsxd rax, dword [rbx + 0x3c]
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov byte [rax + rdx*8 - 0x15], 8
mov edx, edi
mov rcx, rbx
call fcn.18003b0c0
mov rdi, qword [rsp + 0x88]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret