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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov rax, rsp
sub rsp, 0x88
mov r10, qword [rcx]
mov qword [rax + 0x20], rbx
mov qword [rax - 8], rbp
mov qword [rax - 0x10], rsi
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r13
mov r13, qword [rdx + 0x18]
mov qword [rax - 0x30], r14
mov eax, dword [rcx + 0x50]
mov dword [rsp + 0x44], eax
inc eax
xor r14d, r14d
mov dword [rsp + 0x40], eax
inc eax
mov ebp, r8d
mov dword [rcx + 0x50], eax
mov r9, qword [rdx + 0x30]
mov rbx, rdx
test r9, r9
mov rsi, rcx
mov r12d, 0xfff0bdc0
je 0x498d54
mov ecx, dword [r10 + 0x28]
mov r12d, r14d
test ecx, ecx
jle 0x498d54
mov rax, qword [r10 + 0x20]
add rax, 0x18
cmp qword [rax], r9
je 0x498d54
inc r12d
add rax, 0x20
cmp r12d, ecx
jl 0x498d43
mov rax, qword [r10 + 0x20]
movsxd rcx, r12d
shl rcx, 5
cmp byte [r10 + 0xa1], r14b
mov rdx, qword [rcx + rax]
jne 0x498df2
cmp byte [rsi + 0x1f3], r14b
jne 0x498df2
mov r11, qword [r10 + 0x178]
test r11, r11
je 0x498df2
mov rax, qword [rsi + 0x230]
mov r8, qword [rbx]
mov rcx, qword [r10 + 0x180]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea edx, [r9 + 0x1b]
call r11
cmp eax, 1
jne 0x498dca
lea rdx, str.not_authorized
mov rcx, rsi
call fcn.00462100
mov dword [rsi + 0x18], reloc.WS2_32.dll_socket
jmp 0x49961d
test eax, eax
je 0x498df2
cmp eax, 2
je 0x49961d
lea rdx, str.authorizer_malfunction
mov rcx, rsi
call fcn.00462100
mov dword [rsi + 0x18], 1
jmp 0x49961d
mov rax, qword [r13]
mov r8d, dword [r13 + 0x3c]
mov r9b, 1
mov edx, r12d
mov rcx, rsi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x20], rax
call fcn.00446990
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x498eaf
mov rcx, rsi
call fcn.0044f4c0
test rax, rax
mov rdi, rax
mov qword [rsi + 0x10], rax
je 0x498e90
movsxd rbx, dword [rax + 0x3c]
mov rax, qword [rax + 0x30]
cmp dword [rax + 0x60], ebx
jg 0x498e51
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x498e88
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbx + rbx*2]
mov rbx, qword [rsp + 0x98]
mov byte [rax + rcx*8], 0x99
mov byte [rax + rcx*8 + 3], r14b
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov byte [rax + rcx*8 + 1], r14b
jmp 0x498e90
mov rbx, qword [rsp + 0x98]
cmp qword [rsi + 0x1c0], r14
jne 0x498ea6
mov rax, qword [rsi]
test byte [rax + 0x4c], 8
jne 0x498ea6
mov byte [rsi + 0x23], 1
test rdi, rdi
je 0x499618
test ebp, ebp
mov qword [rsp + 0x50], r15
js 0x498ebd
mov r15d, ebp
jmp 0x498ec1
mov r15d, dword [rbx + 0x58]
mov rdx, rbx
mov rcx, rsi
call fcn.00481820
mov r14, rax
mov eax, dword [rsi + 0x50]
test r14, r14
lea ecx, [rax + 1]
mov dword [rsp + 0x90], eax
mov dword [rsi + 0x50], ecx
je 0x498ee7
inc dword [r14]
movzx ebp, word [rbx + 0x5e]
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x498f10
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x498f10
mov ebx, 1
jmp 0x498f42
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
mov edx, dword [rsp + 0x90]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 4], edx
xor edx, edx
mov byte [rax + rcx*8], Ordinal_60
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], ebp
mov dword [rax + rcx*8 + 8], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
mov rbp, qword [rdi + 8]
mov rcx, qword [rdi]
test rbp, rbp
je 0x498fa0
cmp byte [rcx + 0x50], 0
jne 0x498fa0
test ebx, ebx
jns 0x498f5d
mov ebx, dword [rdi + 0x3c]
dec ebx
movsxd rax, ebx
lea rbx, [rax + rax*2]
movsx edx, byte [rbp + rbx*8 + 1]
mov r8, qword [rbp + rbx*8 + 0x10]
call fcn.00441fd0
xor eax, eax
test r14, r14
mov qword [rbp + rbx*8 + 0x10], rax
jne 0x498f8a
mov qword [rbp + rbx*8 + 0x10], rax
mov byte [rbp + rbx*8 + 1], al
jmp 0x498fad
mov qword [rbp + rbx*8 + 0x10], r14
mov byte [rbp + rbx*8 + 1], 0xfa
jmp 0x498fad
mov r8, r14
mov edx, 0xfffffffa
call fcn.00441fd0
mov ebx, dword [rsp + 0x44]
mov r9, r13
mov r8d, r12d
mov rcx, rsi
mov edx, ebx
mov dword [rsp + 0x20], getservbyname
call fcn.00490560
mov rax, qword [rdi + 0x30]
movsxd rbp, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebp
jg 0x498ff0
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x498ff0
mov ebp, 1
xor edx, edx
jmp 0x49901c
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
lea rcx, [rbp + rbp*2]
xor edx, edx
mov byte [rax + rcx*8], WSAGetLastError
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
movzx eax, byte [rsi + 0x1f]
test al, al
jne 0x49902d
inc dword [rsi + 0x54]
mov r13d, dword [rsi + 0x54]
jmp 0x49903a
dec al
movzx eax, al
mov byte [rsi + 0x1f], al
mov r13d, dword [rsi + rax*4 + 0x24]
mov dword [rsp + 0x38], edx
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
mov rdx, qword [rsp + 0x98]
mov r9d, r13d
mov r8d, ebx
mov rcx, rsi
call fcn.00481a80
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x499085
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x4990bd
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
mov edx, dword [rsp + 0x90]
lea rcx, [rbx + rbx*2]
xor r10d, r10d
mov byte [rax + rcx*8], WSAGetLastError
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
mov byte [rax + rcx*8 + 1], r10b
jmp 0x4990c0
xor r10d, r10d
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x499146
mov r8, qword [rsi + 0x10]
mov ecx, 0xffffffff
sub ecx, eax
mov r9, qword [r8 + 0x30]
js 0x4990ef
mov rdx, qword [r9 + 0x80]
test rdx, rdx
je 0x4990ef
mov eax, dword [r8 + 0x3c]
movsxd rcx, ecx
mov dword [rdx + rcx*4], eax
mov eax, dword [r8 + 0x3c]
lea rcx, [rsi + 0x94]
mov r8d, 0xa
dec eax
mov dword [r9 + 0x64], eax
dec dword [rsi + 0x70]
nop
nop
mov edx, dword [rcx]
test edx, edx
je 0x49913d
mov eax, dword [rsi + 0x70]
cmp dword [rcx - 4], eax
jle 0x49913d
cmp byte [rcx - 6], 0
je 0x49913a
movzx eax, byte [rsi + 0x1f]
cmp al, 8
jae 0x499136
movzx eax, al
mov dword [rsi + rax*4 + 0x24], edx
inc byte [rsi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r10d
add rcx, 0x14
dec r8
jne 0x499110
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x499164
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x499196
inc dword [rdi + 0x3c]
mov rcx, qword [rdi + 8]
mov eax, dword [rsp + 0x44]
lea rdx, [rbx + rbx*2]
mov dword [rcx + rdx*8 + 4], eax
lea eax, [rbp + 1]
mov byte [rcx + rdx*8], 9
mov dword [rcx + rdx*8 + 8], eax
xor eax, eax
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 0xc], eax
mov qword [rcx + rdx*8 + 0x10], rax
mov byte [rcx + rdx*8 + 1], al
mov edx, dword [rdi + 0x3c]
cmp edx, ebp
jbe 0x4991ab
mov eax, ebp
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
cmp dword [rsp + 0xa0], 0
mov dword [rax + 0x64], ecx
jge 0x49920c
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x4991df
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x49920c
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
xor edx, edx
mov byte [rax + rcx*8], 0x76
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x499234
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x499234
mov ebx, 1
xor r12d, r12d
jmp 0x499267
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
mov edx, dword [rsp + 0x40]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 0xc], r12d
xor r12d, r12d
mov byte [rax + rcx*8], reloc.WS2_32.dll_getservbyname
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r15d
mov qword [rax + rcx*8 + 0x10], r12
mov byte [rax + rcx*8 + 1], r12b
mov rbp, qword [rdi + 8]
mov rcx, qword [rdi]
test rbp, rbp
je 0x4992c0
cmp byte [rcx + 0x50], 0
jne 0x4992c0
test ebx, ebx
jns 0x499282
mov ebx, dword [rdi + 0x3c]
dec ebx
movsxd rax, ebx
lea rbx, [rax + rax*2]
movsx edx, byte [rbp + rbx*8 + 1]
mov r8, qword [rbp + rbx*8 + 0x10]
call fcn.00441fd0
test r14, r14
mov qword [rbp + rbx*8 + 0x10], r12
jne 0x4992ae
mov qword [rbp + rbx*8 + 0x10], r12
mov byte [rbp + rbx*8 + 1], r14b
jmp 0x4992cd
mov qword [rbp + rbx*8 + 0x10], r14
mov byte [rbp + rbx*8 + 1], 0xfa
jmp 0x4992cd
mov r8, r14
mov edx, 0xfffffffa
call fcn.00441fd0
mov r8, qword [rdi + 8]
mov eax, 2
test r8, r8
je 0x4992f9
cmp dword [rsp + 0xa0], 0
mov edx, r12d
cmovge edx, eax
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
or dl, 1
mov byte [r8 + rcx*8 - 0x15], dl
mov rax, qword [rdi + 0x30]
movsxd rbp, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebp
jg 0x49931e
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x49931e
mov ebp, 1
jmp 0x499352
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov edx, dword [rsp + 0x90]
lea rcx, [rbp + rbp*2]
mov byte [rax + rcx*8], 0x6a
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], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov byte [rax + rcx*8 + 1], 0
mov r15, qword [rsp + 0x98]
cmp byte [r15 + 0x62], 0
je 0x4993bc
test r14, r14
je 0x4993bc
mov ebx, dword [rdi + 0x3c]
xor r8d, r8d
mov rcx, rdi
lea r9d, [rbx + 3]
lea edx, [r8 + 0x10]
call fcn.00441dd0
movzx eax, word [r15 + 0x5e]
mov r14d, dword [rsp + 0x90]
mov r12d, dword [rdi + 0x3c]
mov dword [rsp + 0x28], eax
lea r9d, [rbx + 3]
mov r8d, r14d
mov edx, 0x63
mov rcx, rdi
mov dword [rsp + 0x20], r13d
call fcn.0044f840
mov r8, r15
mov edx, 2
mov rcx, rsi
call fcn.0045b4e0
jmp 0x4993c8
mov r12d, dword [rdi + 0x3c]
mov r14d, dword [rsp + 0x90]
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x4993e6
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x49941e
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov r15d, dword [rsp + 0x40]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x64
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
jmp 0x499423
mov r15d, dword [rsp + 0x40]
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x499441
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x499475
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], WSAGetLastError
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], 1
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x49948b
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x10
test r13d, r13d
je 0x4994be
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x4994be
xor ecx, ecx
lea rax, [rsi + 0x88]
cmp dword [rax + 0xc], r13d
je 0x49950c
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x4994a2
movzx eax, dl
mov dword [rsi + rax*4 + 0x24], r13d
inc byte [rsi + 0x1f]
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x4994dc
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x499512
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
xor esi, esi
mov byte [rax + rcx*8], 5
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], sil
jmp 0x499514
mov byte [rax + 6], 1
jmp 0x4994be
xor esi, esi
mov edx, dword [rdi + 0x3c]
cmp edx, ebp
jbe 0x499529
mov eax, ebp
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x499553
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x499581
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov edx, dword [rsp + 0x44]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x3d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], 0
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x49959f
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x4995ca
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x3d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], 0
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
mov r15, qword [rsp + 0x50]
cmp dword [rax + 0x60], ebx
jg 0x4995ed
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x499618
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x3d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], 0
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x88
ret