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

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov dword [r11 + 0x18], r8d
push rdi
push r13
sub rsp, 0x78
mov qword [r11 - 0x18], rbx
mov rbx, qword [rcx + 0x10]
mov qword [r11 - 0x20], rbp
xor eax, eax
mov qword [r11 - 0x28], rsi
mov ebp, r9d
cmp r8d, ebp
mov qword [r11 - 0x38], r14
lea r9, [r11 - 0x58]
mov qword [r11 - 0x40], r15
mov r15d, r8d
lea r8d, [rax + 3]
cmove r9, rax
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x30], eax
call fcn.180053700
mov rcx, rsi
mov r13d, eax
call fcn.180050fb0
movzx ecx, byte [rdi + 0x1f]
inc dword [rdi + 0x78]
mov byte [rsp + 0x90], al
test cl, cl
jne 0x180054546
inc dword [rdi + 0x58]
mov r14d, dword [rdi + 0x58]
jmp 0x180054553
dec cl
movzx eax, cl
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0x28]
mov rdx, qword [rsi + 0x10]
mov r8d, r14d
mov rcx, rdi
mov qword [rsp + 0x58], r12
call fcn.180056ec0
cmp r13d, 5
jne 0x1800549df
mov rdx, qword [rsi + 0x10]
mov r15, qword [rsi + 0x20]
mov rcx, rdi
call fcn.180050de0
mov rcx, rbx
mov rbp, rax
call fcn.18003ad30
mov esi, dword [rsp + 0xa0]
xor r8d, r8d
mov dword [rsp + 0x98], eax
mov r12d, r8d
cmp dword [rsp + 0xa8], esi
je 0x1800545e2
movzx ecx, byte [rdi + 0x1f]
test cl, cl
jne 0x1800545ba
inc dword [rdi + 0x58]
mov r12d, dword [rdi + 0x58]
jmp 0x1800545c7
dec cl
movzx eax, cl
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0x28]
mov r9d, r14d
mov r8d, r14d
mov edx, 0x55
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.18003a6c0
xor r8d, r8d
cmp dword [r15], 0
mov r13d, r8d
jle 0x1800548a5
mov rax, r8
mov qword [rsp + 0x38], rax
nop word [rax + rax]
mov rdx, qword [r15 + 8]
lea r8, [rsp + 0x34]
mov rcx, rdi
mov rdx, qword [rax + rdx]
call fcn.180056d60
mov esi, eax
test r12d, r12d
je 0x1800546a4
mov rcx, qword [r15 + 8]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + rcx]
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, 0x9c
je 0x18005463d
cmp cl, 0x9b
jne 0x180054643
mov rax, qword [rax + 0x10]
jmp 0x180054630
movzx ecx, byte [rax]
cmp cl, 0x9d
jne 0x18005464f
movzx ecx, byte [rax + 0x36]
cmp cl, 0x61
je 0x1800546a4
cmp cl, 0x83
jbe 0x18005468c
cmp cl, 0x86
jbe 0x1800546a4
cmp cl, 0x98
jne 0x18005468c
test dword [rax + 4], 0x100000
jne 0x18005468c
movzx ecx, word [rax + 0x30]
test cx, cx
js 0x1800546a4
mov rax, qword [rax + 0x40]
movsx rdx, cx
mov rcx, qword [rax + 8]
shl rdx, 5
cmp byte [rdx + rcx + 0x18], 0
jne 0x1800546a4
mov r9d, esi
mov r8d, r12d
mov edx, 0x55
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.18003a6c0
mov eax, dword [r15]
dec eax
cmp r13d, eax
jl 0x180054760
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0xa8], eax
jne 0x180054760
mov r9d, eax
mov r8d, r14d
mov edx, 0x4e
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.18003a6c0
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x1800546f5
mov r8, rbp
mov edx, 0xfffffffc
call fcn.18003b100
jmp 0x180054733
test eax, eax
jns 0x1800546fe
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 0x180054726
mov r9d, 0xfffffffc
mov r8, rbp
mov rcx, rbx
call fcn.18003b3c0
jmp 0x180054733
test rbp, rbp
je 0x180054733
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xfc
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x18005483d
movsxd rax, dword [rbx + 0x3c]
movzx edx, byte [rsp + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
or dl, 0x10
mov byte [rax + rcx*8 - 0x15], dl
jmp 0x18005483d
mov rax, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], edx
jg 0x18005478d
mov r9d, dword [rsp + 0x98]
mov r8d, r14d
mov edx, 0x4f
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.18003a660
mov edx, eax
jmp 0x1800547c5
mov r8d, dword [rsp + 0x98]
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], r14d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], 0
mov word [rax + rcx*8], 0x4f
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x1800547dd
mov r8, rbp
mov edx, 0xfffffffc
call fcn.18003b100
jmp 0x18005481c
test edx, edx
jns 0x1800547e6
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 0x18005480f
mov r9d, 0xfffffffc
mov r8, rbp
mov rcx, rbx
call fcn.18003b3c0
jmp 0x18005481c
test rbp, rbp
je 0x18005481c
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xfc
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x18005483d
movsxd rax, dword [rbx + 0x3c]
mov rcx, qword [rbx + 8]
lea rdx, [rax + rax*2]
movzx eax, byte [rsp + 0x90]
mov byte [rcx + rdx*8 - 0x15], al
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x180054881
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x180054881
xor ecx, ecx
lea rax, [rdi + 0x90]
nop dword [rax]
cmp dword [rax + 0xc], edx
je 0x18005487d
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x180054860
movzx eax, r8b
mov dword [rdi + rax*4 + 0x28], edx
inc byte [rdi + 0x1f]
jmp 0x180054881
mov byte [rax + 6], 1
mov rax, qword [rsp + 0x38]
inc r13d
add rax, 0x28
mov qword [rsp + 0x38], rax
cmp r13d, dword [r15]
jl 0x180054600
mov esi, dword [rsp + 0xa0]
xor r8d, r8d
test r12d, r12d
je 0x180054962
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x1800548dd
mov r9d, dword [rsp + 0xa8]
mov dword [rsp + 0x20], r8d
mov edx, 0x4c
mov r8d, r12d
mov rcx, rbx
call fcn.18003a660
xor r8d, r8d
jmp 0x180054910
mov edx, dword [rsp + 0xa8]
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], r12d
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], 0x4c
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180054936
mov dword [rsp + 0x20], r8d
xor r8d, r8d
mov r9d, esi
lea edx, [r8 + 0xd]
mov rcx, rbx
call fcn.18003a660
jmp 0x180054962
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], esi
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov word [rax + rcx*8], select
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18005498a
movsxd rax, dword [rsp + 0x98]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
xor r13d, r13d
dec eax
mov dword [rdx + 0x6c], eax
test r12d, r12d
je 0x180054d5e
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x180054d5e
mov ecx, r13d
lea rax, [rdi + 0x90]
cmp dword [rax + 0xc], r12d
je 0x1800549d6
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1800549b5
movzx eax, dl
mov dword [rdi + rax*4 + 0x28], r12d
inc byte [rdi + 0x1f]
jmp 0x180054d5e
mov byte [rax + 6], 1
jmp 0x180054d5e
mov rax, qword [rsi + 0x10]
movzx ecx, byte [rax]
cmp cl, 0x9c
je 0x1800549f0
cmp cl, 0x9b
jne 0x1800549f6
mov rax, qword [rax + 0x10]
jmp 0x1800549e3
movzx ecx, byte [rax]
cmp cl, 0x9d
jne 0x180054a02
movzx ecx, byte [rax + 0x36]
lea r12, [0x1802f0540]
cmp cl, 0x61
je 0x180054b74
cmp cl, 0x83
jbe 0x180054a56
cmp cl, 0x86
jbe 0x180054b74
cmp cl, 0x98
jne 0x180054a56
test dword [rax + 4], 0x100000
jne 0x180054a56
movzx ecx, word [rax + 0x30]
test cx, cx
js 0x180054b74
mov rax, qword [rax + 0x40]
movsx rdx, cx
mov rcx, qword [rax + 8]
shl rdx, 5
cmp byte [rdx + rcx + 0x18], 0
jne 0x180054b74
cmp ebp, r15d
jne 0x180054aba
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180054a88
mov r9d, ebp
mov r8d, r14d
mov edx, 0x4c
mov rcx, rbx
mov dword [rsp + 0x20], 0
call fcn.18003a660
jmp 0x180054b74
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor edx, edx
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], ebp
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov word [rax + rcx*8], 0x4c
jmp 0x180054b74
mov r8d, r14d
mov edx, 0x4d
mov rcx, rbx
call fcn.18003a7c0
mov rcx, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov r8d, dword [rsi + 0x2c]
mov ebp, eax
cmp dword [rcx + 0x64], edx
jg 0x180054af7
mov r9d, r15d
mov edx, WSASetLastError
mov rcx, rbx
mov dword [rsp + 0x20], 0
call fcn.18003a660
jmp 0x180054b25
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
xor edx, edx
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], r15d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov word [rax + rcx*8], WSASetLastError
mov edx, dword [rsp + 0xa8]
mov rcx, rbx
call fcn.18003a830
mov r11d, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
dec r11d
mov dword [rax + 0x6c], r11d
mov edx, dword [rbx + 0x3c]
test ebp, ebp
jns 0x180054b4d
lea ebp, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x180054b5b
mov rax, r12
jmp 0x180054b6a
movsxd rax, ebp
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rax, [rax + rcx*8]
mov ebp, dword [rsp + 0xa8]
mov dword [rax + 8], edx
mov rax, qword [rbx + 0x30]
cmp r13d, 1
jne 0x180054bee
movsxd rcx, dword [rbx + 0x3c]
xor r13d, r13d
cmp dword [rax + 0x64], ecx
jg 0x180054ba3
lea edx, [r13 + 0x26]
mov r9d, r15d
mov r8d, r14d
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.18003a660
jmp 0x180054bd0
lea rdx, [rcx + rcx*2]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rdx*8 + 3], 0
mov dword [rax + rdx*8 + 4], r14d
mov dword [rax + rdx*8 + 8], r15d
mov dword [rax + rdx*8 + 0xc], r13d
mov qword [rax + rdx*8 + 0x10], r13
mov word [rax + rdx*8], 0x26
mov r8d, dword [rsi + 0x2c]
mov r9d, r15d
mov edx, 0x46
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call fcn.18003a6c0
jmp 0x180054d5e
movsxd rdx, dword [rbx + 0x3c]
xor r13d, r13d
cmp dword [rax + 0x64], edx
jg 0x180054c16
lea r9d, [r13 + 1]
lea edx, [r13 + 0x30]
mov r8d, r14d
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.18003a660
mov edx, eax
jmp 0x180054c42
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], r14d
mov qword [rax + rcx*8 + 8], 1
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], gethostbyaddr
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x180054c5f
lea r8, [rsp + 0x90]
mov edx, 1
call fcn.18003b100
jmp 0x180054c8d
test edx, edx
jns 0x180054c68
mov edx, dword [rbx + 0x3c]
dec edx
movsxd rax, edx
lea r8, [rsp + 0x90]
mov r9d, 1
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rdx, [rax + rcx*8]
mov rcx, rbx
call fcn.18003b3c0
cmp dword [rsp + 0x30], 0
mov r8d, dword [rsi + 0x2c]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r14d
mov rcx, rbx
jne 0x180054cba
mov r9d, r15d
mov edx, 0x44
call fcn.18003ac10
jmp 0x180054d5e
xor r9d, r9d
lea edx, [r9 + 0x45]
call fcn.18003ac10
mov rcx, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov r8d, dword [rsp + 0x30]
mov esi, eax
cmp dword [rcx + 0x64], edx
jg 0x180054cf1
mov r9d, ebp
mov edx, 0x4c
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.18003a660
jmp 0x180054d1d
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], r8d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], 0x4c
mov edx, r15d
mov rcx, rbx
call fcn.18003a830
mov r11d, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
dec r11d
mov dword [rax + 0x6c], r11d
mov edx, dword [rbx + 0x3c]
test esi, esi
jns 0x180054d41
lea esi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x180054d59
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea r12, [rax + rcx*8]
mov dword [r12 + 8], edx
mov r15, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
test r14d, r14d
je 0x180054db2
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x180054db2
mov ecx, r13d
lea rax, [rdi + 0x90]
nop
cmp dword [rax + 0xc], r14d
je 0x180054dae
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x180054d90
movzx eax, dl
mov dword [rdi + rax*4 + 0x28], r14d
inc byte [rdi + 0x1f]
jmp 0x180054db2
mov byte [rax + 6], 1
dec dword [rdi + 0x78]
mov r14, qword [rsp + 0x50]
lea rcx, [rdi + 0x9c]
mov r8d, 0xa
mov edx, dword [rcx]
test edx, edx
je 0x180054df4
mov eax, dword [rdi + 0x78]
cmp dword [rcx - 4], eax
jle 0x180054df4
cmp byte [rcx - 6], 0
je 0x180054df1
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x180054ded
movzx eax, al
mov dword [rdi + rax*4 + 0x28], edx
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r13d
add rcx, 0x14
dec r8
jne 0x180054dc7
add rsp, 0x78
pop r13
pop rdi
ret