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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x160
lea rdi, [rsp + 0x20]
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x170]
mov rax, qword [0x18057d540]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [0x1805f6ca2]
call fcn.1802647b0
mov dword [rsp + 0x20], 0
jmp 0x1803c1705
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
ja 0x1803c1741
mov eax, dword [rsp + 0x20]
shl rax, 1
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x120], 0x20
jae 0x1803c1728
jmp 0x1803c172d
call fcn.180265040
xor eax, eax
mov rcx, qword [rsp + 0x120]
mov word [rsp + rcx + 0xa8], ax
jmp 0x1803c16fb
mov dword [rsp + 0x24], 0
jmp 0x1803c1755
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x180]
cmp dword [rsp + 0x24], eax
jae 0x1803c1797
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xa8]
inc ax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x178]
movzx ecx, word [rdx + rcx*2]
mov word [rsp + rcx*2 + 0xa8], ax
jmp 0x1803c174b
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x2c], select
jmp 0x1803c17b9
mov eax, dword [rsp + 0x2c]
dec eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 1
jb 0x1803c17d4
mov eax, dword [rsp + 0x2c]
movzx eax, word [rsp + rax*2 + 0xa8]
test eax, eax
je 0x1803c17d2
jmp 0x1803c17d4
jmp 0x1803c17af
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x30], eax
jbe 0x1803c17e6
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x2c], 0
jne 0x1803c1869
mov byte [rsp + 0x64], 0x40
mov byte [rsp + 0x65], 1
xor eax, eax
mov word [rsp + 0x66], ax
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x64]
mov dword [rax], ecx
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
add rax, 4
mov rcx, qword [rsp + 0x188]
mov qword [rcx], rax
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x64]
mov dword [rax], ecx
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
add rax, 4
mov rcx, qword [rsp + 0x188]
mov qword [rcx], rax
mov rax, qword [rsp + 0x190]
mov dword [rax], 1
xor eax, eax
jmp 0x1803c1f92
mov dword [rsp + 0x28], 1
jmp 0x1803c187d
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jae 0x1803c189b
mov eax, dword [rsp + 0x28]
movzx eax, word [rsp + rax*2 + 0xa8]
test eax, eax
je 0x1803c1899
jmp 0x1803c189b
jmp 0x1803c1873
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x30], eax
jae 0x1803c18ad
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x20], 1
jmp 0x1803c18c9
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
ja 0x1803c1905
mov eax, dword [rsp + 0x3c]
shl eax, 1
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xa8]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x1803c1903
mov eax, 0xffffffff
jmp 0x1803c1f92
jmp 0x1803c18bf
cmp dword [rsp + 0x3c], 0
jle 0x1803c1927
cmp dword [rsp + 0x170], 0
je 0x1803c191d
cmp dword [rsp + 0x2c], 1
je 0x1803c1927
mov eax, 0xffffffff
jmp 0x1803c1f92
mov qword [rsp + 0x128], 2
cmp qword [rsp + 0x128], 0x20
jae 0x1803c1940
jmp 0x1803c1945
call fcn.180265040
xor eax, eax
mov rcx, qword [rsp + 0x128]
mov word [rsp + rcx + 0xe8], ax
mov dword [rsp + 0x20], 1
jmp 0x1803c196b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
jae 0x1803c199e
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xe8]
mov ecx, dword [rsp + 0x20]
movzx ecx, word [rsp + rcx*2 + 0xa8]
add eax, ecx
mov ecx, dword [rsp + 0x20]
inc ecx
mov ecx, ecx
mov word [rsp + rcx*2 + 0xe8], ax
jmp 0x1803c1961
mov dword [rsp + 0x24], 0
jmp 0x1803c19b2
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x180]
cmp dword [rsp + 0x24], eax
jae 0x1803c1a34
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x1803c1a2f
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xe8]
mov rcx, qword [rsp + 0x198]
movzx edx, word [rsp + 0x24]
mov word [rcx + rax*2], dx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xe8]
inc ax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x178]
movzx ecx, word [rdx + rcx*2]
mov word [rsp + rcx*2 + 0xe8], ax
jmp 0x1803c19a8
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0x130], eax
cmp dword [rsp + 0x130], 0
je 0x1803c1a58
cmp dword [rsp + 0x130], 1
je 0x1803c1a85
jmp 0x1803c1ab0
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x90], reloc.WS2_32.dll_sendto
jmp 0x1803c1ad9
lea rax, [0x180510df0]
mov qword [rsp + 0x80], rax
lea rax, [0x180510e30]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], 0x101
jmp 0x1803c1ad9
lea rax, [0x180510e70]
mov qword [rsp + 0x80], rax
lea rax, [0x180510eb0]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x50], 0xffffffff
mov eax, dword [rsp + 0x30]
mov ecx, 1
mov dword [rsp + 0x134], ecx
movzx ecx, al
mov eax, dword [rsp + 0x134]
shl eax, cl
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x170], 1
jne 0x1803c1b57
cmp dword [rsp + 0x40], 0x354
ja 0x1803c1b6b
cmp dword [rsp + 0x170], 2
jne 0x1803c1b75
cmp dword [rsp + 0x40], 0x250
jbe 0x1803c1b75
mov eax, 1
jmp 0x1803c1f92
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x65], al
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
inc eax
cmp eax, dword [rsp + 0x90]
jae 0x1803c1bbc
mov byte [rsp + 0x64], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x66], ax
jmp 0x1803c1c36
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
cmp eax, dword [rsp + 0x90]
jb 0x1803c1c2a
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
sub eax, dword [rsp + 0x90]
mov eax, eax
mov rcx, qword [rsp + 0x88]
movzx eax, byte [rcx + rax*2]
mov byte [rsp + 0x64], al
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
sub eax, dword [rsp + 0x90]
mov eax, eax
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x66], ax
jmp 0x1803c1c36
mov byte [rsp + 0x64], 0x60
xor eax, eax
mov word [rsp + 0x66], ax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov ecx, 1
mov dword [rsp + 0x138], ecx
movzx ecx, al
mov eax, dword [rsp + 0x138]
shl eax, cl
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov dword [rsp + 0x13c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x13c]
shl eax, cl
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x4c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x38]
movzx ecx, al
mov eax, dword [rsp + 0x44]
shr eax, cl
add eax, dword [rsp + 0x4c]
mov eax, eax
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x64]
mov dword [rcx + rax*4], edx
cmp dword [rsp + 0x4c], 0
jne 0x1803c1c86
mov eax, dword [rsp + 0x20]
dec eax
mov ecx, 1
mov dword [rsp + 0x140], ecx
movzx ecx, al
mov eax, dword [rsp + 0x140]
shl eax, cl
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1803c1cfa
mov eax, dword [rsp + 0x48]
shr eax, 1
mov dword [rsp + 0x48], eax
jmp 0x1803c1cde
cmp dword [rsp + 0x48], 0
je 0x1803c1d25
mov eax, dword [rsp + 0x48]
dec eax
mov ecx, dword [rsp + 0x44]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
jmp 0x1803c1d2d
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xa8]
dec ax
mov word [rsp + 0x144], ax
mov eax, dword [rsp + 0x20]
movzx ecx, word [rsp + 0x144]
mov word [rsp + rax*2 + 0xa8], cx
movzx eax, word [rsp + 0x144]
test eax, eax
jne 0x1803c1d9d
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x20], eax
jne 0x1803c1d7d
jmp 0x1803c1f31
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jbe 0x1803c1f2c
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x44]
and ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x50]
je 0x1803c1f2c
cmp dword [rsp + 0x38], 0
jne 0x1803c1dd0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov dword [rsp + 0x148], ecx
movzx ecx, al
mov eax, dword [rsp + 0x148]
shl eax, cl
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x2c]
jae 0x1803c1e65
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov eax, eax
movzx eax, word [rsp + rax*2 + 0xa8]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jg 0x1803c1e4f
jmp 0x1803c1e65
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x3c]
shl eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x1803c1e12
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov dword [rsp + 0x14c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x14c]
shl eax, cl
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x170], 1
jne 0x1803c1ea1
cmp dword [rsp + 0x40], 0x354
ja 0x1803c1eb5
cmp dword [rsp + 0x170], 2
jne 0x1803c1ebf
cmp dword [rsp + 0x40], 0x250
jbe 0x1803c1ebf
mov eax, 1
jmp 0x1803c1f92
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x44]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x188]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x34]
mov byte [rcx + rax*4], dl
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x188]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x30]
mov byte [rcx + rax*4 + 1], dl
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 2
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x188]
mov rdx, qword [rdx]
mov word [rdx + rcx*4 + 2], ax
jmp 0x1803c1b75
cmp dword [rsp + 0x44], 0
je 0x1803c1f64
mov byte [rsp + 0x64], 0x40
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x65], al
xor eax, eax
mov word [rsp + 0x66], ax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x64]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x188]
mov rcx, qword [rcx]
lea rax, [rcx + rax*4]
mov rcx, qword [rsp + 0x188]
mov qword [rcx], rax
mov rax, qword [rsp + 0x190]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.180264580
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1802649f0
add rsp, 0x160
pop rdi
ret