Function at 0x140231c30
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov rdi, rsp
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax + 0x20]
and eax, 1
test eax, eax
jne 0x140231c94
mov dword [rsp + 0x8c], 1
jmp 0x140231c9f
mov dword [rsp + 0x8c], 0
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
add eax, dword [rsp + 0xe8]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x38]
inc eax
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x90]
mov dword [rax + 0x38], ecx
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 8]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0xf0], 0
je 0x140231d35
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0xd8]
sub ecx, eax
mov eax, ecx
sub eax, dword [rsp + 0x38]
mov dword [rsp + 0x44], eax
jmp 0x140231d60
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x38]
inc eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x38]
add eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xc0]
mov dword [rcx + 0x38], eax
mov rax, qword [rsp + 0xd0]
cmp dword [rax + 0x14], 0
je 0x140231d84
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x14]
inc eax
mov dword [rsp + 0x94], eax
jmp 0x140231d96
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x30]
call fcn.140287120
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0x1c], eax
cmp dword [rsp + 0xe0], 0
je 0x140231dcd
mov dword [rsp + 0x98], 4
jmp 0x140231dd8
mov dword [rsp + 0x98], 0
mov eax, dword [rsp + 0x98]
or eax, 1
mov byte [rsp + 0x20], al
mov r9d, dword [rsp + 0xe0]
mov r8d, dword [rsp + 0x44]
mov rax, qword [rsp + 0xc8]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0xc0]
call fcn.14024d820
cmp dword [rsp + 0x38], 0
je 0x140231e3c
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov r9d, eax
mov rax, qword [rsp + 0xc8]
mov r8d, dword [rax + 0xc]
mov edx, 0x74
mov rcx, qword [rsp + 0x30]
call fcn.140279e90
cmp dword [rsp + 0xf0], 0
jne 0x140231e7f
cmp dword [rsp + 0xe8], 0
jle 0x140231e7f
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
add eax, dword [rsp + 0x38]
mov r9d, dword [rsp + 0xe8]
mov r8d, eax
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0xc0]
call fcn.14024e900
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x44]
add edx, ecx
mov ecx, edx
mov edx, dword [rsp + 0x48]
mov dword [rsp + 0x20], edx
mov r9d, eax
mov r8d, ecx
mov edx, 0x65
mov rcx, qword [rsp + 0x30]
call fcn.140279ef0
cmp dword [rsp + 0x4c], 0
jle 0x14023217b
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x38]
inc eax
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x38]
mov rcx, qword [rsp + 0xc8]
add eax, dword [rcx + 8]
mov rcx, qword [rsp + 0xc0]
mov dword [rcx + 0x38], eax
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 8]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
add eax, dword [rsp + 0x38]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x38], 0
je 0x140231f37
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov r8d, eax
mov edx, socket
mov rcx, qword [rsp + 0x30]
call fcn.140279e40
mov dword [rsp + 0x5c], eax
jmp 0x140231f56
mov rax, qword [rsp + 0xc8]
mov r8d, dword [rax + 0xc]
mov edx, WSAStartup
mov rcx, qword [rsp + 0x30]
call fcn.140279e40
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x58]
mov edx, 0x5e
mov rcx, qword [rsp + 0x30]
call fcn.140279ef0
mov rax, qword [rsp + 0xc8]
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
call fcn.140285d90
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x140231fb0
jmp 0x140232329
mov eax, dword [rsp + 0xe8]
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 6]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x78]
mov rdi, qword [rcx + 0x18]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
rep stosb byte [rdi], al
mov r9d, 0xfffffff7
mov r8, qword [rsp + 0x78]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
call fcn.14027a7a0
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 8]
mov rcx, qword [rsp + 0x78]
movzx ecx, word [rcx + 6]
sub eax, ecx
dec eax
mov r9d, eax
mov r8d, dword [rsp + 0x4c]
mov rax, qword [rsp + 0xc8]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0xc0]
call fcn.140224270
mov rcx, qword [rsp + 0x68]
mov qword [rcx + 0x10], rax
mov rcx, qword [rsp + 0x30]
call fcn.14027ad40
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
inc eax
mov ecx, dword [rsp + 0x60]
inc ecx
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, ecx
mov edx, setsockopt
mov rcx, qword [rsp + 0x30]
call fcn.140279ef0
mov rcx, qword [rsp + 0x30]
call fcn.140287120
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0x14], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x38]
inc eax
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0xa8]
mov dword [rax + 0x38], ecx
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0xa8]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0xc8]
mov r9d, dword [rax + 0x14]
mov rax, qword [rsp + 0xc8]
mov r8d, dword [rax + 0x10]
mov edx, 0xe
mov rcx, qword [rsp + 0x30]
call fcn.140279e90
mov rax, qword [rsp + 0xc8]
mov r8d, dword [rax + 0xc]
mov edx, 0x88
mov rcx, qword [rsp + 0x30]
call fcn.140279e40
cmp dword [rsp + 0x54], 0
je 0x14023213d
mov rax, qword [rsp + 0xc8]
mov r9d, dword [rax + 0x1c]
mov r8d, dword [rsp + 0x54]
mov edx, socket
mov rcx, qword [rsp + 0x30]
call fcn.140279e90
mov edx, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x30]
call fcn.140286870
mov rax, qword [rsp + 0xc8]
mov r9d, dword [rax + 8]
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xc0]
call fcn.14024e900
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.140286870
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax + 0x20]
and eax, 1
test eax, eax
je 0x140232198
mov dword [rsp + 0x50], 0x80
jmp 0x1402321a0
mov dword [rsp + 0x50], 0x81
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x44]
add edx, ecx
mov ecx, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x48]
mov rax, qword [rsp + 0xc8]
mov r8d, dword [rax + 0xc]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.14027a120
cmp dword [rsp + 0x54], 0
je 0x140232329
mov dword [rsp + 0x84], 0
mov r8d, dword [rsp + 0x54]
mov edx, 0x31
mov rcx, qword [rsp + 0x30]
call fcn.140279e40
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0xc8]
mov r8d, dword [rax + 0xc]
mov edx, 0x21
mov rcx, qword [rsp + 0x30]
call fcn.140279e40
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x14023229a
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x38]
inc eax
mov dword [rsp + 0xac], eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0xac]
mov dword [rax + 0x38], ecx
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x3c]
mov rax, qword [rsp + 0xc8]
mov r8d, dword [rax + 0xc]
mov edx, 0x63
mov rcx, qword [rsp + 0x30]
call fcn.140279ef0
mov rax, qword [rsp + 0xc8]
mov r8d, dword [rax + 0xc]
mov edx, 0x78
mov rcx, qword [rsp + 0x30]
call fcn.140279e40
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x140232318
mov rcx, qword [rsp + 0x30]
call fcn.14027ad40
add eax, 2
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x84]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x88]
mov r8d, eax
mov edx, 0x35
mov rcx, qword [rsp + 0x30]
call fcn.140279ef0
mov dx, 0x80
mov rcx, qword [rsp + 0x30]
call fcn.14027a8c0
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call fcn.140286870
add rsp, 0xb0
pop rdi
ret