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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov rax, qword [0x1401beaa0]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x1b8]
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov eax, dword [rsp + rax*4 + 0x90]
inc eax
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
mov dword [rsp + rcx*4 + 0x90], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x10]
dec eax
mov dword [rsp + 0x10], eax
cmp dword [rsp + 0x10], 0
jne 0x140136849
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + 0x1b8]
cmp dword [rsp + rax + 0x90], ecx
jne 0x1401368c3
mov rax, qword [rsp + 0x1d8]
mov qword [rax], 0
mov rax, qword [rsp + 0x1e0]
mov dword [rax], 0
xor eax, eax
jmp 0x140137019
mov rax, qword [rsp + 0x1e0]
mov eax, dword [rax]
mov dword [rsp + 0x14], eax
mov dword [rsp], 1
jmp 0x1401368e2
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0xf
ja 0x1401368f9
mov eax, dword [rsp]
cmp dword [rsp + rax*4 + 0x90], 0
je 0x1401368f7
jmp 0x1401368f9
jmp 0x1401368da
mov eax, dword [rsp]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp]
cmp dword [rsp + 0x14], eax
jae 0x140136910
mov eax, dword [rsp]
mov dword [rsp + 0x14], eax
mov dword [rsp + 0x10], reloc.WS2_32.dll_ntohs
jmp 0x140136924
mov eax, dword [rsp + 0x10]
dec eax
mov dword [rsp + 0x10], eax
cmp dword [rsp + 0x10], 0
je 0x14013693d
mov eax, dword [rsp + 0x10]
cmp dword [rsp + rax*4 + 0x90], 0
je 0x14013693b
jmp 0x14013693d
jmp 0x14013691a
mov eax, dword [rsp + 0x10]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x10]
cmp dword [rsp + 0x14], eax
jbe 0x140136957
mov eax, dword [rsp + 0x10]
mov dword [rsp + 0x14], eax
mov rax, qword [rsp + 0x1e0]
mov ecx, dword [rsp + 0x14]
mov dword [rax], ecx
mov eax, dword [rsp]
mov ecx, 1
mov dword [rsp + 0x68], ecx
mov cl, al
mov eax, dword [rsp + 0x68]
shl eax, cl
mov dword [rsp + 0x2c], eax
jmp 0x140136991
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x2c]
shl eax, 1
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x10]
cmp dword [rsp], eax
jae 0x1401369c3
mov eax, dword [rsp]
mov eax, dword [rsp + rax*4 + 0x90]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x1401369c1
mov eax, 0xfffffffd
jmp 0x140137019
jmp 0x14013697f
mov eax, dword [rsp + 0x10]
mov eax, dword [rsp + rax*4 + 0x90]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x1401369eb
mov eax, 0xfffffffd
jmp 0x140137019
mov eax, dword [rsp + 0x10]
mov eax, dword [rsp + rax*4 + 0x90]
add eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x10]
mov dword [rsp + rcx*4 + 0x90], eax
mov dword [rsp], 0
mov eax, 4
imul rax, rax, 1
mov ecx, dword [rsp]
mov dword [rsp + rax + 0xd0], ecx
lea rax, [rsp + 0x94]
mov qword [rsp + 8], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x10]
dec eax
mov dword [rsp + 0x10], eax
cmp dword [rsp + 0x10], 0
je 0x140136a83
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp]
mov dword [rax], ecx
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
jmp 0x140136a39
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], 0
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov dword [rsp], eax
mov eax, dword [rsp]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
cmp dword [rsp + 0x6c], 0
je 0x140136aed
mov eax, dword [rsp]
mov eax, dword [rsp + rax*4 + 0xd0]
mov rcx, qword [rsp + 0x1f8]
mov edx, dword [rsp + 0x10]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp]
mov eax, dword [rsp + rax*4 + 0xd0]
inc eax
mov ecx, dword [rsp]
mov dword [rsp + rcx*4 + 0xd0], eax
mov eax, dword [rsp + 0x10]
inc eax
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x1b8]
cmp dword [rsp + 0x10], eax
jb 0x140136a98
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0xd0]
mov dword [rsp + 0x1b8], eax
mov dword [rsp + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + 0x10]
mov dword [rsp + rax + 0xd0], ecx
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 8], rax
mov dword [rsp + 0x28], 0xffffffff
mov eax, dword [rsp + 0x14]
neg eax
mov dword [rsp + 0x18], eax
mov eax, 8
imul rax, rax, 0
mov qword [rsp + rax + 0x110], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x20], 0
jmp 0x140136b84
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x24], eax
jg 0x140136ff5
movsxd rax, dword [rsp + 0x24]
mov eax, dword [rsp + rax*4 + 0x90]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x70], 0
je 0x140136ff0
mov eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 0x18]
add ecx, eax
mov eax, ecx
cmp dword [rsp + 0x24], eax
jle 0x140136de5
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 0x18]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x14]
cmp dword [rsp + 0x20], eax
jbe 0x140136c13
mov eax, dword [rsp + 0x14]
mov dword [rsp + 0x50], eax
jmp 0x140136c1b
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, 1
mov dword [rsp + 0x74], ecx
mov cl, al
mov eax, dword [rsp + 0x74]
shl eax, cl
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0x30]
inc eax
cmp dword [rsp + 0x1c], eax
jbe 0x140136cd0
mov eax, dword [rsp + 0x30]
inc eax
mov ecx, dword [rsp + 0x1c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x1c], eax
movsxd rax, dword [rsp + 0x24]
lea rax, [rsp + rax*4 + 0x90]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x20]
cmp dword [rsp], eax
jae 0x140136cd0
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp], eax
jae 0x140136cd0
mov eax, dword [rsp + 0x1c]
shl eax, 1
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
cmp dword [rsp + 0x1c], eax
ja 0x140136cbb
jmp 0x140136cd0
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x1c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x1c], eax
jmp 0x140136c83
mov eax, dword [rsp]
mov ecx, 1
mov dword [rsp + 0x78], ecx
mov cl, al
mov eax, dword [rsp + 0x78]
shl eax, cl
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax]
add eax, dword [rsp + 0x20]
cmp eax, 0x5a0
jbe 0x140136d07
mov eax, 0xfffffffd
jmp 0x140137019
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x1e8]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + rax*8 + 0x110], rcx
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax]
add eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x1f0]
mov dword [rcx], eax
cmp dword [rsp + 0x28], 0
je 0x140136dd0
movsxd rax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x10]
mov dword [rsp + rax*4 + 0xd0], ecx
mov al, byte [rsp + 0x14]
mov byte [rsp + 0x39], al
mov al, byte [rsp]
mov byte [rsp + 0x38], al
mov eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 0x18]
sub ecx, eax
mov eax, ecx
mov cl, al
mov eax, dword [rsp + 0x10]
shr eax, cl
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
dec eax
cdqe
mov rax, qword [rsp + rax*8 + 0x110]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
sar rax, 3
mov ecx, dword [rsp]
sub rax, rcx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x28]
dec eax
cdqe
mov ecx, dword [rsp]
mov rax, qword [rsp + rax*8 + 0x110]
mov rdx, qword [rsp + 0x38]
mov qword [rax + rcx*8], rdx
jmp 0x140136de0
mov rax, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
jmp 0x140136bbf
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x39], al
mov eax, dword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x1f8]
lea rax, [rcx + rax*4]
cmp qword [rsp + 8], rax
jb 0x140136e19
mov byte [rsp + 0x38], 0xc0
jmp 0x140136ebe
mov rax, qword [rsp + 8]
mov ecx, dword [rsp + 0x1c0]
cmp dword [rax], ecx
jae 0x140136e6b
mov rax, qword [rsp + 8]
cmp dword [rax], 0x100
jae 0x140136e40
mov dword [rsp + 0x54], 0
jmp 0x140136e48
mov dword [rsp + 0x54], 0x60
mov al, byte [rsp + 0x54]
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
jmp 0x140136ebe
mov rax, qword [rsp + 8]
mov ecx, dword [rsp + 0x1c0]
mov eax, dword [rax]
sub eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x1d0]
mov eax, dword [rcx + rax*4]
add eax, 0x50
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 8]
mov ecx, dword [rsp + 0x1c0]
mov eax, dword [rax]
sub eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x1c8]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov ecx, 1
mov dword [rsp + 0x7c], ecx
mov cl, al
mov eax, dword [rsp + 0x7c]
shl eax, cl
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0x18]
mov cl, al
mov eax, dword [rsp + 0x10]
shr eax, cl
mov dword [rsp], eax
jmp 0x140136efe
mov eax, dword [rsp + 0x1c]
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp], eax
jae 0x140136f1a
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x38]
mov qword [rcx + rax*8], rdx
jmp 0x140136ef0
mov eax, dword [rsp + 0x24]
dec eax
mov ecx, 1
mov dword [rsp + 0x80], ecx
mov cl, al
mov eax, dword [rsp + 0x80]
shl eax, cl
mov dword [rsp], eax
jmp 0x140136f44
mov eax, dword [rsp]
shr eax, 1
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x10]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140136f64
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x10]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
jmp 0x140136f3c
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x10]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x18]
mov ecx, 1
mov dword [rsp + 0x84], ecx
mov cl, al
mov eax, dword [rsp + 0x84]
shl eax, cl
dec eax
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x10]
and ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x28]
cmp eax, dword [rsp + rcx*4 + 0xd0]
je 0x140136feb
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 0x18]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
mov ecx, 1
mov dword [rsp + 0x88], ecx
mov cl, al
mov eax, dword [rsp + 0x88]
shl eax, cl
dec eax
mov dword [rsp + 0x58], eax
jmp 0x140136f94
jmp 0x140136ba2
jmp 0x140136b7a
cmp dword [rsp + 0x2c], 0
je 0x14013700d
cmp dword [rsp + 0x40], 1
je 0x14013700d
mov dword [rsp + 0x5c], 0xfffffffb
jmp 0x140137015
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400b2870
add rsp, 0x1a8
ret