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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov rax, rsp
sub rsp, 0x78
mov qword [rax - 8], rbx
mov bl, byte [rdx + 0x1c]
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov rdi, qword [rcx + 0x10]
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
mov qword [rax - 0x40], r15
mov rax, qword [rdx]
not ebx
mov r12d, dword [rax]
inc dword [rcx + 0x54]
mov eax, dword [rdx + 8]
and ebx, 1
mov r15, rcx
mov ecx, dword [rcx + 0x54]
lea esi, [r12 + rbx]
mov r13d, r9d
mov rbp, rdx
add esi, dword [rsp + 0xa0]
cmp dword [rsp + 0xa8], 0
mov dword [rsp + 0x88], ecx
mov dword [rsp + 0x80], eax
je 0x4912f3
mov r14d, r9d
sub r14d, r12d
sub r14d, ebx
jmp 0x4912fe
lea eax, [rcx + rsi]
lea r14d, [rcx + 1]
mov dword [r15 + 0x54], eax
mov rdx, qword [rdx]
mov r9b, 1
mov r8d, r14d
mov rcx, r15
call fcn.00459f90
test ebx, ebx
je 0x491386
mov eax, dword [rbp + 0xc]
movsxd r13, dword [rdi + 0x3c]
mov dword [rsp + 0x20], eax
mov rax, qword [rdi + 0x30]
cmp dword [rax + 0x60], r13d
jg 0x491339
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x49137e
mov rcx, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov eax, dword [rsp + 0x20]
lea rdx, [r13 + r13*2]
mov r13d, dword [rsp + 0x98]
mov dword [rcx + rdx*8 + 4], eax
lea eax, [r14 + r12]
mov byte [rcx + rdx*8], 0x49
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 0xc], 0
mov qword [rcx + rdx*8 + 0x10], 0
mov dword [rcx + rdx*8 + 8], eax
mov byte [rcx + rdx*8 + 1], 0
jmp 0x491386
mov r13d, dword [rsp + 0x98]
cmp dword [rsp + 0xa8], 0
jne 0x4913aa
mov r9d, dword [rsp + 0xa0]
lea r8d, [r14 + r12]
mov edx, r13d
add r8d, ebx
mov rcx, r15
call fcn.004460a0
mov rax, qword [rdi + 0x30]
movsxd r13, dword [rdi + 0x3c]
cmp dword [rax + 0x60], r13d
jg 0x4913c9
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x49140e
inc dword [rdi + 0x3c]
mov rcx, qword [rdi + 8]
mov r8d, dword [rsp + 0x80]
lea rdx, [r13 + r13*2]
sub esi, r8d
lea eax, [r14 + r8]
mov dword [rcx + rdx*8 + 4], eax
mov eax, dword [rsp + 0x88]
mov dword [rcx + rdx*8 + 8], esi
xor esi, esi
mov byte [rcx + rdx*8], gethostbyaddr
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 0xc], eax
mov qword [rcx + rdx*8 + 0x10], rsi
mov byte [rcx + rdx*8 + 1], sil
jmp 0x491418
mov r8d, dword [rsp + 0x80]
xor esi, esi
test r8d, r8d
jle 0x4917d3
mov ecx, dword [r15 + 0x54]
lea eax, [rcx + 1]
add ecx, dword [rbp + 8]
mov dword [rsp + 0xa8], eax
mov eax, r12d
mov dword [r15 + 0x54], ecx
sub eax, dword [rbp + 8]
add eax, ebx
test ebx, ebx
mov dword [rsp + 0x20], eax
je 0x4914a1
mov rax, qword [rdi + 0x30]
movsxd r13, dword [rdi + 0x3c]
cmp dword [rax + 0x60], r13d
jg 0x491470
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x491470
mov r13d, 1
jmp 0x4914f6
mov rcx, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rdx, [r13 + r13*2]
lea eax, [r14 + r12]
mov byte [rcx + rdx*8], reloc.WLDAP32.dll_Ordinal_46
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 8], esi
mov dword [rcx + rdx*8 + 0xc], esi
mov qword [rcx + rdx*8 + 0x10], rsi
mov dword [rcx + rdx*8 + 4], eax
mov byte [rcx + rdx*8 + 1], 0
jmp 0x4914f6
mov rax, qword [rdi + 0x30]
movsxd r13, dword [rdi + 0x3c]
mov ebx, dword [rbp + 0xc]
cmp dword [rax + 0x60], r13d
jg 0x4914cb
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x4914cb
mov r13d, 1
jmp 0x4914f6
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [r13 + r13*2]
mov byte [rax + rcx*8], Ordinal_60
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
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 esi, dword [rbp + 8]
cmp dword [rax + 0x60], ebx
jg 0x491517
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x49154d
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov edx, dword [rsp + 0xa8]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x2a
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
mov ecx, dword [rbp + 0x18]
test ecx, ecx
jns 0x491559
mov ecx, dword [rdi + 0x3c]
dec ecx
mov rax, qword [rdi]
cmp byte [rax + 0x50], 0
je 0x49156b
lea rsi, [0x007725d0]
jmp 0x49157a
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rsi, [rax + rcx*8]
mov rax, qword [r15]
cmp byte [rax + 0x50], 0
jne 0x491a28
mov r12, qword [rsi + 0x10]
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0xa0]
add eax, ecx
xor edx, edx
mov dword [rsi + 8], eax
movzx r8d, word [r12 + 6]
mov rcx, qword [r12 + 0x18]
call sub.msvcrt.dll_memset
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
mov qword [rsp + 0x20], r8
je 0x4915f1
cmp byte [rcx + 0x50], 0
jne 0x4915f1
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rbx, [rax + rax*2]
movsx edx, byte [r8 + rbx*8 + 1]
mov r8, qword [r8 + rbx*8 + 0x10]
call fcn.00441fd0
mov r11, qword [rsp + 0x20]
mov qword [r11 + rbx*8 + 0x10], r12
mov byte [r11 + rbx*8 + 1], 0xfa
jmp 0x4915fe
mov r8, r12
mov edx, 0xfffffffa
call fcn.00441fd0
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rbp]
mov r9d, 1
mov rcx, r15
call fcn.00482350
mov qword [rsi + 0x10], rax
mov rax, qword [rdi + 0x30]
mov r12d, dword [rdi + 0x3c]
cmp dword [rax + 0x60], r12d
jg 0x49163b
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x491671
inc dword [rdi + 0x3c]
mov rcx, qword [rdi + 8]
xor r8d, r8d
movsxd rax, r12d
lea rdx, [rax + rax*2]
lea eax, [r12 + 1]
mov byte [rcx + rdx*8], Ordinal_46
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], eax
mov dword [rcx + rdx*8 + 8], r8d
mov dword [rcx + rdx*8 + 0xc], eax
mov qword [rcx + rdx*8 + 0x10], r8
mov byte [rcx + rdx*8 + 1], r8b
mov rsi, qword [rdi + 0x30]
movsxd rbx, dword [rsi + 0x78]
lea eax, [rbx + 1]
mov dword [rsi + 0x78], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x4916a7
mov rdx, qword [rsi + 0x80]
mov rcx, qword [rsi]
lea eax, [rbx + rbx + 1]
movsxd r8, eax
shl r8, 2
call fcn.0043b230
mov qword [rsi + 0x80], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x4916ba
mov dword [rcx + rbx*4], 0xffffffff
mov eax, 0xffffffff
sub eax, ebx
mov dword [rbp + 0x14], eax
inc dword [r15 + 0x54]
mov eax, dword [rbp + 0x14]
mov ebx, dword [r15 + 0x54]
mov dword [rsp + 0xa0], eax
mov dword [rbp + 0x10], ebx
mov rax, qword [rdi + 0x30]
movsxd rsi, dword [rdi + 0x3c]
cmp dword [rax + 0x60], esi
jg 0x4916f7
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x491729
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
mov edx, dword [rsp + 0xa0]
lea rcx, [rsi + rsi*2]
mov dword [rax + rcx*8 + 8], edx
xor edx, edx
mov byte [rax + rcx*8], reloc.WS2_32.dll_recvfrom
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
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]
mov esi, dword [rbp + 0xc]
cmp dword [rax + 0x60], ebx
jg 0x49174a
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x491775
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
xor edx, edx
mov byte [rax + rcx*8], 0x77
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], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
mov r9d, dword [rdi + 0x3c]
cmp r9d, r13d
jbe 0x49178e
mov eax, r13d
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], r9d
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
mov r8d, dword [rsp + 0xa8]
dec ecx
mov edx, r14d
mov dword [rax + 0x64], ecx
mov r9d, dword [rbp + 8]
mov rcx, r15
call fcn.004460a0
mov r11d, dword [rdi + 0x3c]
cmp r11d, r12d
jbe 0x4917c7
mov rax, qword [rdi + 8]
lea rcx, [r12 + r12*2]
mov dword [rax + rcx*8 + 8], r11d
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
movzx eax, byte [rbp + 0x1c]
movsxd rsi, dword [rdi + 0x3c]
mov r12d, dword [rbp + 0xc]
and al, 1
neg al
mov rax, qword [rdi + 0x30]
sbb ebx, ebx
add ebx, 0x6e
cmp dword [rax + 0x60], esi
jg 0x491802
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x491839
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
mov edx, dword [rsp + 0x88]
lea rcx, [rsi + rsi*2]
xor r13d, r13d
mov byte [rax + rcx*8], bl
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], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov byte [rax + rcx*8 + 1], r13b
jmp 0x49183c
xor r13d, r13d
mov rax, qword [rsp + 0x90]
mov ebx, dword [rax + 0xc]
test ebx, ebx
je 0x491a28
mov eax, dword [rax + 0x10]
test eax, eax
je 0x491859
lea ebx, [rax + 1]
mov rax, qword [rdi + 0x30]
movsxd rsi, dword [rdi + 0x3c]
cmp dword [rax + 0x60], esi
jg 0x49187e
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x49187e
mov esi, 1
jmp 0x4918aa
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rsi + rsi*2]
mov byte [rax + rcx*8], 0x8b
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov byte [rax + rcx*8 + 1], 0
mov rax, qword [rdi + 0x30]
movsxd r12, dword [rdi + 0x3c]
cmp dword [rax + 0x60], r12d
jg 0x4918c9
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x4918f8
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [r12 + r12*2]
mov byte [rax + rcx*8], 0x25
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], 0xffffffff
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov byte [rax + rcx*8 + 1], 0
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x49191d
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x49191d
mov ebx, 1
jmp 0x49194a
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], reloc.WS2_32.dll_recv
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov byte [rax + rcx*8 + 1], 0
mov edx, dword [rdi + 0x3c]
cmp edx, esi
jbe 0x49195f
mov eax, esi
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 rsi, dword [rdi + 0x3c]
cmp dword [rax + 0x60], esi
mov r12d, dword [rbp + 0xc]
jg 0x49198d
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x4919ba
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rsi + rsi*2]
mov byte [rax + rcx*8], 0x69
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov byte [rax + rcx*8 + 1], 0
mov rax, qword [rdi + 0x30]
movsxd rsi, dword [rdi + 0x3c]
mov ebp, dword [rbp + 0xc]
cmp dword [rax + 0x60], esi
jg 0x4919db
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x491a07
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rsi + rsi*2]
mov byte [rax + rcx*8], 0x5f
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov byte [rax + rcx*8 + 1], 0
mov edx, dword [rdi + 0x3c]
cmp edx, ebx
jbe 0x491a1c
mov eax, ebx
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 r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret