Function at 0x1400316b0
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14009e7a8]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x24], 0xb58c0cf5
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
sub eax, 0x89aaf04a
je 0x140031c61
jmp 0x1400316ed
mov eax, dword [rsp + 0x20]
sub eax, 0x8ccd27f6
je 0x1400319f2
jmp 0x140031701
mov eax, dword [rsp + 0x20]
sub eax, 0x8f13feac
je 0x140031bdf
jmp 0x140031715
mov eax, dword [rsp + 0x20]
sub eax, 0x972fdadf
je 0x140031ba8
jmp 0x140031729
mov eax, dword [rsp + 0x20]
sub eax, 0x9ec87d8d
je 0x140031a6f
jmp 0x14003173d
mov eax, dword [rsp + 0x20]
sub eax, 0xa9e4593d
je 0x140031f8d
jmp 0x140031751
mov eax, dword [rsp + 0x20]
sub eax, 0xabaca9d4
je 0x140031cde
jmp 0x140031765
mov eax, dword [rsp + 0x20]
sub eax, 0xb58c0cf5
je 0x14003199a
jmp 0x140031779
mov eax, dword [rsp + 0x20]
sub eax, 0xbc7fde08
je 0x140031e7a
jmp 0x14003178d
mov eax, dword [rsp + 0x20]
sub eax, 0xbeda14e8
je 0x140031d37
jmp 0x1400317a1
mov eax, dword [rsp + 0x20]
sub eax, 0xc3d2af03
je 0x140031faa
jmp 0x1400317b5
mov eax, dword [rsp + 0x20]
sub eax, 0xc3fd4f17
je 0x140031b81
jmp 0x1400317c9
mov eax, dword [rsp + 0x20]
sub eax, 0xcc505f3e
je 0x140031cbe
jmp 0x1400317dd
mov eax, dword [rsp + 0x20]
sub eax, 0xcf5a24eb
je 0x140031cb1
jmp 0x1400317f1
mov eax, dword [rsp + 0x20]
sub eax, 0xd687573c
je 0x140031d51
jmp 0x140031805
mov eax, dword [rsp + 0x20]
sub eax, 0xdc2f100f
je 0x140031e87
jmp 0x140031819
mov eax, dword [rsp + 0x20]
sub eax, 0xdceb39a2
je 0x140031b9b
jmp 0x14003182d
mov eax, dword [rsp + 0x20]
sub eax, 0xe232fc4e
je 0x140031f66
jmp 0x140031841
mov eax, dword [rsp + 0x20]
sub eax, 0xef78e7ca
je 0x140031df1
jmp 0x140031855
mov eax, dword [rsp + 0x20]
sub eax, 0xeff9e396
je 0x140031f2f
jmp 0x140031869
mov eax, dword [rsp + 0x20]
sub eax, 0xfc1b9673
je 0x140031ccb
jmp 0x14003187d
mov eax, dword [rsp + 0x20]
sub eax, 0xfc68f696
je 0x140031b8e
jmp 0x140031891
mov eax, dword [rsp + 0x20]
sub eax, 0xdf81199
je 0x140031ed2
jmp 0x1400318a5
mov eax, dword [rsp + 0x20]
sub eax, 0x135b67f7
je 0x140031e5d
jmp 0x1400318b9
mov eax, dword [rsp + 0x20]
sub eax, 0x145d0892
je 0x140031aff
jmp 0x1400318cd
mov eax, dword [rsp + 0x20]
sub eax, 0x1c909a05
je 0x140031a7c
jmp 0x1400318e1
mov eax, dword [rsp + 0x20]
sub eax, 0x2c50957b
je 0x140031d6f
jmp 0x1400318f5
mov eax, dword [rsp + 0x20]
sub eax, 0x3677cda9
je 0x140031a89
jmp 0x140031909
mov eax, dword [rsp + 0x20]
sub eax, 0x408a18f6
je 0x140031f4d
jmp 0x14003191d
mov eax, dword [rsp + 0x20]
sub eax, 0x51d72691
je 0x140031d44
jmp 0x140031931
mov eax, dword [rsp + 0x20]
sub eax, 0x620f45bb
je 0x1400319a7
jmp 0x140031945
mov eax, dword [rsp + 0x20]
sub eax, 0x6f42e961
je 0x140031f80
jmp 0x140031959
mov eax, dword [rsp + 0x20]
sub eax, 0x7525a6cc
je 0x140031f22
jmp 0x14003196d
mov eax, dword [rsp + 0x20]
sub eax, 0x7e8a478f
je 0x140031ab4
jmp 0x140031981
mov eax, dword [rsp + 0x20]
sub eax, 0x7fcbb10f
je 0x140031f73
jmp 0x140031995
jmp 0x140031fb2
mov dword [rsp + 0x24], 0x620f45bb
jmp 0x140031fb2
mov eax, dword [0x1400a0c28]
mov ecx, dword [0x1400a0c2c]
xor r8d, r8d
sub r8d, 1
mov edx, eax
add edx, r8d
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xe232fc4e
mov ecx, 0x8ccd27f6
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov ecx, dword [0x1400a0c28]
mov eax, dword [0x1400a0c2c]
xor r8d, r8d
sub r8d, 1
mov edx, ecx
add edx, r8d
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete r11b
cmp eax, 0xa
setl r10b
mov al, r11b
xor al, 0xff
mov r8b, r10b
xor r8b, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and r11b, cl
mov r9b, r8b
and r9b, 0xff
and r10b, cl
or dl, r11b
or r9b, r10b
xor dl, r9b
or al, r8b
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xe232fc4e
mov ecx, 0x9ec87d8d
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov dword [rsp + 0x24], 0x1c909a05
jmp 0x140031fb2
mov dword [rsp + 0x24], 0x3677cda9
jmp 0x140031fb2
mov ecx, 0x202
lea rdx, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, eax
mov eax, 0x972fdadf
mov ecx, 0x7e8a478f
cmp edx, 0
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov eax, dword [0x1400a0c28]
mov ecx, dword [0x1400a0c2c]
xor r8d, r8d
sub r8d, 1
mov edx, eax
add edx, r8d
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x7fcbb10f
mov ecx, 0x145d0892
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov ecx, dword [0x1400a0c28]
mov eax, dword [0x1400a0c2c]
mov edx, ecx
add edx, 0x1cbeab84
sub edx, 1
sub edx, 0x1cbeab84
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete r11b
cmp eax, 0xa
setl r10b
mov al, r11b
xor al, 0xff
mov r8b, r10b
xor r8b, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and r11b, cl
mov r9b, r8b
and r9b, 0
and r10b, cl
or dl, r11b
or r9b, r10b
xor dl, r9b
or al, r8b
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x7fcbb10f
mov ecx, 0xc3fd4f17
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov dword [rsp + 0x24], 0xfc68f696
jmp 0x140031fb2
mov dword [rsp + 0x24], 0xdceb39a2
jmp 0x140031fb2
mov dword [rsp + 0x24], 0x408a18f6
jmp 0x140031fb2
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
mov eax, 0xabaca9d4
mov ecx, 0x8f13feac
cmp qword [rsp + 0x28], 0xffffffffffffffff
cmove eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov ecx, dword [0x1400a0c28]
mov eax, dword [0x1400a0c2c]
mov edx, ecx
add edx, 0x9206679c
sub edx, 1
sub edx, 0x9206679c
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete r11b
cmp eax, 0xa
setl r10b
mov al, r11b
xor al, 0xff
mov r8b, r10b
xor r8b, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and r11b, cl
mov r9b, r8b
and r9b, 0xff
and r10b, cl
or dl, r11b
or r9b, r10b
xor dl, r9b
or al, r8b
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x6f42e961
mov ecx, 0x89aaf04a
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov eax, dword [0x1400a0c28]
mov ecx, dword [0x1400a0c2c]
mov edx, eax
add edx, 0xb4099aac
sub edx, 1
sub edx, 0xb4099aac
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x6f42e961
mov ecx, 0xcf5a24eb
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov dword [rsp + 0x24], 0xcc505f3e
jmp 0x140031fb2
mov dword [rsp + 0x24], 0xfc1b9673
jmp 0x140031fb2
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x24], 0x408a18f6
jmp 0x140031fb2
mov word [rsp + 0x38], 2
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
mov cx, ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_bind]
mov edx, eax
mov eax, 0x2c50957b
mov ecx, 0xbeda14e8
cmp edx, 0xffffffff
cmove eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov dword [rsp + 0x24], 0x51d72691
jmp 0x140031fb2
mov dword [rsp + 0x24], 0xd687573c
jmp 0x140031fb2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x24], 0x408a18f6
jmp 0x140031fb2
mov ecx, dword [0x1400a0c28]
mov eax, dword [0x1400a0c2c]
mov edx, ecx
add edx, 0x777090d0
sub edx, 1
sub edx, 0x777090d0
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete r11b
cmp eax, 0xa
setl r10b
mov al, r11b
xor al, 0xff
mov r8b, r10b
xor r8b, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and r11b, cl
mov r9b, r8b
and r9b, 0xff
and r10b, cl
or dl, r11b
or r9b, r10b
xor dl, r9b
or al, r8b
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xa9e4593d
mov ecx, 0xef78e7ca
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov rcx, qword [rsp + 0x28]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
sete al
and al, 1
mov byte [rsp + 0x37], al
mov eax, dword [0x1400a0c28]
mov ecx, dword [0x1400a0c2c]
mov edx, eax
sub edx, 0x5ba30a0c
sub edx, 1
add edx, 0x5ba30a0c
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xa9e4593d
mov ecx, 0x135b67f7
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov dl, byte [rsp + 0x37]
mov eax, 0x408a18f6
mov ecx, 0xbc7fde08
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov dword [rsp + 0x24], 0xdc2f100f
jmp 0x140031fb2
mov eax, dword [0x1400a0c28]
mov ecx, dword [0x1400a0c2c]
xor r8d, r8d
sub r8d, 1
mov edx, eax
add edx, r8d
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xc3d2af03
mov ecx, 0xdf81199
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov eax, dword [0x1400a0c28]
mov ecx, dword [0x1400a0c2c]
mov edx, eax
add edx, 0xdf42d3e1
sub edx, 1
sub edx, 0xdf42d3e1
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xc3d2af03
mov ecx, 0x7525a6cc
test dl, 1
cmovne eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x140031fb2
mov dword [rsp + 0x24], 0xeff9e396
jmp 0x140031fb2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x24], 0x408a18f6
jmp 0x140031fb2
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140058500
nop
add rsp, 0x1e8
ret
mov dword [rsp + 0x24], 0x8ccd27f6
jmp 0x140031fb2
mov dword [rsp + 0x24], 0x145d0892
jmp 0x140031fb2
mov dword [rsp + 0x24], 0x89aaf04a
jmp 0x140031fb2
mov rcx, qword [rsp + 0x28]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rsp + 0x24], 0xef78e7ca
jmp 0x140031fb2
mov dword [rsp + 0x24], 0xdf81199
jmp 0x1400316d5