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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x24], 3
mov r8d, 4
mov edx, listen
mov ecx, dword [rsp + 0x88]
call fcn.180139a20
mov dword [rsp + 0x2c], eax
mov r8d, 4
mov edx, reloc.WS2_32.dll_recv
mov ecx, dword [rsp + 0x88]
call fcn.180139a20
mov dword [rsp + 0x28], eax
mov r8d, 4
xor edx, edx
mov ecx, dword [rsp + 0x88]
call fcn.180139a20
mov dword [rsp + 0x38], eax
mov r8d, 1
mov edx, reloc.WLDAP32.dll_Ordinal_22
mov ecx, dword [rsp + 0x88]
call fcn.180139a20
mov dword [rsp + 0x34], eax
mov r8d, 4
mov edx, 8
mov ecx, dword [rsp + 0x88]
call fcn.180139a20
mov dword [rsp + 0x68], eax
mov r8d, 1
mov edx, reloc.WS2_32.dll_socket
mov ecx, dword [rsp + 0x88]
call fcn.180139a20
not eax
and eax, 1
shl eax, 8
mov dword [rsp + 0x40], eax
mov r8d, 4
mov edx, Ordinal_32
mov ecx, dword [rsp + 0x88]
call fcn.180139a20
mov dword [rsp + 0x6c], eax
mov r8d, 1
mov edx, reloc.WS2_32.dll_setsockopt
mov ecx, dword [rsp + 0x88]
call fcn.180139a20
mov dword [rsp + 0x58], eax
mov r8d, 1
mov edx, Ordinal_27
mov ecx, dword [rsp + 0x88]
call fcn.180139a20
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x58], 1
jne 0x180115382
mov dword [rsp + 0x60], 1
jmp 0x18011538a
mov dword [rsp + 0x60], 0
cmp dword [rsp + 0x4c], 0
jne 0x18011539b
mov dword [rsp + 0x5c], 1
jmp 0x1801153a3
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x60]
or ecx, eax
mov eax, ecx
test eax, eax
jne 0x1801153bd
mov dword [rsp + 0x64], 0
jmp 0x1801153c5
mov dword [rsp + 0x64], 1
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x80]
call fcn.1800c9d40
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xa4
jb 0x18011541c
cmp dword [rsp + 0x48], 0xa6
jbe 0x180115409
cmp dword [rsp + 0x48], 0x1ae
jbe 0x18011541c
cmp dword [rsp + 0x48], 0x1b1
jbe 0x180115409
jmp 0x18011541c
mov eax, dword [rsp + 0x2c]
and eax, 1
test eax, eax
je 0x18011541c
mov dword [rsp + 0x24], 1
mov rcx, qword [rsp + 0x80]
call fcn.1800c9d40
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xb8
ja 0x180115474
cmp dword [rsp + 0x30], 0xb6
jae case.0x180115472.179
mov eax, dword [rsp + 0x30]
sub eax, 0xa4
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xf
ja case.0x180115472.167
mov eax, dword [rsp + 0x30]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x115a7c]
add rax, rcx
jmp rax
cmp dword [rsp + 0x30], 0x1b6
ja 0x1801154c5
cmp dword [rsp + 0x30], 0x1b6
je 0x18011557c
cmp dword [rsp + 0x30], 0xbb
jb case.0x180115472.167
cmp dword [rsp + 0x30], 0xbc
jbe case.0x180115472.179
cmp dword [rsp + 0x30], 0x1ae
jbe case.0x180115472.167
cmp dword [rsp + 0x30], 0x1b1
jbe 0x1801154e6
jmp case.0x180115472.167
cmp dword [rsp + 0x30], 0x1b9
jb case.0x180115472.167
cmp dword [rsp + 0x30], 0x1ba
jbe 0x18011557c
jmp case.0x180115472.167
cmp dword [rsp + 0x4c], 0
jne 0x1801154fc
cmp dword [rsp + 0x58], 1
jne 0x1801154fc
mov dword [rsp + 0x24], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180115528
cmp dword [rsp + 0x28], 0xf
je 0x180115520
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
je 0x180115520
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x28], eax
jne 0x180115528
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x34], 0
je 0x18011553e
cmp dword [rsp + 0x38], 0xf
jne 0x18011553e
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x3c], 0xf
jne 0x18011554d
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x34], 0
jne 0x180115577
mov r8d, 4
mov edx, 8
mov ecx, dword [rsp + 0x88]
call fcn.180139a20
test eax, eax
je 0x180115577
mov dword [rsp + 0x24], 1
jmp case.0x180115472.167
cmp dword [rsp + 0x2c], 0xf
jne 0x18011558b
mov dword [rsp + 0x24], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1801155ad
cmp dword [rsp + 0x28], 0xf
je 0x1801155a5
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jne 0x1801155ad
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x34], 0
jne 0x1801155c3
cmp dword [rsp + 0x38], 0xf
jne 0x1801155c3
mov dword [rsp + 0x24], 1
jmp case.0x180115472.167
cmp dword [rsp + 0x34], 0
je 0x1801155ea
cmp dword [rsp + 0x28], 0xf
jne 0x1801155ea
cmp dword [rsp + 0x3c], 0xf
jne 0x1801155e5
mov dword [rsp + 0x24], 1
jmp case.0x180115472.167
cmp dword [rsp + 0x4c], 0
jne 0x180115600
cmp dword [rsp + 0x58], 1
jne 0x180115600
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x34], 0
jne 0x180115631
cmp dword [rsp + 0x3c], 0xf
je 0x180115629
cmp dword [rsp + 0x38], 0xf
je 0x180115629
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x38], eax
je 0x180115629
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x38], eax
jne 0x180115631
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x34], 0
jne 0x180115650
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180115650
cmp dword [rsp + 0x28], 0xf
jne 0x180115650
mov dword [rsp + 0x24], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180115675
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
je 0x18011566d
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x28], eax
jne 0x180115675
mov dword [rsp + 0x24], 1
jmp case.0x180115472.167
cmp dword [rsp + 0x34], 0
je 0x18011569c
cmp dword [rsp + 0x28], 0xf
jne 0x18011569c
cmp dword [rsp + 0x2c], 0xf
jne 0x180115697
mov dword [rsp + 0x24], 1
jmp case.0x180115472.167
cmp dword [rsp + 0x2c], 0xf
jne 0x1801156ab
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x34], 0
jne 0x1801156c1
cmp dword [rsp + 0x38], 0xf
jne 0x1801156c1
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x34], 0
jne 0x1801156ea
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1801156ea
cmp dword [rsp + 0x28], 0xf
je 0x1801156e2
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jne 0x1801156ea
mov dword [rsp + 0x24], 1
jmp case.0x180115472.167
cmp dword [rsp + 0x34], 0
je 0x18011570e
cmp dword [rsp + 0x28], 0xf
jne 0x18011570e
cmp dword [rsp + 0x2c], 0xf
jne 0x18011570c
mov dword [rsp + 0x24], 1
jmp case.0x180115472.167
cmp dword [rsp + 0x34], 0
je 0x180115737
cmp dword [rsp + 0x2c], 0xf
je 0x18011572f
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180115737
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jne 0x180115737
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x34], 0
jne 0x180115754
cmp dword [rsp + 0x2c], 0xf
je 0x18011574c
cmp dword [rsp + 0x38], 0xf
jne 0x180115754
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x34], 0
jne case.0x180115472.167
movzx eax, byte [rsp + 0x20]
test eax, eax
je case.0x180115472.167
cmp dword [rsp + 0x28], 0xf
je 0x180115775
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jne case.0x180115472.167
mov dword [rsp + 0x24], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18011583a
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x32e], 1
cmp dword [rsp + 0x4c], 0
je 0x1801157ae
mov eax, dword [rsp + 0x40]
bts eax, 9
mov dword [rsp + 0x40], eax
jmp 0x1801157ba
mov eax, dword [rsp + 0x40]
bts eax, 0xa
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x80]
call fcn.1800c9d40
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x1af
jb 0x18011583a
cmp dword [rsp + 0x44], 0x1b1
jbe 0x1801157ff
cmp dword [rsp + 0x44], 0x1b6
je 0x1801157ff
cmp dword [rsp + 0x44], 0x1b8
jbe 0x18011583a
cmp dword [rsp + 0x44], 0x1ba
jbe 0x1801157ff
jmp 0x18011583a
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.180113ac0
mov edx, eax
lea rcx, [rsp + 0x24]
call fcn.180113a60
movzx eax, al
test eax, eax
jne 0x18011583a
xor eax, eax
jmp 0x180115a75
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x80]
call fcn.180113ac0
mov edx, eax
lea rcx, [rsp + 0x24]
call fcn.180113a60
movzx eax, al
test eax, eax
jne 0x180115875
xor eax, eax
jmp 0x180115a75
mov rcx, qword [rsp + 0x80]
call fcn.1800c9d40
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xa4
jb 0x1801158ef
cmp dword [rsp + 0x50], 0xa6
jbe 0x1801158b0
cmp dword [rsp + 0x50], 0x1ae
jbe 0x1801158ef
cmp dword [rsp + 0x50], 0x1b1
jbe 0x1801158b0
jmp 0x1801158ef
mov eax, dword [rsp + 0x2c]
inc eax
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.180113ac0
mov edx, eax
lea rcx, [rsp + 0x24]
call fcn.180113a60
movzx eax, al
test eax, eax
jne 0x1801158ef
xor eax, eax
jmp 0x180115a75
movzx eax, byte [rsp + 0x20]
test eax, eax
je case.0x18011593a.167
mov rcx, qword [rsp + 0x80]
call fcn.1800c9d40
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
sub eax, 0xa4
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x18
ja case.0x18011593a.167
mov eax, dword [rsp + 0x54]
lea rcx, [0x180000000]
movzx eax, byte [rcx + rax + 0x115ac4]
mov eax, dword [rcx + rax*4 + 0x115abc]
add rax, rcx
jmp rax
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.180113ac0
mov edx, eax
lea rcx, [rsp + 0x24]
call fcn.180113a60
movzx eax, al
test eax, eax
jne case.0x18011593a.167
xor eax, eax
jmp 0x180115a75
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.180113ac0
mov edx, eax
lea rcx, [rsp + 0x24]
call fcn.180113a60
movzx eax, al
test eax, eax
jne 0x1801159b2
xor eax, eax
jmp 0x180115a75
cmp dword [rsp + 0x34], 0
je 0x1801159ee
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.1800c9a30
mov eax, dword [rsp + 0x68]
shl eax, 4
mov ecx, dword [rsp + 0x40]
or ecx, eax
mov eax, ecx
or eax, dword [rsp + 0x38]
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.1800c9ae0
jmp 0x180115a39
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
call fcn.180113ac0
mov edx, eax
lea rcx, [rsp + 0x24]
call fcn.180113a60
movzx eax, al
test eax, eax
jne 0x180115a26
xor eax, eax
jmp 0x180115a75
mov eax, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.1800c9ae0
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x80]
call fcn.1801140b0
mov edx, eax
lea rcx, [rsp + 0x24]
call fcn.180113a60
movzx eax, al
test eax, eax
jne 0x180115a71
xor eax, eax
jmp 0x180115a75
mov eax, dword [rsp + 0x24]
add rsp, 0x78
ret