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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx]
mov r15, rcx
movzx ebp, byte [rdx + 0x20]
mov rdi, rdx
mov rbx, qword [rcx + 0x10]
mov r13d, r9d
not ebp
mov ecx, dword [rax]
and ebp, 1
mov r9d, dword [r15 + 0x38]
inc r9d
mov dword [rsp + 0x80], ecx
mov dword [r15 + 0x38], r9d
mov eax, dword [rdi + 8]
lea edx, [rcx + rbp]
add edx, dword [rsp + 0xa8]
cmp dword [rsp + 0xb0], 0
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x88], r9d
mov dword [rsp + 0x90], eax
je 0x140100656
mov r12d, r13d
sub r12d, ecx
sub r12d, ebp
jmp 0x140100662
lea eax, [r9 + rdx]
mov dword [r15 + 0x38], eax
lea r12d, [r9 + 1]
mov eax, dword [r8 + 0x14]
test eax, eax
je 0x14010066e
inc eax
jmp 0x140100672
mov eax, dword [r8 + 0x10]
mov r14, qword [rbx + 0x18]
mov dword [rsp + 0x30], eax
movsxd rsi, dword [r14 + 0x54]
lea eax, [rsi + 1]
mov dword [r14 + 0x54], eax
lea eax, [rsi - 1]
test esi, eax
jne 0x1401006aa
mov rdx, qword [r14 + 0x58]
lea eax, [rsi*2 + 1]
mov rcx, qword [r14]
movsxd r8, eax
shl r8, 2
call fcn.140097e80
mov qword [r14 + 0x58], rax
mov rcx, qword [r14 + 0x58]
test rcx, rcx
je 0x1401006ba
mov dword [rcx + rsi*4], 0xffffffff
mov r9d, dword [rsp + 0xa0]
mov eax, 1
mov rdx, qword [rdi]
test r9d, r9d
mov ecx, 5
not esi
cmovne eax, ecx
mov dword [rdi + 0x1c], esi
mov rcx, r15
mov byte [rsp + 0x20], al
mov r8d, r12d
call fcn.1400d6c60
mov esi, dword [rsp + 0x80]
xor r9d, r9d
test ebp, ebp
je 0x140100751
mov rax, qword [rbx + 0x18]
lea edx, [r12 + rsi]
movsxd rcx, dword [rbx + 0xb8]
mov r8d, dword [rdi + 0xc]
cmp dword [rax + 0x3c], ecx
jg 0x140100726
mov dword [rsp + 0x20], r9d
mov rcx, rbx
mov r9d, edx
mov edx, WSACleanup
call fcn.1400b9830
jmp 0x140100751
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], WSACleanup
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
cmp dword [rsp + 0xb0], 0
mov r14d, dword [rsp + 0xa8]
jne 0x14010077d
test r14d, r14d
jle 0x14010077d
lea r8d, [r12 + rsi]
mov r9d, r14d
add r8d, ebp
mov edx, r13d
mov rcx, r15
call fcn.1400d4d60
mov eax, dword [rsp + 0x90]
mov edx, dword [rsp + 0x34]
movsxd rcx, dword [rbx + 0xb8]
sub edx, eax
mov dword [rsp + 0x34], edx
lea r8d, [r12 + rax]
mov rax, qword [rbx + 0x18]
mov dword [rsp + 0xb0], r8d
cmp dword [rax + 0x3c], ecx
jg 0x1401007ca
mov eax, dword [rsp + 0x88]
mov r9d, edx
mov edx, 0x64
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.1400b9830
xor r9d, r9d
jmp 0x1401007fe
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsp + 0x88]
mov dword [rax + rcx*8 + 0xc], edx
mov dword [rax + rcx*8], 0x64
mov dword [rax + rcx*8 + 4], r8d
mov qword [rax + rcx*8 + 0x10], r9
cmp dword [rsp + 0x90], 0
lea r13, [0x14021dca8]
jle 0x140100c4c
mov ecx, dword [r15 + 0x38]
lea r8d, [rcx + 1]
add ecx, dword [rdi + 8]
mov dword [r15 + 0x38], ecx
sub esi, dword [rdi + 8]
movsxd r13, dword [rbx + 0xb8]
add esi, ebp
mov rax, qword [rbx + 0x18]
mov dword [rsp + 0xa8], r8d
test ebp, ebp
je 0x14010087a
mov edx, dword [rsp + 0x80]
add edx, r12d
cmp dword [rax + 0x3c], r13d
jg 0x140100858
mov r8d, edx
mov edx, reloc.WLDAP32.dll_Ordinal_22
jmp 0x14010088b
lea eax, [r13 + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [r13*2]
mov rax, qword [rbx + 0x68]
add rcx, r13
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1401008cb
mov edx, dword [rdi + 0xc]
cmp dword [rax + 0x3c], r13d
jg 0x1401008ab
mov r8d, edx
mov edx, WSASetLastError
mov dword [rsp + 0x20], r9d
mov rcx, rbx
xor r9d, r9d
call fcn.1400b9830
mov r8d, dword [rsp + 0xa8]
mov r13d, eax
xor r9d, r9d
jmp 0x1401008dd
lea eax, [r13 + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [r13*2]
mov rax, qword [rbx + 0x68]
add rcx, r13
mov dword [rax + rcx*8], WSASetLastError
mov qword [rax + rcx*8 + 0x10], r9
mov qword [rax + rcx*8 + 8], 0
mov dword [rax + rcx*8 + 4], edx
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edx, dword [rdi + 8]
cmp dword [rax + 0x3c], ecx
jg 0x140100906
mov dword [rsp + 0x20], edx
mov r9d, r12d
mov edx, 0x60
mov rcx, rbx
call fcn.1400b9830
jmp 0x140100931
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x60
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
mov ecx, dword [rdi + 0x18]
test ecx, ecx
jns 0x140100940
mov ecx, dword [rbx + 0xb8]
dec ecx
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x140100952
lea rbp, [0x14021dca8]
jmp 0x140100961
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rbp, [rax + rcx*8]
mov rax, qword [r15]
cmp byte [rax + 0x55], 0
jne 0x140100f1a
lea eax, [rsi + r14]
xor edx, edx
mov rsi, qword [rbp + 0x10]
mov dword [rbp + 8], eax
movzx r8d, word [rsi + 6]
mov rcx, qword [rsi + 0x18]
call fcn.140175ab0
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x1401009a1
mov r8, rsi
mov edx, 0xfffffffb
call fcn.1400ba120
jmp 0x1401009da
movsxd rax, dword [rbx + 0xb8]
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rdx, [rdx - 3]
cmp byte [rax + rdx*8 + 1], 0
lea rdx, [rax + rdx*8]
je 0x1401009d2
mov r9d, 0xfffffffb
mov r8, rsi
mov rcx, rbx
call fcn.1400ba320
jmp 0x1401009da
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], 0xfb
movzx r9d, word [rsi + 8]
mov rcx, r15
mov r8d, dword [rsp + 0x90]
dec r9d
mov rdx, qword [rdi]
call fcn.1401025f0
mov qword [rbp + 0x10], rax
movsxd rbp, dword [rbx + 0xb8]
mov rax, qword [rbx + 0x18]
lea edx, [rbp + 1]
cmp dword [rax + 0x3c], ebp
jg 0x140100a24
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x12]
call fcn.1400b9830
jmp 0x140100a55
mov rax, qword [rbx + 0x68]
lea rcx, [rbp*2]
add rcx, rbp
mov dword [rbx + 0xb8], edx
xor r8d, r8d
mov dword [rax + rcx*8], reloc.WSOCK32.dll_select
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r8
mov r14, qword [rbx + 0x18]
movsxd rsi, dword [r14 + 0x54]
lea eax, [rsi + 1]
mov dword [r14 + 0x54], eax
lea eax, [rsi - 1]
test esi, eax
jne 0x140100a89
mov rdx, qword [r14 + 0x58]
lea eax, [rsi*2 + 1]
mov rcx, qword [r14]
movsxd r8, eax
shl r8, 2
call fcn.140097e80
mov qword [r14 + 0x58], rax
mov rcx, qword [r14 + 0x58]
test rcx, rcx
je 0x140100a99
mov dword [rcx + rsi*4], 0xffffffff
not esi
mov dword [rdi + 0x14], esi
inc dword [r15 + 0x38]
mov edx, dword [r15 + 0x38]
mov r8d, dword [rdi + 0x14]
mov dword [rdi + 0x10], edx
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140100ad9
xor eax, eax
mov r9d, r8d
mov r8d, edx
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0xe]
call fcn.1400b9830
xor r9d, r9d
jmp 0x140100b07
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], reloc.WSOCK32.dll_ntohl
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edx, dword [rdi + 0xc]
cmp dword [rax + 0x3c], ecx
jg 0x140100b37
mov dword [rsp + 0x20], r9d
mov r8d, edx
xor r9d, r9d
mov edx, 0x85
mov rcx, rbx
call fcn.1400b9830
xor r9d, r9d
jmp 0x140100b61
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x85
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
mov r14d, dword [rsp + 0x30]
test r14d, r14d
je 0x140100bc5
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov r8d, dword [rdi + 0x1c]
cmp dword [rax + 0x3c], ecx
jg 0x140100b99
mov dword [rsp + 0x20], r9d
mov edx, reloc.WLDAP32.dll_Ordinal_22
mov r9d, r8d
mov rcx, rbx
mov r8d, r14d
call fcn.1400b9830
jmp 0x140100bc5
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_22
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx]
mov edx, dword [rbx + 0xb8]
cmp byte [rax + 0x55], 0
je 0x140100be0
lea r13, [0x14021dca8]
mov rax, r13
jmp 0x140100bff
test r13d, r13d
lea eax, [rdx - 1]
cmovns eax, r13d
lea r13, [0x14021dca8]
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov r8d, dword [rsp + 0xa8]
mov rcx, r15
mov dword [rax + 8], edx
mov edx, r12d
mov r9d, dword [rdi + 8]
call fcn.1400d4d60
mov rax, qword [rbx]
mov edx, dword [rbx + 0xb8]
cmp byte [rax + 0x55], 0
je 0x140100c30
mov rax, r13
mov dword [rax + 8], edx
jmp 0x140100c51
lea eax, [rdx - 1]
test ebp, ebp
cmovns eax, ebp
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x140100c51
mov r14d, dword [rsp + 0x30]
movzx eax, byte [rdi + 0x20]
movsxd r10, dword [rbx + 0xb8]
not al
mov r8d, dword [rdi + 0xc]
and eax, 1
mov r9d, dword [rsp + 0xb0]
lea edx, [rax + 0x7d]
mov rax, qword [rbx + 0x18]
cmp dword [rax + 0x3c], r10d
jg 0x140100c97
mov dword [rsp + 0x20], r9d
mov rcx, rbx
mov r9d, dword [rsp + 0x88]
call fcn.1400b9830
mov r10d, eax
xor r11d, r11d
jmp 0x140100cd4
lea rcx, [r10 + r10*2]
xor r11d, r11d
lea eax, [r10 + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov byte [rax + rcx*8], dl
mov edx, dword [rsp + 0x88]
mov dword [rax + rcx*8 + 8], edx
mov word [rax + rcx*8 + 2], r11w
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r11
mov byte [rax + rcx*8 + 1], r11b
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x140100cf5
mov edx, dword [rsp + 0x34]
movsxd rax, r10d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
mov byte [rax + rcx*8 + 1], 0xf5
mov dword [rax + rcx*8 + 0x10], edx
test r14d, r14d
je 0x140100f1a
mov rax, qword [rbx + 0x18]
mov ebp, r11d
movsxd rsi, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], esi
jg 0x140100d2f
xor r9d, r9d
mov dword [rsp + 0x20], r11d
mov r8d, r14d
mov rcx, rbx
lea edx, [r9 + 0x44]
call fcn.1400b9830
mov esi, eax
xor r11d, r11d
jmp 0x140100d5a
lea rcx, [rsi + rsi*2]
lea eax, [rsi + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x44
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r11
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edx, dword [rdi + 0xc]
cmp dword [rax + 0x3c], ecx
jg 0x140100d89
xor r9d, r9d
mov dword [rsp + 0x20], r11d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x35]
call fcn.1400b9830
xor r11d, r11d
jmp 0x140100db3
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], gethostname
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r11
cmp byte [rdi + 0x21], 0
mov r14d, dword [rsp + 0x80]
je 0x140100e1f
inc dword [r15 + 0x38]
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov ebp, dword [r15 + 0x38]
mov edx, dword [rdi + 0xc]
cmp dword [rax + 0x3c], ecx
jg 0x140100df5
mov r8d, edx
mov dword [rsp + 0x20], ebp
mov edx, 0x62
mov r9d, r14d
mov rcx, rbx
call fcn.1400b9830
jmp 0x140100e1f
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x62
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r11
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edx, dword [rdi + 0xc]
cmp dword [rax + 0x3c], ecx
jg 0x140100e4e
xor eax, eax
mov r8d, edx
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x76]
call fcn.1400b9830
xor r9d, r9d
jmp 0x140100e77
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x76
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], r9
mov qword [rax + rcx*8 + 0x10], r9
cmp byte [rdi + 0x21], 0
je 0x140100ef1
movsxd rcx, dword [rbx + 0xb8]
lea r8d, [r12 + r14]
mov rax, qword [rbx + 0x18]
lea edx, [rcx + 2]
cmp dword [rax + 0x3c], ecx
jg 0x140100eaa
mov r9d, edx
mov dword [rsp + 0x20], ebp
mov edx, Ordinal_41
mov rcx, rbx
call fcn.1400b9830
jmp 0x140100ed4
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], Ordinal_41
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r9
movsxd rax, dword [rbx + 0xb8]
test eax, eax
jle 0x140100ef1
lea rcx, [rax + rax*2]
mov edx, 0x80
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8 - 0x16], dx
mov rax, qword [rbx]
mov edx, dword [rbx + 0xb8]
cmp byte [rax + 0x55], 0
jne 0x140100f16
lea eax, [rdx - 1]
test esi, esi
cmovns eax, esi
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea r13, [rax + rcx*8]
mov dword [r13 + 8], edx
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret