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

Disassembly:
jmp 0x140556f70
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 [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x20], 0
jmp 0x140556fc9
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
ja 0x140557006
mov eax, dword [rsp + 0x20]
shl rax, 1
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x120], 0x20
jae 0x140556fec
jmp 0x140556ff2
call fcn.1401dbafe
nop
xor eax, eax
mov rcx, qword [rsp + 0x120]
mov word [rsp + rcx + 0xa8], ax
jmp 0x140556fbf
mov dword [rsp + 0x24], 0
jmp 0x14055701a
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x180]
cmp dword [rsp + 0x24], eax
jae 0x14055705c
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 0x140557010
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x2c], reloc.WS2_32.dll_ntohs
jmp 0x14055707e
mov eax, dword [rsp + 0x2c]
dec eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 1
jb 0x140557099
mov eax, dword [rsp + 0x2c]
movzx eax, word [rsp + rax*2 + 0xa8]
test eax, eax
je 0x140557097
jmp 0x140557099
jmp 0x140557074
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x30], eax
jbe 0x1405570ab
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x2c], 0
jne 0x14055712e
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 0x140557858
mov dword [rsp + 0x28], 1
jmp 0x140557142
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jae 0x140557160
mov eax, dword [rsp + 0x28]
movzx eax, word [rsp + rax*2 + 0xa8]
test eax, eax
je 0x14055715e
jmp 0x140557160
jmp 0x140557138
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x30], eax
jae 0x140557172
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x20], 1
jmp 0x14055718e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
ja 0x1405571ca
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 0x1405571c8
mov eax, 0xffffffff
jmp 0x140557858
jmp 0x140557184
cmp dword [rsp + 0x3c], 0
jle 0x1405571ec
cmp dword [rsp + 0x170], 0
je 0x1405571e2
cmp dword [rsp + 0x2c], 1
je 0x1405571ec
mov eax, 0xffffffff
jmp 0x140557858
mov qword [rsp + 0x128], 2
cmp qword [rsp + 0x128], 0x20
jae 0x140557205
jmp 0x14055720b
call fcn.1401dbafe
nop
xor eax, eax
mov rcx, qword [rsp + 0x128]
mov word [rsp + rcx + 0xe8], ax
mov dword [rsp + 0x20], 1
jmp 0x140557231
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
jae 0x140557264
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 0x140557227
mov dword [rsp + 0x24], 0
jmp 0x140557278
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x180]
cmp dword [rsp + 0x24], eax
jae 0x1405572fa
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x1405572f5
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 0x14055726e
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0x130], eax
cmp dword [rsp + 0x130], 0
je 0x14055731e
cmp dword [rsp + 0x130], 1
je 0x14055734b
jmp 0x140557376
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 0x14055739f
lea rax, [0x140646d70]
mov qword [rsp + 0x80], rax
lea rax, [0x140646db0]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], 0x101
jmp 0x14055739f
lea rax, [0x140646df0]
mov qword [rsp + 0x80], rax
lea rax, [0x140646e30]
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 0x14055741d
cmp dword [rsp + 0x40], 0x354
ja 0x140557431
cmp dword [rsp + 0x170], 2
jne 0x14055743b
cmp dword [rsp + 0x40], 0x250
jbe 0x14055743b
mov eax, 1
jmp 0x140557858
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 0x140557482
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 0x1405574fc
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
cmp eax, dword [rsp + 0x90]
jb 0x1405574f0
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 0x1405574fc
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 0x14055754c
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 0x1405575c0
mov eax, dword [rsp + 0x48]
shr eax, 1
mov dword [rsp + 0x48], eax
jmp 0x1405575a4
cmp dword [rsp + 0x48], 0
je 0x1405575eb
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 0x1405575f3
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 0x140557663
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x20], eax
jne 0x140557643
jmp 0x1405577f7
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 0x1405577f2
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x44]
and ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x50]
je 0x1405577f2
cmp dword [rsp + 0x38], 0
jne 0x140557696
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 0x14055772b
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 0x140557715
jmp 0x14055772b
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 0x1405576d8
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 0x140557767
cmp dword [rsp + 0x40], 0x354
ja 0x14055777b
cmp dword [rsp + 0x170], 2
jne 0x140557785
cmp dword [rsp + 0x40], 0x250
jbe 0x140557785
mov eax, 1
jmp 0x140557858
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 0x14055743b
cmp dword [rsp + 0x44], 0
je 0x14055782a
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.1401dcb34
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0x160
pop rdi
ret