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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rcx, qword [rsp + 0xc8]
call fcn.1401637e0
movzx eax, al
test eax, eax
jne 0x140162994
mov eax, 7
jmp 0x140163067
mov rcx, qword [rsp + 0xc8]
call fcn.14008fb80
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x98]
call fcn.1401479a0
mov rdx, qword [rsp + 0xc0]
movzx ecx, byte [rsp + 0x20]
call fcn.14015ee20
movzx eax, al
test eax, eax
je 0x140162a02
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
jmp 0x1401629d6
movsx eax, byte [rsp + 0x20]
cmp eax, 0x2d
jne 0x140162a16
mov dword [rsp + 0x40], 1
jmp 0x140162a1e
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xd0]
movzx ecx, byte [rsp + 0x40]
mov byte [rax + 0x308], cl
movsx eax, byte [rsp + 0x20]
cmp eax, 0x2d
je 0x140162a45
movsx eax, byte [rsp + 0x20]
cmp eax, 0x2b
jne 0x140162a56
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
movsx eax, byte [rsp + 0x20]
cmp eax, 0x49
je 0x140162a6a
movsx eax, byte [rsp + 0x20]
cmp eax, 0x69
jne 0x140162a86
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x20]
call fcn.140163070
jmp 0x140163067
movsx eax, byte [rsp + 0x20]
cmp eax, 0x4e
je 0x140162a9a
movsx eax, byte [rsp + 0x20]
cmp eax, 0x6e
jne 0x140162ab6
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x20]
call fcn.140163190
jmp 0x140163067
mov byte [rsp + 0x21], 0
movsx eax, byte [rsp + 0x20]
cmp eax, 0x30
jne 0x140162b36
mov rcx, qword [rsp + 0xc8]
call fcn.14008fb80
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x23], al
movsx eax, byte [rsp + 0x23]
cmp eax, 0x78
je 0x140162aff
movsx eax, byte [rsp + 0x23]
cmp eax, 0x58
jne 0x140162b24
mov byte [rsp + 0x21], 1
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
jmp 0x140162b36
movzx edx, byte [rsp + 0x23]
mov rcx, qword [rsp + 0xc8]
call fcn.140163620
mov rax, qword [rsp + 0xd0]
add rax, 8
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xd0]
add rax, 0x308
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xd0]
add rax, 8
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x22], 0
movsx eax, byte [rsp + 0x20]
cmp eax, 0x30
jne 0x140162b9d
mov byte [rsp + 0x22], 1
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
jmp 0x140162b7b
jmp 0x140162bb0
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140162bc3
mov dword [rsp + 0x44], reloc.WS2_32.dll_ntohs
jmp 0x140162bcb
mov dword [rsp + 0x44], 9
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x78], eax
movzx ecx, byte [rsp + 0x20]
call fcn.14015f990
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x48], eax
jbe 0x140162bed
jmp 0x140162c29
mov byte [rsp + 0x22], 1
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
je 0x140162c1a
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x48]
mov byte [rax], cl
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
jmp 0x140162b9f
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0xf8]
mov rax, qword [rax]
movzx eax, byte [rax]
mov byte [rsp + 0x2d], al
movsx eax, byte [rsp + 0x20]
movsx ecx, byte [rsp + 0x2d]
cmp eax, ecx
jne 0x140162d1f
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x30], rax
jne 0x140162ca0
movsx eax, byte [rsp + 0x20]
cmp eax, 0x30
jne 0x140162ca0
mov byte [rsp + 0x22], 1
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
jmp 0x140162c74
jmp 0x140162cb3
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140162cc6
mov dword [rsp + 0x4c], reloc.WS2_32.dll_ntohs
jmp 0x140162cce
mov dword [rsp + 0x4c], 9
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x7c], eax
movzx ecx, byte [rsp + 0x20]
call fcn.14015f990
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x50], eax
jbe 0x140162cf0
jmp 0x140162d1f
mov byte [rsp + 0x22], 1
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
je 0x140162d1d
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x50]
mov byte [rax], cl
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x140162ca2
movzx eax, byte [rsp + 0x22]
test eax, eax
jne 0x140162d65
lea rcx, [rsp + 0x98]
call fcn.140163530
movzx eax, al
test eax, eax
jne 0x140162d46
mov eax, 7
jmp 0x140163067
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140162d5b
mov eax, 2
jmp 0x140163067
mov eax, 7
jmp 0x140163067
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0xc8]
call fcn.140163620
mov rcx, qword [rsp + 0xc8]
call fcn.14008fb80
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
mov byte [rsp + 0x24], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x3c], al
cmp byte [rsp + 0x3c], 0x45
je 0x140162dc6
cmp byte [rsp + 0x3c], 0x50
je 0x140162dec
cmp byte [rsp + 0x3c], 0x65
je 0x140162dc6
cmp byte [rsp + 0x3c], 0x70
je 0x140162dec
jmp 0x140162df5
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140162dd9
mov dword [rsp + 0x54], 1
jmp 0x140162de1
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
mov byte [rsp + 0x24], al
jmp 0x140162df5
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x24], al
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x140162f47
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
movsx eax, byte [rsp + 0x20]
cmp eax, 0x2d
jne 0x140162e2c
mov byte [rsp + 0x2c], 1
jmp 0x140162e31
mov byte [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x2e], al
movsx eax, byte [rsp + 0x20]
cmp eax, 0x2b
je 0x140162e4e
movsx eax, byte [rsp + 0x20]
cmp eax, 0x2d
jne 0x140162e5f
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
mov byte [rsp + 0x25], 0
movsx eax, byte [rsp + 0x20]
cmp eax, 0x30
jne 0x140162e86
mov byte [rsp + 0x25], 1
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
jmp 0x140162e64
jmp 0x140162e99
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
movzx ecx, byte [rsp + 0x20]
call fcn.14015f990
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0xa
jb 0x140162eb0
jmp 0x140162ed8
mov byte [rsp + 0x25], 1
imul eax, dword [rsp + 0x28], 0xa
add eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x1450
jle 0x140162ed6
mov dword [rsp + 0x28], 0x1451
jmp 0x140162ed8
jmp 0x140162e88
movzx ecx, byte [rsp + 0x20]
call fcn.14015f990
cmp eax, 0xa
jae 0x140162efa
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
jmp 0x140162ed8
movzx eax, byte [rsp + 0x2e]
test eax, eax
je 0x140162f0d
mov eax, dword [rsp + 0x28]
neg eax
mov dword [rsp + 0x28], eax
movzx eax, byte [rsp + 0x25]
test eax, eax
jne 0x140162f47
lea rcx, [rsp + 0x98]
call fcn.140163530
movzx eax, al
test eax, eax
je 0x140162f3d
mov rcx, qword [rsp + 0xc8]
call fcn.140163580
mov byte [rsp + 0x20], al
jmp 0x140162f47
mov eax, 7
jmp 0x140163067
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0xc8]
call fcn.140163620
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x30], rax
je 0x140162f81
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax - 1]
test eax, eax
jne 0x140162f81
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
jmp 0x140162f59
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x30], rax
jne 0x140162f97
mov eax, 2
jmp 0x140163067
cmp dword [rsp + 0x28], 0x1450
jle 0x140162fab
mov eax, 9
jmp 0x140163067
cmp dword [rsp + 0x28], 0xffffebb0
jge 0x140162fbf
mov eax, 8
jmp 0x140163067
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140162fd2
mov dword [rsp + 0x5c], 4
jmp 0x140162fda
mov dword [rsp + 0x5c], 1
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x38]
imul eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x1450
jle 0x14016300e
mov eax, 9
jmp 0x140163067
cmp dword [rsp + 0x28], 0xffffebb0
jge 0x14016301f
mov eax, 8
jmp 0x140163067
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 4], eax
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x14016305b
mov dword [rsp + 0x60], 1
jmp 0x140163063
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
add rsp, 0xb8
ret