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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rbx, qword [rcx + 0x10]
xor edi, edi
mov rax, qword [rdx]
mov r14, rcx
movzx ebp, byte [rdx + 0x24]
mov rsi, rdx
mov r13d, dword [rsp + 0xc0]
not ebp
and ebp, 1
mov dword [rsp + 0x98], edi
mov eax, dword [rax]
mov r12d, edi
mov dword [rsp + 0x90], eax
lea ecx, [rax + rbp]
mov eax, dword [rdx + 8]
add ecx, dword [rsp + 0xb8]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], eax
test r13d, r13d
je 0x1802280bf
mov r15d, r9d
sub r15d, r13d
jmp 0x1802280cd
mov eax, dword [r14 + 0x38]
lea r15d, [rax + 1]
add eax, ecx
mov dword [r14 + 0x38], eax
mov eax, dword [r8 + 0xc]
test eax, eax
je 0x1802280d9
inc eax
jmp 0x1802280dd
mov eax, dword [r8 + 8]
dec dword [r14 + 0x44]
mov ecx, 5
mov r9d, dword [rsp + 0xb0]
mov r8d, r15d
mov dword [rsp + 0x34], eax
test r9d, r9d
mov eax, dword [r14 + 0x44]
mov dword [rdx + 0x1c], eax
mov eax, 1
mov rdx, qword [rdx]
cmovne eax, ecx
mov rcx, r14
mov byte [rsp + 0x20], al
call fcn.180240200
mov r9d, dword [rsp + 0x90]
test ebp, ebp
je 0x180228184
movsxd rcx, dword [rbx + 0x90]
lea edx, [r15 + r9]
mov r8d, dword [rsi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x180228157
mov r9d, edx
mov dword [rsp + 0x20], edi
mov edx, 0x78
mov rcx, rbx
call fcn.18021bc70
mov r9d, dword [rsp + 0x90]
jmp 0x180228184
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x78
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
test r13d, r13d
jne 0x1802281ad
mov eax, dword [rsp + 0xb8]
test eax, eax
jle 0x1802281ad
mov edx, dword [rsp + 0xa8]
lea r8d, [r15 + r9]
add r8d, ebp
mov r9d, eax
mov rcx, r14
call fcn.180241b20
lea r13, [0x180413740]
cmp dword [rsp + 0x30], edi
jle 0x180228499
mov eax, dword [rsp + 0x38]
mov r9d, r15d
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.18021f3d0
mov edx, dword [r14 + 0x38]
mov ecx, dword [rsp + 0x90]
mov dword [rsp + 0x98], eax
lea eax, [rdx + 1]
add edx, dword [rsi + 8]
mov dword [rsp + 0xc0], eax
mov eax, ecx
mov dword [r14 + 0x38], edx
sub eax, dword [rsi + 8]
add eax, ebp
mov dword [rsp + 0x3c], eax
test ebp, ebp
je 0x180228219
lea r8d, [r15 + rcx]
mov edx, reloc.WS2_32.dll_sendto
jmp 0x180228222
mov r8d, dword [rsi + 0xc]
mov edx, WSACleanup
mov rcx, rbx
call fcn.180265b50
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rsi + 8]
mov r8d, dword [rsp + 0xc0]
mov dword [rsp + 0xb0], eax
cmp dword [rbx + 0x94], ecx
jg 0x180228261
mov dword [rsp + 0x20], edx
mov r9d, r15d
mov edx, 0x56
mov rcx, rbx
call fcn.18021bc70
jmp 0x18022828f
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x56
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], rdi
mov ecx, dword [rsi + 0x18]
test ecx, ecx
jns 0x18022829e
mov ecx, dword [rbx + 0x90]
dec ecx
mov rax, qword [rbx]
cmp byte [rax + 0x61], dil
jne 0x1802282b9
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea r13, [rax + rcx*8]
mov rax, qword [r14]
cmp byte [rax + 0x61], dil
jne 0x180228669
mov rbp, qword [r13 + 0x10]
xor edx, edx
mov eax, dword [rsp + 0x3c]
add eax, dword [rsp + 0xb8]
mov dword [r13 + 8], eax
movzx r8d, word [rbp + 6]
mov rcx, qword [rbp + 0x18]
call fcn.1802c7550
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], dil
je 0x180228301
mov r8, rbp
mov edx, 0xfffffff7
call fcn.1802186e0
jmp 0x18022833c
mov eax, dword [rbx + 0x90]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
cmp byte [rax + rcx*8 + 1], dil
lea rdx, [rax + rcx*8]
je 0x180228334
mov r9d, 0xfffffff7
mov r8, rbp
mov rcx, rbx
call fcn.180282640
jmp 0x18022833c
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xf7
movzx r9d, word [rbp + 8]
mov rcx, r14
movzx eax, word [rbp + 6]
mov r8d, dword [rsp + 0x30]
sub r9d, eax
mov rdx, qword [rsi]
dec r9d
call fcn.18024f810
mov qword [r13 + 0x10], rax
movsxd rbp, dword [rbx + 0x90]
lea edx, [rbp + 1]
cmp dword [rbx + 0x94], ebp
jg 0x180228389
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x10]
call fcn.18021bc70
jmp 0x1802283bc
lea eax, [rbp + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rbp*2]
mov rax, qword [rbx + 0x88]
add rcx, rbp
mov dword [rax + rcx*8], reloc.WSOCK32.dll_recv
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdi
dec dword [r14 + 0x44]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov eax, dword [r14 + 0x44]
mov rcx, rbx
mov dword [rsi + 0x14], eax
mov r8d, dword [r14 + 0x38]
inc r8d
mov dword [r14 + 0x38], r8d
mov r9d, dword [rsi + 0x14]
mov dword [rsi + 0x10], r8d
call fcn.180265bc0
mov r8d, dword [rsi + 0xc]
mov edx, 0x8b
mov rcx, rbx
call fcn.180265b50
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x180228414
mov r9d, dword [rsi + 0x1c]
mov r8d, eax
mov edx, reloc.WS2_32.dll_sendto
mov rcx, rbx
call fcn.180265bc0
mov ecx, dword [rsp + 0xb0]
mov edx, dword [rbx + 0x90]
test ecx, ecx
jns 0x180228428
lea ecx, [rdx - 1]
mov rax, qword [rbx]
lea r13, [0x180413740]
cmp byte [rax + 0x61], dil
je 0x18022843d
mov rax, r13
jmp 0x18022844f
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov r8d, dword [rsp + 0xc0]
mov rcx, r14
mov dword [rax + 8], edx
mov edx, r15d
mov r9d, dword [rsi + 8]
call fcn.180241b20
mov edx, dword [rbx + 0x90]
test ebp, ebp
jns 0x180228476
lea ebp, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], dil
je 0x180228484
mov rax, r13
jmp 0x180228496
movsxd rax, ebp
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov r8d, dword [rsp + 0x34]
test r8d, r8d
je 0x1802285cc
movsxd rcx, dword [rbx + 0x90]
mov ebp, dword [rsi + 0xc]
lea edx, [rcx + 4]
cmp dword [rbx + 0x94], ecx
jg 0x1802284d2
mov r9d, edx
mov dword [rsp + 0x20], edi
mov edx, gethostbyname
mov rcx, rbx
call fcn.18021bc70
jmp 0x1802284ff
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], gethostbyname
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x180228526
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x21]
call fcn.18021bc70
jmp 0x18022854f
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x21
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov eax, dword [rsp + 0x30]
xor r9d, r9d
mov ecx, dword [rsp + 0x90]
mov r8d, ebp
sub ecx, eax
add eax, r15d
mov dword [rsp + 0x28], ecx
mov rcx, rbx
lea edx, [r9 + 0x26]
mov dword [rsp + 0x20], eax
call fcn.180265dd0
movsxd rcx, dword [rbx + 0x90]
mov r12d, eax
cmp dword [rbx + 0x94], ecx
jg 0x1802285a3
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x7b]
call fcn.18021bc70
jmp 0x1802285cc
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x7b
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov r9d, dword [rsp + 0x98]
test r9d, r9d
jne 0x1802285fa
mov eax, dword [rsp + 0x38]
mov r9d, r15d
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.18021f3d0
mov r9d, eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
mov r8d, dword [rsi + 0xc]
sub ecx, eax
add eax, r15d
mov dword [rsp + 0x28], ecx
test byte [rsi + 0x24], 1
mov rcx, rbx
mov dword [rsp + 0x20], eax
setne dil
lea edx, [rdi + 0x83]
call fcn.180265dd0
test r12d, r12d
je 0x180228669
mov edx, dword [rsi + 0x20]
test edx, edx
jne 0x18022863b
mov edx, dword [rbx + 0x90]
test r12d, r12d
jns 0x18022864a
mov r12d, dword [rbx + 0x90]
dec r12d
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
jne 0x180228665
movsxd rax, r12d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea r13, [rax + rcx*8]
mov dword [r13 + 8], edx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret