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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0xb8
mov qword [rax - 8], rbx
mov rbx, qword [rsp + 0xf0]
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov rsi, qword [rcx + 0x10]
mov qword [rax - 0x20], rdi
mov qword [rax - 0x30], r13
mov r13, qword [rsp + 0xe8]
mov qword [rax - 0x40], r15
test r13, r13
mov eax, dword [rbx + 4]
mov r15d, r9d
mov r9, rdx
movzx edx, byte [rbx]
mov rdi, r8
mov dword [rsp + 0xd8], eax
mov rbp, rcx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], edx
je 0x491add
movzx eax, byte [r13 + 1]
mov dword [rsp + 0xe8], eax
jmp 0x491ae6
xor eax, eax
mov dword [rsp + 0xe8], eax
mov qword [rsp + 0x90], r12
mov r12, qword [rsp + 0xe0]
test r12, r12
je 0x491b0d
cmp qword [r12], 0
jne 0x491b29
xor r12d, r12d
mov qword [rsp + 0xe0], r12
test eax, eax
jne 0x491b29
mov r8d, dword [rsp + 0xf8]
mov edx, dword [r9 + 0x10]
mov rcx, rsi
call fcn.00449800
mov edx, dword [rsp + 0x48]
mov eax, dword [rbx + 8]
mov qword [rsp + 0x80], r14
mov r14d, dword [rdi]
test eax, eax
mov dword [rsp + 0x44], r14d
jne 0x491b6e
test r12, r12
je 0x491b60
test byte [r12 + 0x1c], 1
mov rax, qword [r12]
mov ecx, dword [rax]
mov dword [rsp + 0x40], ecx
jne 0x491b5d
inc ecx
mov dword [rsp + 0x40], ecx
add dword [rbp + 0x54], ecx
mov eax, dword [rbp + 0x54]
inc eax
mov dword [rbx + 8], eax
add dword [rbp + 0x54], r14d
jmp 0x491b7f
mov ecx, dword [rbp + 0x54]
add eax, r14d
cmp eax, ecx
jle 0x491b7f
lea eax, [rcx + r14]
mov dword [rbp + 0x54], eax
test r15d, r15d
mov r12d, dword [rbx + 8]
mov dword [rbx + 0xc], r14d
mov dword [rsp + 0x60], r12d
js 0x491bfa
xor ebx, ebx
test r14d, r14d
jle 0x491c24
nop
mov rax, qword [rsi + 0x30]
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x491bbe
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x491bf1
mov rcx, qword [rsi + 8]
inc dword [rsi + 0x3c]
lea rdx, [rdi + rdi*2]
lea eax, [rbx + r12]
mov byte [rcx + rdx*8], Ordinal_50
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], r15d
mov dword [rcx + rdx*8 + 8], ebx
mov qword [rcx + rdx*8 + 0x10], 0
mov dword [rcx + rdx*8 + 0xc], eax
mov byte [rcx + rdx*8 + 1], 0
inc ebx
cmp ebx, r14d
jl 0x491ba0
jmp 0x491c24
cmp edx, 3
je 0x491c24
cmp edx, 9
je 0x491c0d
cmp edx, 0xd
je 0x491c0d
xor eax, eax
jmp 0x491c12
mov eax, 1
movzx r9d, al
mov r8d, r12d
mov rdx, rdi
mov rcx, rbp
call fcn.00459f90
cmp dword [rsp + 0xe8], 0
je 0x49207d
movzx ecx, byte [r13 + 1]
dec ecx
je 0x491f22
dec ecx
je 0x491c67
mov r15d, dword [rsp + 0xf8]
mov edx, dword [r13 + 4]
mov r9d, r14d
mov rcx, rbp
mov r8d, r15d
mov dword [rsp + 0x20], r12d
call fcn.004548a0
jmp 0x491f8f
mov eax, dword [rbp + 0x54]
lea r15d, [rax + 1]
add eax, r14d
mov dword [rbp + 0x54], eax
movsxd r14, dword [r13 + 8]
mov dword [rsp + 0x4c], r15d
cmp r14d, dword [rsi + 0x3c]
jge 0x491cbf
mov rbx, qword [rsi + 8]
mov rcx, qword [rsi]
lea rdi, [r14 + r14*2]
movsx edx, byte [rbx + rdi*8 + 1]
mov r8, qword [rbx + rdi*8 + 0x10]
call fcn.00441fd0
xor r11d, r11d
mov qword [rbx + rdi*8], r11
mov qword [rbx + rdi*8 + 8], r11
mov qword [rbx + rdi*8 + 0x10], r11
mov byte [rbx + rdi*8], 0x9a
mov eax, dword [rsi + 0x3c]
dec eax
cmp r14d, eax
jne 0x491cbf
mov dword [rsi + 0x3c], eax
mov ecx, dword [r13 + 8]
test ecx, ecx
jns 0x491ccc
mov ecx, dword [rsi + 0x3c]
dec ecx
mov rax, qword [rsi]
cmp byte [rax + 0x50], 0
je 0x491cde
lea rax, [0x007725d0]
jmp 0x491ced
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
movsxd r14, dword [rsp + 0x44]
xor r8d, r8d
mov byte [rax], Ordinal_30
mov dword [rax + 4], 1
mov dword [rax + 8], r15d
mov eax, dword [rsi + 0x3c]
add eax, r14d
test r14d, r14d
mov edi, r8d
mov dword [rsp + 0xe8], r8d
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], eax
jle 0x491ec2
mov eax, r12d
lea ebx, [r14 - 1]
mov r13d, r15d
sub eax, r15d
mov dword [rsp + 0x64], ebx
mov r14, r8
mov r12d, eax
nop
mov rax, qword [rsp + 0xd0]
mov rcx, rbp
mov rdx, qword [rax + 8]
mov rdx, qword [r14 + rdx]
call fcn.00480040
cmp edi, ebx
mov r15, rax
jge 0x491dba
mov rcx, qword [rsi + 0x30]
movsxd rbx, dword [rsi + 0x3c]
cmp dword [rcx + 0x60], ebx
jg 0x491d81
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x491e12
mov rcx, qword [rsi + 8]
inc dword [rsi + 0x3c]
lea rdx, [rbx + rbx*2]
lea eax, [r12 + r13]
mov byte [rcx + rdx*8], Ordinal_79
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], eax
mov eax, dword [rsp + 0x58]
mov dword [rcx + rdx*8 + 0xc], r13d
mov qword [rcx + rdx*8 + 0x10], 0
mov byte [rcx + rdx*8 + 1], 0
mov dword [rcx + rdx*8 + 8], eax
jmp 0x491e12
mov rax, qword [rsi + 0x30]
movsxd rbx, dword [rsi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x491dd8
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x491e12
mov rcx, qword [rsi + 8]
inc dword [rsi + 0x3c]
lea rdx, [rbx + rbx*2]
lea eax, [r12 + r13]
mov byte [rcx + rdx*8], reloc.WLDAP32.dll_Ordinal_79
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], eax
mov eax, dword [rsp + 0xf8]
mov dword [rcx + rdx*8 + 0xc], r13d
mov qword [rcx + rdx*8 + 0x10], 0
mov byte [rcx + rdx*8 + 1], 0
mov dword [rcx + rdx*8 + 8], eax
mov rbx, qword [rsi + 8]
mov rcx, qword [rsi]
test rbx, rbx
je 0x491e71
cmp byte [rcx + 0x50], 0
jne 0x491e71
mov eax, dword [rsi + 0x3c]
dec eax
cdqe
lea rdi, [rax + rax*2]
movsx edx, byte [rbx + rdi*8 + 1]
mov r8, qword [rbx + rdi*8 + 0x10]
call fcn.00441fd0
xor r8d, r8d
test r15, r15
mov qword [rbx + rdi*8 + 0x10], r8
jne 0x491e5e
mov qword [rbx + rdi*8 + 0x10], r8
mov byte [rbx + rdi*8 + 1], r8b
mov edi, dword [rsp + 0xe8]
jmp 0x491e7e
mov qword [rbx + rdi*8 + 0x10], r15
mov byte [rbx + rdi*8 + 1], 0xfc
mov edi, dword [rsp + 0xe8]
jmp 0x491e7e
mov r8, r15
mov edx, 0xfffffffc
call fcn.00441fd0
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x491e94
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x80
mov ebx, dword [rsp + 0x64]
inc edi
inc r13d
add r14, 0x28
dec qword [rsp + 0x50]
mov dword [rsp + 0xe8], edi
jne 0x491d40
mov r12d, dword [rsp + 0x60]
mov r14d, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x4c]
mov rax, qword [rsi + 0x30]
movsxd rbx, dword [rsi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x491ee4
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x491f73
mov rcx, qword [rsi + 8]
inc dword [rsi + 0x3c]
lea rdx, [rbx + rbx*2]
lea eax, [r14 - 1]
mov dword [rcx + rdx*8 + 8], r15d
mov r15d, dword [rsp + 0xf8]
mov byte [rcx + rdx*8], reloc.WLDAP32.dll_Ordinal_33
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], r12d
mov dword [rcx + rdx*8 + 0xc], eax
mov qword [rcx + rdx*8 + 0x10], 0
mov byte [rcx + rdx*8 + 1], 0
jmp 0x491f8f
movsxd r13, dword [r13 + 8]
cmp r13d, dword [rsi + 0x3c]
jge 0x491f7d
mov rbx, qword [rsi + 8]
mov rcx, qword [rsi]
lea rdi, [r13 + r13*2]
movsx edx, byte [rbx + rdi*8 + 1]
mov r8, qword [rbx + rdi*8 + 0x10]
call fcn.00441fd0
xor r11d, r11d
mov qword [rbx + rdi*8], r11
mov qword [rbx + rdi*8 + 8], r11
mov qword [rbx + rdi*8 + 0x10], r11
mov byte [rbx + rdi*8], 0x9a
mov eax, dword [rsi + 0x3c]
dec eax
cmp r13d, eax
jne 0x491f87
mov r15d, dword [rsp + 0xf8]
mov dword [rsi + 0x3c], eax
jmp 0x491f8f
mov r15d, dword [rsp + 0xf8]
jmp 0x491f8f
mov r15d, dword [rsp + 0xf8]
jmp 0x491f8f
mov r15d, dword [rsp + 0xf8]
mov rdi, qword [rsp + 0xe0]
test rdi, rdi
jne 0x492099
mov r13, qword [rsp + 0xc8]
mov edi, dword [r13 + 0x10]
test edi, edi
jle 0x49208f
mov rax, qword [rsi + 0x30]
movsxd rbx, dword [rsi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x491fd9
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
je 0x491fd9
mov ebx, 1
jmp 0x492008
inc dword [rsi + 0x3c]
mov rax, qword [rsi + 8]
lea rcx, [rbx + rbx*2]
xor edx, edx
mov byte [rax + rcx*8], 0x8a
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 0xc], 0xffffffff
mov dword [rax + rcx*8 + 8], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
mov rax, qword [rsi + 0x30]
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x492026
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492052
inc dword [rsi + 0x3c]
mov rax, qword [rsi + 8]
lea rcx, [rdi + rdi*2]
xor edx, edx
mov byte [rax + rcx*8], reloc.WS2_32.dll_recv
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
mov edx, dword [rsi + 0x3c]
cmp edx, ebx
jbe 0x492067
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
mov rdi, qword [rsp + 0xe0]
dec ecx
mov dword [rax + 0x64], ecx
jmp 0x4920a1
mov rdi, qword [rsp + 0xe0]
mov r13, qword [rsp + 0xc8]
jmp 0x4920a1
mov rdi, qword [rsp + 0xe0]
jmp 0x4920a1
mov r13, qword [rsp + 0xc8]
mov r8d, dword [rsp + 0x48]
lea eax, [r8 - 1]
cmp eax, 0xd
ja case.default.0x4920c6
lea rdx, [0x00400000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x92d0c]
add rcx, rdx
jmp rcx
movzx eax, byte [rbp + 0x1f]
test al, al
jne 0x4920d8
inc dword [rbp + 0x54]
mov ebx, dword [rbp + 0x54]
jmp 0x4920e4
dec al
movzx eax, al
mov byte [rbp + 0x1f], al
mov ebx, dword [rbp + rax*4 + 0x24]
mov rax, qword [rsi + 0x30]
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x492102
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492133
inc dword [rsi + 0x3c]
mov rax, qword [rsi + 8]
lea rcx, [rdi + rdi*2]
mov dword [rax + rcx*8 + 4], r12d
xor r12d, r12d
mov byte [rax + rcx*8], gethostbyaddr
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], r12
mov byte [rax + rcx*8 + 1], r12b
jmp 0x492136
xor r12d, r12d
mov rax, qword [rsi + 0x30]
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x492154
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492188
mov rax, qword [rsi + 8]
inc dword [rsi + 0x3c]
mov r8d, dword [rsp + 0xd8]
lea rcx, [rdi + rdi*2]
mov byte [rax + rcx*8], WSAGetLastError
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov byte [rax + rcx*8 + 1], 0
test ebx, ebx
je 0x492be7
movzx edx, byte [rbp + 0x1f]
cmp dl, 8
jae 0x492bf9
mov ecx, r12d
lea rax, [rbp + 0x88]
cmp dword [rax + 0xc], ebx
je 0x4921d6
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x4921a7
mov r14, qword [rsp + 0xe0]
movzx eax, dl
mov dword [rbp + rax*4 + 0x24], ebx
inc byte [rbp + 0x1f]
mov rbx, qword [rsp + 0xc8]
jmp 0x492c3f
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
mov byte [rax + 6], 1
jmp 0x492c3f
mov rax, qword [rsi + 0x30]
movsxd rbx, dword [rsi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x492211
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492bd5
mov rax, qword [rsi + 8]
inc dword [rsi + 0x3c]
mov r8d, dword [rsp + 0xd8]
lea rcx, [rbx + rbx*2]
mov rbx, qword [rsp + 0xc8]
mov dword [rax + rcx*8 + 0xc], r14d
mov r14, qword [rsp + 0xe0]
mov byte [rax + rcx*8], reloc.WS2_32.dll_WSAGetLastError
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r12d
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
jmp 0x492c3f
mov r15d, dword [rsp + 0x40]
mov ecx, dword [rbp + 0x44]
mov edi, dword [rbp + 0x48]
lea r13d, [r15 + 1]
cmp r13d, ecx
jg 0x492282
lea eax, [rdi + r13]
sub ecx, r13d
mov dword [rbp + 0x48], eax
mov dword [rbp + 0x44], ecx
jmp 0x49228e
mov eax, dword [rbp + 0x54]
lea edi, [rax + 1]
add eax, r13d
mov dword [rbp + 0x54], eax
mov rax, qword [rsi + 0x30]
movsxd rbx, dword [rsi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x4922ac
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x4922e1
inc dword [rsi + 0x3c]
mov rcx, qword [rsi + 8]
lea rdx, [rbx + rbx*2]
lea eax, [rdi + r15]
mov dword [rcx + rdx*8 + 8], r14d
xor r14d, r14d
mov byte [rcx + rdx*8], gethostbyaddr
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], r12d
mov qword [rcx + rdx*8 + 0x10], r14
mov byte [rcx + rdx*8 + 1], r14b
mov dword [rcx + rdx*8 + 0xc], eax
jmp 0x4922e4
xor r14d, r14d
cmp dword [rsp + 0x48], 6
jne 0x49235f
mov r9d, dword [rsi + 0x3c]
mov ebx, dword [rsp + 0xd8]
mov edx, 0x45
inc ebx
mov rcx, rsi
add r9d, 4
mov r8d, ebx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], edi
call fcn.0044f840
mov rax, qword [rsi + 0x30]
movsxd r12, dword [rsi + 0x3c]
cmp dword [rax + 0x60], r12d
jg 0x492334
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x49235f
mov rax, qword [rsi + 8]
inc dword [rsi + 0x3c]
lea rcx, [r12 + r12*2]
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], edi
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov byte [rax + rcx*8 + 1], 0
mov r14, qword [rsp + 0xe0]
test r14, r14
je 0x492398
mov rbx, qword [rsp + 0xc8]
lea r9d, [rdi + r15]
mov rdx, r14
mov rcx, rbp
mov r8, rbx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
call fcn.00491270
jmp 0x4924d4
movzx eax, byte [rbp + 0x1f]
test al, al
jne 0x4923a8
inc dword [rbp + 0x54]
mov ebx, dword [rbp + 0x54]
jmp 0x4923b4
dec al
movzx eax, al
mov byte [rbp + 0x1f], al
mov ebx, dword [rbp + rax*4 + 0x24]
mov rax, qword [rsi + 0x30]
movsxd r12, dword [rsi + 0x3c]
cmp dword [rax + 0x60], r12d
jg 0x4923d3
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492409
inc dword [rsi + 0x3c]
mov rax, qword [rsi + 8]
mov r15d, dword [rsp + 0xd8]
lea rcx, [r12 + r12*2]
xor edx, edx
mov byte [rax + rcx*8], 0x4a
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
jmp 0x492411
mov r15d, dword [rsp + 0xd8]
mov rax, qword [rsi + 0x30]
movsxd r12, dword [rsi + 0x3c]
cmp dword [rax + 0x60], r12d
jg 0x492430
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x49245f
mov rax, qword [rsi + 8]
inc dword [rsi + 0x3c]
lea rcx, [r12 + r12*2]
mov byte [rax + rcx*8], 0x4b
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x492475
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
test ebx, ebx
je 0x4924cc
movzx edx, byte [rbp + 0x1f]
cmp dl, 8
jae 0x4924c2
xor ecx, ecx
lea rax, [rbp + 0x88]
nop
nop
cmp dword [rax + 0xc], ebx
je 0x4924b4
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x492490
movzx eax, dl
mov dword [rbp + rax*4 + 0x24], ebx
inc byte [rbp + 0x1f]
mov rbx, qword [rsp + 0xc8]
jmp 0x4924d4
mov rbx, qword [rsp + 0xc8]
mov byte [rax + 6], 1
jmp 0x4924d4
mov rbx, qword [rsp + 0xc8]
jmp 0x4924d4
mov rbx, qword [rsp + 0xc8]
lea r9d, [r13 + rdi - 1]
lea rdx, [rbp + 0x94]
mov ecx, 0xa
mov r8d, dword [rdx]
cmp r8d, edi
jl 0x492515
cmp r8d, r9d
jg 0x492515
cmp byte [rdx - 6], 0
je 0x49250f
movzx eax, byte [rbp + 0x1f]
cmp al, 8
jae 0x49250b
movzx eax, al
mov dword [rbp + rax*4 + 0x24], r8d
inc byte [rbp + 0x1f]
mov byte [rdx - 6], 0
mov dword [rdx], 0
add rdx, 0x14
dec rcx
jne 0x4924e5
cmp r13d, dword [rbp + 0x44]
jle 0x492c3f
mov dword [rbp + 0x44], r13d
mov dword [rbp + 0x48], edi
jmp 0x492c3f
mov rax, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xf0]
mov rcx, qword [rax + 8]
movzx edx, byte [rbx + 1]
inc rbx
mov rcx, qword [rcx]
call fcn.00450e00
test rdi, rdi
mov byte [rbx], al
je 0x492594
mov eax, dword [rsp + 0x40]
mov r9d, r12d
mov r8, r13
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x20], 1
call fcn.00491270
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
jmp 0x492c3f
movzx eax, byte [rbp + 0x1f]
test al, al
jne 0x4925a4
inc dword [rbp + 0x54]
mov edi, dword [rbp + 0x54]
jmp 0x4925b0
dec al
movzx eax, al
mov byte [rbp + 0x1f], al
mov edi, dword [rbp + rax*4 + 0x24]
mov r9d, 1
mov dword [rsp + 0x30], 1
mov r8d, r12d
lea edx, [r9 + 0x30]
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
call fcn.0044f620
lea rbx, [rbp + 0x88]
lea rdx, [rbx + 0xc]
mov ecx, 0xa
mov r8d, dword [rdx]
cmp r8d, r12d
jl 0x492616
cmp r8d, r12d
jg 0x492616
cmp byte [rdx - 6], 0
je 0x492610
movzx eax, byte [rbp + 0x1f]
cmp al, 8
jae 0x49260c
movzx eax, al
mov dword [rbp + rax*4 + 0x24], r8d
inc byte [rbp + 0x1f]
mov byte [rdx - 6], 0
mov dword [rdx], 0
add rdx, 0x14
dec rcx
jne 0x4925e6
mov r8d, dword [rsp + 0xd8]
lea edx, [rcx + 0x6e]
mov r9d, edi
mov rcx, rsi
call fcn.00441dd0
test edi, edi
je 0x492c54
movzx ecx, byte [rbp + 0x1f]
cmp cl, 8
jae 0x492c4a
xor eax, eax
nop
cmp dword [rbx + 0xc], edi
je 0x492677
inc eax
add rbx, 0x14
cmp eax, 0xa
jl 0x492650
mov rbx, qword [rsp + 0xc8]
movzx eax, cl
mov dword [rbp + rax*4 + 0x24], edi
inc byte [rbp + 0x1f]
jmp 0x492c66
mov byte [rbx + 6], 1
mov rbx, qword [rsp + 0xc8]
jmp 0x492c66
mov rax, qword [rsi + 0x30]
movsxd rbx, dword [rsi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x4926aa
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492bc3
inc dword [rsi + 0x3c]
mov rax, qword [rsi + 8]
mov r8d, dword [rsp + 0xd8]
mov r14, qword [rsp + 0xe0]
lea rcx, [rbx + rbx*2]
mov rbx, qword [rsp + 0xc8]
xor edx, edx
mov byte [rax + rcx*8], Ordinal_27
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
jmp 0x492c3f
test rdi, rdi
je 0x492c5e
mov eax, dword [rsp + 0x40]
mov r9d, r12d
mov r8, r13
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x20], 1
call fcn.00491270
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
jmp 0x492c3f
test rdi, rdi
je 0x49276e
mov eax, dword [rsp + 0x40]
mov r9d, r12d
mov r8, r13
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x20], r14d
call fcn.00491270
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
jmp 0x492c3f
cmp r8d, 0xd
jne 0x49279a
mov rax, qword [rsp + 0xf0]
mov edx, reloc.WS2_32.dll_shutdown
mov rcx, rsi
mov r8d, dword [rax + 4]
call fcn.00441d40
mov rbx, qword [rsp + 0xc8]
jmp 0x492c66
mov r9d, r14d
mov r8d, r12d
mov edx, reloc.WLDAP32.dll_Ordinal_35
mov rcx, rsi
call fcn.00441dd0
lea r11d, [r12 + r14 - 1]
lea rdx, [rbp + 0x94]
mov ecx, 0xa
nop
mov r8d, dword [rdx]
cmp r8d, r12d
jl 0x4927f0
cmp r8d, r11d
jg 0x4927f0
cmp byte [rdx - 6], 0
je 0x4927ea
movzx eax, byte [rbp + 0x1f]
cmp al, 8
jae 0x4927e6
movzx eax, al
mov dword [rbp + rax*4 + 0x24], r8d
inc byte [rbp + 0x1f]
mov byte [rdx - 6], 0
mov dword [rdx], 0
add rdx, 0x14
dec rcx
jne 0x4927c0
mov rbx, qword [rsp + 0xc8]
jmp 0x492c66
xor eax, eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
movsxd rdi, dword [rax]
movzx eax, byte [rbp + 0x1f]
test al, al
jne 0x492831
inc dword [rbp + 0x54]
mov r15d, dword [rbp + 0x54]
jmp 0x49283e
dec al
movzx eax, al
mov byte [rbp + 0x1f], al
mov r15d, dword [rbp + rax*4 + 0x24]
mov ecx, dword [rbp + 0x44]
mov ebx, dword [rbp + 0x48]
lea edx, [rdi + 2]
cmp edx, ecx
mov dword [rsp + 0xe8], edx
mov dword [rsp + 0xd0], ebx
jg 0x492866
lea eax, [rbx + rdx]
sub ecx, edx
mov dword [rbp + 0x48], eax
mov dword [rbp + 0x44], ecx
jmp 0x492878
mov eax, dword [rbp + 0x54]
lea ebx, [rax + 1]
add eax, edx
mov dword [rsp + 0xd0], ebx
mov dword [rbp + 0x54], eax
lea eax, [rbx + rdi]
mov dword [rsp + 0x4c], eax
inc eax
cmp r8d, 8
mov dword [rsp + 0xf0], eax
jne 0x4928b6
mov r8d, dword [rsp + 0xd8]
xor r9d, r9d
mov rcx, rsi
lea edx, [r9 + 0x45]
inc r8d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
call fcn.0044f840
mov dword [rsp + 0x44], eax
mov rcx, qword [rsi + 0x30]
movsxd r13, dword [rsi + 0x3c]
cmp dword [rcx + 0x60], r13d
jg 0x4928d5
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492911
mov rax, qword [rsi + 8]
inc dword [rsi + 0x3c]
mov r9d, dword [rsp + 0xf0]
lea rcx, [r13 + r13*2]
mov byte [rax + rcx*8], gethostbyaddr
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
jmp 0x492919
mov r9d, dword [rsp + 0xf0]
cmp dword [rsp + 0x48], 8
jne 0x49294f
mov r8d, dword [rsp + 0xd8]
mov edx, WSAGetLastError
mov rcx, rsi
inc r8d
call fcn.00441dd0
mov r11, qword [rsi + 8]
test r11, r11
je 0x49294f
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [r11 + rcx*8 - 0x15], 0x10
test edi, edi
mov r14, rdi
jle 0x4929e4
mov rbp, qword [rsp + 0x50]
mov edi, ebx
xor ebx, ebx
mov rax, qword [rbp + 8]
movsxd r13, dword [rsi + 0x3c]
movzx ecx, word [rax + rbx + 0x20]
lea eax, [rcx + r12 - 1]
mov dword [rsp + 0xf0], eax
mov rax, qword [rsi + 0x30]
cmp dword [rax + 0x60], r13d
jg 0x492997
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x4929ca
inc dword [rsi + 0x3c]
mov rax, qword [rsi + 8]
mov edx, dword [rsp + 0xf0]
lea rcx, [r13 + r13*2]
mov dword [rax + rcx*8 + 4], edx
xor edx, edx
mov byte [rax + rcx*8], Ordinal_35
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
inc edi
add rbx, 0x28
dec r14
jne 0x492963
mov rbp, qword [rsp + 0xc0]
mov ebx, dword [rsp + 0xd0]
mov rax, qword [rsi + 0x30]
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x492a02
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492a3f
inc dword [rsi + 0x3c]
mov rax, qword [rsi + 8]
mov r13d, dword [rsp + 0xd8]
mov edx, dword [rsp + 0x4c]
lea rcx, [rdi + rdi*2]
xor r14d, r14d
mov byte [rax + rcx*8], 0x49
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov byte [rax + rcx*8 + 1], r14b
jmp 0x492a4a
mov r13d, dword [rsp + 0xd8]
xor r14d, r14d
mov rax, qword [rsi + 0x30]
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x492a68
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492a9e
mov rax, qword [rsi + 8]
inc dword [rsi + 0x3c]
mov r12d, dword [rsp + 0xe8]
lea rcx, [rdi + rdi*2]
mov byte [rax + rcx*8], gethostbyaddr
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r14
mov byte [rax + rcx*8 + 1], 0
jmp 0x492aa6
mov r12d, dword [rsp + 0xe8]
mov rax, qword [rsi + 0x30]
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x492ac4
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492af1
mov rax, qword [rsi + 8]
inc dword [rsi + 0x3c]
lea rcx, [rdi + rdi*2]
mov byte [rax + rcx*8], WSAGetLastError
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov byte [rax + rcx*8 + 1], 0
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x492b18
mov edx, dword [rsi + 0x3c]
cmp edx, eax
jbe 0x492b0c
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
test r15d, r15d
je 0x492b50
movzx edx, byte [rbp + 0x1f]
cmp dl, 8
jae 0x492b50
mov ecx, r14d
lea rax, [rbp + 0x88]
cmp dword [rax + 0xc], r15d
je 0x492bbd
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x492b30
movzx eax, dl
mov dword [rbp + rax*4 + 0x24], r15d
inc byte [rbp + 0x1f]
lea r9d, [rbx + r12 - 1]
lea rdx, [rbp + 0x94]
mov ecx, 0xa
mov r8d, dword [rdx]
cmp r8d, ebx
jl 0x492b8e
cmp r8d, r9d
jg 0x492b8e
cmp byte [rdx - 6], 0
je 0x492b8b
movzx eax, byte [rbp + 0x1f]
cmp al, 8
jae 0x492b87
movzx eax, al
mov dword [rbp + rax*4 + 0x24], r8d
inc byte [rbp + 0x1f]
mov byte [rdx - 6], 0
mov dword [rdx], r14d
add rdx, 0x14
dec rcx
jne 0x492b61
cmp r12d, dword [rbp + 0x44]
jle 0x492c2f
mov r14, qword [rsp + 0xe0]
mov dword [rbp + 0x48], ebx
mov rbx, qword [rsp + 0xc8]
mov dword [rbp + 0x44], r12d
jmp 0x492c3f
mov byte [rax + 6], 1
jmp 0x492b50
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
jmp 0x492c3f
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
jmp 0x492c3f
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
jmp 0x492c3f
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
jmp 0x492c3f
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
jmp 0x492c3f
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
jmp 0x492c3f
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
test r14, r14
jne 0x492cc4
jmp 0x492c66
mov rbx, qword [rsp + 0xc8]
jmp 0x492c66
mov rbx, qword [rsp + 0xc8]
jmp 0x492c66
mov rbx, qword [rsp + 0xc8]
mov ebx, dword [rbx + 0xc]
test ebx, ebx
je 0x492cc4
mov rax, qword [rsi + 0x30]
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x492c8b
mov edx, 1
mov rcx, rsi
call fcn.00441a80
test eax, eax
jne 0x492cc4
mov rcx, qword [rsi + 8]
inc dword [rsi + 0x3c]
mov eax, dword [rsp + 0x100]
lea rdx, [rdi + rdi*2]
mov byte [rcx + rdx*8], 0x8b
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], ebx
mov dword [rcx + rdx*8 + 8], eax
mov dword [rcx + rdx*8 + 0xc], 0xffffffff
mov qword [rcx + rdx*8 + 0x10], 0
mov byte [rcx + rdx*8 + 1], 0
mov r15, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
add rsp, 0xb8
ret