Function at 0x1400631e8
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rdx]
movzx ebx, byte [rdx + 0x24]
and dword [rsp + 0x90], 0
mov r14d, dword [rax]
mov eax, dword [rsp + 0xc0]
and dword [rsp + 0x34], 0
mov rsi, qword [rcx + 0x10]
mov r15d, dword [rdx + 8]
not ebx
and ebx, 1
mov rdi, rdx
mov r12, rcx
lea r13d, [r14 + rbx]
add r13d, dword [rsp + 0xb8]
test eax, eax
je 0x14006324a
mov ebp, r9d
sub ebp, eax
jmp 0x140063256
mov eax, dword [rcx + 0x38]
lea ebp, [rax + 1]
add eax, r13d
mov dword [rcx + 0x38], eax
mov eax, dword [r8 + 0x14]
test eax, eax
je 0x140063262
inc eax
jmp 0x140063266
mov eax, dword [r8 + 0x10]
dec dword [rcx + 0x44]
mov r9d, dword [rsp + 0xb0]
mov dword [rsp + 0x98], eax
mov eax, dword [rcx + 0x44]
mov r8d, ebp
mov dword [rdx + 0x1c], eax
mov rdx, qword [rdx]
mov eax, r9d
neg eax
sbb cl, cl
and cl, 4
or cl, 1
mov byte [rsp + 0x20], cl
mov rcx, r12
call fcn.140047c50
test ebx, ebx
je 0x1400632bc
mov r8d, dword [rdi + 0xc]
and dword [rsp + 0x20], 0
lea r9d, [rbp + r14]
mov edx, Ordinal_122
mov rcx, rsi
call fcn.140032058
cmp dword [rsp + 0xc0], 0
jne 0x1400632f4
mov eax, dword [rsp + 0xb8]
test eax, eax
jle 0x1400632f4
mov r8d, dword [rsp + 0xa8]
mov rcx, qword [r12 + 0x10]
lea r9d, [rbp + r14]
add r9d, ebx
mov edx, reloc.WLDAP32.dll_Ordinal_77
mov dword [rsp + 0x20], eax
call fcn.140032058
test r15d, r15d
jle 0x1400634e7
mov r8, qword [rsp + 0xa0]
mov r9d, ebp
mov rdx, rdi
mov rcx, r12
mov dword [rsp + 0x20], r13d
call fcn.14006316c
mov edx, dword [r12 + 0x38]
and dword [rsp + 0x20], 0
mov dword [rsp + 0x90], eax
lea eax, [rdx + 1]
add edx, dword [rdi + 8]
mov dword [rsp + 0xb0], eax
mov eax, r14d
mov dword [r12 + 0x38], edx
sub eax, dword [rdi + 8]
xor r9d, r9d
mov rcx, rsi
add eax, ebx
mov dword [rsp + 0x30], eax
test ebx, ebx
je 0x14006335c
lea r8d, [rbp + r14]
lea edx, [r9 + 0x14]
jmp 0x140063365
mov r8d, dword [rdi + 0xc]
mov edx, 0x73
call fcn.140032058
mov r8d, dword [rsp + 0xb0]
mov r9d, ebp
mov dword [rsp + 0xc0], eax
mov eax, dword [rdi + 8]
mov edx, Ordinal_88
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140032058
mov edx, dword [rdi + 0x18]
mov rcx, rsi
call fcn.140032a28
mov rcx, qword [r12]
cmp byte [rcx + 0x61], 0
mov rdx, rax
mov qword [rsp + 0x38], rax
jne 0x1400635eb
mov rbx, qword [rdx + 0x10]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0xb8]
add ecx, eax
mov dword [rdx + 8], ecx
movzx r8d, word [rbx + 6]
mov rcx, qword [rbx + 0x18]
xor edx, edx
call sub.msvcrt.dll_memset
mov r9d, 0xfffffff7
mov r8, rbx
or edx, 0xffffffff
mov rcx, rsi
call fcn.140032934
movzx r9d, word [rbx + 8]
movzx eax, word [rbx + 6]
mov rdx, qword [rdi]
sub r9d, eax
mov r8d, r15d
dec r9d
mov rcx, r12
call fcn.1400641f4
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov qword [rcx + 0x10], rax
mov ebx, dword [rsi + 0x90]
lea edx, [r9 + 0x10]
lea r8d, [rbx + 1]
mov rcx, rsi
mov dword [rsp + 0x20], r8d
call fcn.140032058
dec dword [r12 + 0x44]
mov eax, dword [r12 + 0x44]
and dword [rsp + 0x20], 0
mov edx, reloc.WLDAP32.dll_Ordinal_12
mov dword [rdi + 0x14], eax
inc dword [r12 + 0x38]
mov r8d, dword [r12 + 0x38]
mov r9d, dword [rdi + 0x14]
mov rcx, rsi
mov dword [rdi + 0x10], r8d
call fcn.140032058
mov r8d, dword [rdi + 0xc]
and dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, SQLDriverConnectW
mov rcx, rsi
call fcn.140032058
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x14006349b
mov r9d, dword [rdi + 0x1c]
and dword [rsp + 0x20], 0
mov r8d, eax
mov edx, SQLAllocHandle
mov rcx, rsi
call fcn.140032058
mov edx, dword [rsp + 0xc0]
mov rcx, rsi
call fcn.140032a28
mov ecx, dword [rsi + 0x90]
mov r9d, dword [rsp + 0xb0]
mov dword [rax + 8], ecx
mov eax, dword [rdi + 8]
mov rcx, qword [r12 + 0x10]
mov r8d, ebp
mov edx, reloc.WLDAP32.dll_Ordinal_77
mov dword [rsp + 0x20], eax
call fcn.140032058
mov edx, ebx
mov rcx, rsi
call fcn.140032a28
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x14006356b
mov r9d, dword [rsi + 0x90]
mov ebx, dword [rdi + 0xc]
and dword [rsp + 0x20], 0
add r9d, 4
mov r8d, eax
mov edx, 0x30
mov rcx, rsi
call fcn.140032058
and dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 0x20]
mov r8d, ebx
mov rcx, rsi
call fcn.140032058
xor r9d, r9d
lea eax, [rbp + r15]
sub r14d, r15d
lea edx, [r9 + 0x25]
mov r8d, ebx
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.14003236c
and dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 0x7b]
mov r8d, ebx
mov rcx, rsi
mov r14d, eax
call fcn.140032058
jmp 0x140063570
mov r14d, dword [rsp + 0x34]
mov r9d, dword [rsp + 0x90]
test r9d, r9d
jne 0x14006359b
mov r8, qword [rsp + 0xa0]
mov r9d, ebp
mov rdx, rdi
mov rcx, r12
mov dword [rsp + 0x20], r13d
call fcn.14006316c
mov r9d, eax
mov al, byte [rdi + 0x24]
mov r8d, dword [rdi + 0xc]
mov rcx, rsi
and al, 1
neg al
lea eax, [rbp + r15]
sbb edx, edx
sub r13d, r15d
add edx, 0x84
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call fcn.14003236c
test r14d, r14d
je 0x1400635eb
mov r9d, dword [rdi + 0x20]
test r9d, r9d
jne 0x1400635dc
mov r9d, dword [rsi + 0x90]
mov edx, r14d
mov rcx, rsi
call fcn.140032a28
mov dword [rax + 8], r9d
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret