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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x128
mov r14, qword [rbp + 0x90]
lea rax, [r8 + 0x68]
mov r15, rcx
mov r11, qword [r14 + 0x48]
mov qword [rbp - 0x78], rax
mov rax, qword [rcx]
mov rcx, qword [r8 + 8]
mov qword [rbp - 0x60], rax
movzx eax, byte [r14 + 0x2c]
imul rax, rax, 0x70
mov r12d, dword [rax + rcx + 0x4c]
mov qword [rsp + 0x50], rcx
lea rcx, [r8 + 0x290]
mov r13, rdx
xor esi, esi
mov edx, r12d
mov ebx, r9d
mov rdi, r8
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], r11
mov qword [rbp - 0x50], rax
mov dword [rsp + 0x30], r12d
call fcn.140072d94
mov r8, qword [rsp + 0x50]
not rax
mov ecx, ebx
and rax, qword [rbp + 0x98]
mov qword [r14 + 0x50], rax
mov r10, qword [rdi + 0x58]
mov edi, dword [r15 + 0x44]
dec edi
shr r10, cl
mov rcx, qword [rbp - 0x50]
mov dword [r15 + 0x44], edi
and r10d, 1
mov dword [r14 + 0x10], edi
mov dword [r14 + 0xc], edi
mov eax, dword [r15 + 0x44]
mov dword [rsp + 0x58], edi
dec eax
mov qword [rsp + 0x70], r10
mov dword [r15 + 0x44], eax
mov dword [rbp - 0x80], eax
mov dword [r14 + 0x18], eax
cmp byte [r14 + 0x2c], sil
jbe 0x140070a9c
test byte [rcx + r8 + 0x44], 8
je 0x140070a9c
mov r9d, dword [r15 + 0x38]
lea edx, [rsi + 0x46]
xor r8d, r8d
inc r9d
mov rcx, r13
mov dword [rsp + 0x20], esi
mov dword [r15 + 0x38], r9d
mov dword [r14], r9d
call fcn.140031f40
mov r11, qword [rsp + 0x68]
mov r10, qword [rsp + 0x70]
mov rcx, qword [rbp - 0x50]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rbp + 0x80]
test ebx, ebx
jle 0x140070abb
movsxd rax, ebx
imul rax, rax, 0x58
cmp dword [rax + rdx + 0x398], esi
jne 0x140070abb
dec ebx
jmp 0x140070aa3
movsxd rax, ebx
mov ebx, 0x200
imul rax, rax, 0x58
test byte [rcx + r8 + 0x48], 0x10
mov r9d, dword [rax + rdx + 0x3a4]
je 0x140070b70
mov eax, dword [rcx + r8 + 0x38]
mov ebx, dword [rcx + r8 + 0x3c]
xor r9d, r9d
lea edx, [r9 + 0xd]
mov rcx, r13
mov r8d, ebx
mov dword [rsp + 0x20], eax
call fcn.140031f40
mov r9d, edi
mov r8d, ebx
mov edx, reloc.Cabinet.dll_FCIDestroy
mov rcx, r13
mov dword [rsp + 0x20], esi
call fcn.140031f40
mov byte [r14 + 0x2d], reloc.Cabinet.dll_FCIAddFile
mov dword [r14 + 0x34], eax
mov rdx, qword [rbp + 0x80]
mov r8, qword [rsp + 0x50]
mov rax, rsi
neg rax
lea rax, [rdx + 0x68]
sbb ecx, ecx
add ecx, 2
mov r12d, dword [rax + 0x14]
mov rbx, qword [rax + 0x20]
mov edi, esi
movsxd r13, ecx
test r12d, r12d
jle 0x140071a90
movzx ecx, word [rbx + 0x12]
test cl, 6
jne 0x140071a70
mov rax, qword [rbx + 0x38]
test qword [r14 + 0x50], rax
je 0x140071a02
mov byte [rdx + 0x46], 1
jmp 0x140071a70
mov r8d, dword [r11 + 0x28]
mov eax, 0x400
test eax, r8d
je 0x140070e11
movzx r12d, word [r11 + 0x2c]
mov rcx, r15
lea edx, [r12 + 2]
call fcn.140048c2c
mov r8d, dword [r14 + 0xc]
mov ebx, esi
mov dword [rbp + 0x90], r8d
mov dword [rbp + 0x88], eax
test r12d, r12d
jle 0x140070c22
mov rdi, rsi
lea r13d, [rax + 2]
mov rcx, qword [r11 + 0x38]
mov rdx, qword [rdi + rcx]
test rdx, rdx
je 0x140070c08
test byte [rdx + 0x14], 1
mov rcx, r15
je 0x140070bed
lea eax, [rbx + r13]
mov r9d, ebx
mov r8, r14
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r10d
call fcn.14006ff2c
mov eax, dword [r14 + 0x10]
mov dword [rbp + 0x90], eax
jmp 0x140070c03
mov rdx, qword [rdx]
lea r8d, [rbx + r13]
mov r9d, 1
mov rdx, qword [rdx + 0x18]
call fcn.140070710
mov r11, qword [rsp + 0x68]
mov r10, qword [rsp + 0x70]
inc ebx
add rdi, 8
cmp ebx, r12d
jl 0x140070bb3
mov r13, qword [rbp + 0x78]
mov eax, dword [rbp + 0x88]
mov r8d, dword [r11 + 0x18]
mov ebx, Ordinal_73
mov r9d, eax
mov rcx, r13
mov edx, ebx
mov dword [rsp + 0x20], esi
call fcn.140031f40
mov r9d, dword [rbp + 0x88]
mov r8d, r12d
mov edx, ebx
mov rcx, r13
inc r9d
mov dword [rsp + 0x20], esi
call fcn.140031f40
mov rbx, qword [rsp + 0x68]
mov al, byte [rbx + 0x1c]
mov r9d, dword [rbp + 0x90]
mov r8d, dword [rsp + 0x30]
mov rbx, qword [rbx + 0x20]
neg al
mov eax, dword [rbp + 0x88]
sbb edi, edi
mov edx, 9
mov rcx, r13
mov dword [rsp + 0x20], eax
and edi, 0xfffffffa
call fcn.140031f40
lea r9d, [rdi - 1]
mov r8, rbx
mov rcx, r13
mov edx, eax
call fcn.14003280c
mov eax, dword [rsp + 0x30]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rbp + 0x80]
mov byte [r8 + 0x1c], sil
mov dword [r14 + 0x30], eax
mov al, byte [rdx + 0x45]
lea ebx, [r12 - 1]
neg al
sbb cl, cl
and cl, 0x6e
add cl, 0x3c
mov byte [r14 + 0x2d], cl
mov eax, dword [r13 + 0x90]
mov dword [r14 + 0x34], eax
movsxd rax, dword [r14 + 0x38]
test ebx, ebx
js 0x140070b22
lea rcx, [rax + rax*4]
movsxd r12, ebx
shl rcx, 2
shl r12, 3
mov qword [rbp + 0x90], rcx
mov rax, qword [r8 + 0x38]
mov rdx, qword [r12 + rax]
mov qword [rbp + 0x70], rdx
cmp ebx, 0x10
jge 0x140070d2d
movzx eax, word [r8 + 0x1e]
movzx ecx, bx
shr ax, cl
test al, 1
je 0x140070d26
mov rcx, r14
call fcn.14006fbe4
jmp 0x140070df4
mov rcx, qword [rbp + 0x90]
test byte [rdx + 0x14], 1
je 0x140070df9
mov rax, qword [rbp - 0x60]
cmp byte [rax + 0x61], sil
jne 0x140070d76
mov rax, qword [r14 + 0x40]
sub rcx, 0x14
mov edx, dword [rax + rcx + 4]
mov qword [rbp + 0x90], rcx
mov rcx, r13
call fcn.1400328fc
mov ecx, dword [rax + 0xc]
movzx edx, byte [rax]
mov r9d, dword [rax + 8]
mov r8d, dword [rax + 4]
mov dword [rsp + 0x20], ecx
mov rcx, r13
call fcn.140031f40
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
lea edx, [r9 + 0x35]
call fcn.1400431bc
mov rdi, rax
test rax, rax
je 0x140070df4
mov rcx, qword [rbp + 0x70]
lea r8, [rbp - 0x48]
xor r9d, r9d
mov rcx, qword [rcx]
mov qword [rbp - 0x48], rsi
mov dword [rbp - 0x40], esi
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rbp - 0x60]
mov qword [rax + 0x10], rdx
mov edx, 0xab
call fcn.140042ff0
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140070de4
mov ecx, dword [rbp + 0x88]
xor r9d, r9d
mov rdx, rdi
add ecx, 2
add ecx, ebx
mov dword [rax + 0x28], ecx
mov r8d, dword [r14 + 0x18]
mov rcx, r15
call fcn.140047bd4
mov rcx, qword [rbp - 0x60]
mov rdx, rdi
mov qword [rdi + 0x10], rsi
call fcn.140043584
mov r8, qword [rsp + 0x68]
mov rcx, qword [rbp + 0x90]
sub r12, 8
dec ebx
jns 0x140070cf9
jmp 0x140070b1b
mov eax, r8d
and eax, 0x100
je 0x140070eb6
test r8b, 5
je 0x140070eb6
mov rax, qword [r11 + 0x38]
xor r9d, r9d
mov r8, r14
mov rbx, qword [rax]
inc dword [r15 + 0x38]
mov edi, dword [r15 + 0x38]
mov rdx, rbx
mov rcx, r15
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r10d
call fcn.14006ff2c
cmp eax, edi
je 0x140070e72
test edi, edi
je 0x140070e72
cmp byte [r15 + 0x1f], 8
jae 0x140070e72
movzx ecx, byte [r15 + 0x1f]
mov dword [r15 + rcx*4 + 0xbc], edi
inc byte [r15 + 0x1f]
mov r9d, dword [r14 + 0x10]
mov r8d, r12d
mov edx, SQLFreeHandle
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.140031f40
mov rdx, qword [rbp + 0x80]
mov r8, qword [rsp + 0x50]
mov byte [r14 + 0x2d], 0xaa
mov rax, qword [rbx + 0x38]
test qword [r14 + 0x50], rax
mov rax, rsi
jne 0x140070b2a
or word [rbx + 0x12], 4
jmp 0x140070b2a
test eax, eax
je 0x140071120
test r8b, 2
je 0x140071120
mov edi, 0xaa
mov dword [rbp + 0x70], esi
mov eax, esi
mov r12, rsi
mov rbx, rsi
test r8b, 0x20
je 0x140070eea
mov rax, qword [r11 + 0x38]
mov rbx, qword [rax]
mov eax, 1
test r8b, 0x10
je 0x140070efb
movsxd rcx, eax
mov rax, qword [r11 + 0x38]
mov r12, qword [rax + rcx*8]
test r10d, r10d
je 0x140070f09
mov rax, rbx
mov rbx, r12
mov r12, rax
test rbx, rbx
je 0x140070ff9
mov rdx, qword [rbx]
mov dword [rbp + 0x88], 0x18161719
mov r9, qword [rdx + 0x18]
mov qword [rbp - 0x48], rdx
mov rcx, r9
call fcn.140042bf4
cmp eax, 1
jle 0x140070f8c
mov al, byte [r15 + 0x1f]
test al, al
jne 0x140070f46
inc dword [r15 + 0x38]
mov ebx, dword [r15 + 0x38]
jmp 0x140070f57
dec al
movzx eax, al
mov byte [r15 + 0x1f], al
mov ebx, dword [r15 + rax*4 + 0xbc]
mov rdx, qword [rdx + 0x18]
mov r9d, 1
mov r8d, ebx
mov rcx, r15
mov dword [rbp + 0x90], ebx
call fcn.140070710
mov rcx, qword [rbp - 0x48]
movzx eax, byte [rcx]
inc eax
and eax, 2
or rax, 1
movzx edx, byte [rbp + rax + 0x88]
jmp 0x140070fbf
lea r8, [rsp + 0x78]
mov rdx, r9
mov rcx, r15
call fcn.1400473ac
mov rdx, rbx
mov rcx, r14
mov dword [rbp + 0x90], eax
call fcn.14006fbe4
mov rcx, qword [rbp - 0x48]
movzx r10d, byte [rcx]
mov ebx, dword [rsp + 0x78]
movzx edx, byte [rbp + r10 + 0x52]
mov eax, dword [rbp + 0x90]
mov r9d, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x30]
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.140031f40
test ebx, ebx
je 0x140071017
cmp byte [r15 + 0x1f], 8
jae 0x140071017
movzx eax, byte [r15 + 0x1f]
mov dword [r15 + rax*4 + 0xbc], ebx
inc byte [r15 + 0x1f]
jmp 0x140071017
mov r8d, dword [rsp + 0x30]
mov eax, r10d
mov rcx, r13
neg eax
mov dword [rsp + 0x20], esi
sbb edx, edx
and edx, 0xfffffffc
add edx, 0x24
call fcn.140031f40
test r12, r12
je 0x14007108d
mov rbx, qword [r12]
inc dword [r15 + 0x38]
mov eax, dword [r15 + 0x38]
mov rdx, qword [rbx + 0x18]
mov r9d, 1
mov r8d, eax
mov rcx, r15
mov dword [rbp + 0x70], eax
call fcn.140070710
mov rcx, qword [rbx + 0x18]
call fcn.140042bf4
cmp eax, 1
jg 0x140071066
mov al, byte [rbx]
sub al, 0x36
test al, 0xfd
jne 0x140071066
mov eax, dword [rsp + 0x70]
neg eax
sbb edi, edi
and edi, 0xfffffffe
add edi, 0x39
jmp 0x140071074
mov eax, dword [rsp + 0x70]
neg eax
sbb edi, edi
and edi, 2
add edi, 0x36
mov rcx, qword [rbx + 0x18]
call fcn.140042bf4
cmp eax, 1
jg 0x14007108d
mov rdx, r12
mov rcx, r14
call fcn.14006fbe4
mov ecx, dword [r13 + 0x90]
neg dword [rsp + 0x70]
mov r12d, dword [rsp + 0x30]
sbb al, al
mov dword [r14 + 0x30], r12d
mov dword [r14 + 0x34], ecx
add al, 5
mov byte [r14 + 0x2d], al
cmp edi, 0xaa
je 0x140070b1b
inc dword [r15 + 0x38]
mov ebx, dword [r15 + 0x38]
mov r8d, r12d
mov edx, 0x80
mov rcx, r13
mov r9d, ebx
mov dword [rsp + 0x20], esi
call fcn.140031f40
mov r9d, dword [rsp + 0x58]
mov r8d, dword [rbp + 0x70]
mov edx, edi
mov rcx, r13
mov dword [rsp + 0x20], ebx
call fcn.140031f40
movsxd rax, dword [r13 + 0x90]
mov r8, qword [rsp + 0x50]
test eax, eax
jle 0x140071114
lea rcx, [rax + rax*2]
mov rax, qword [r13 + 0x88]
mov edx, 0x53
mov word [rax + rcx*8 - 0x16], dx
mov rdx, qword [rbp + 0x80]
jmp 0x140070b27
test ebx, r8d
je 0x1400719a5
movzx ebx, word [r11 + 0x18]
movzx eax, word [r11 + 0x1c]
movzx r10d, word [r11 + 0x1a]
mov word [rsp + 0x34], ax
mov rax, qword [r11 + 0x20]
mov word [rbp - 0x70], bx
mov qword [rsp + 0x60], rax
mov eax, dword [r14 + 8]
mov word [rsp + 0x44], r10w
mov rdi, rsi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x58], rsi
mov dword [rsp + 0x3c], eax
mov r9d, esi
mov qword [rbp - 0x38], rsi
mov byte [rbp + 0x88], sil
mov byte [rsp + 0x36], sil
mov dword [rsp + 0x40], esi
mov r12d, ebx
mov dword [rsp + 0x38], ebx
mov edx, ebx
test r8b, 0x20
je 0x1400711a1
mov rax, qword [r11 + 0x38]
inc edx
mov rdi, qword [rax + rbx*8]
movzx eax, r10w
test eax, eax
mov qword [rbp - 0x48], rdi
cmovns r9d, eax
test r8b, 0x10
je 0x14007120d
mov rax, qword [r11 + 0x38]
movsxd rcx, edx
mov r11, qword [rax + rcx*8]
movzx eax, word [rsp + 0x34]
cmp r9d, eax
mov qword [rbp - 0x58], r11
cmovle r9d, eax
test rdi, rdi
jne 0x140071210
mov rax, qword [rsp + 0x60]
movzx ecx, bx
mov rax, qword [rax + 8]
movsx r10, word [rax + rcx*2]
test r10d, r10d
js 0x1400711f8
mov rax, qword [rsp + 0x60]
mov rdx, r10
mov rax, qword [rax + 0x18]
shl rdx, 5
mov rcx, qword [rax + 8]
cmp byte [rdx + rcx + 0x18], sil
je 0x1400711fe
cmp r10d, 0xfffffffe
jne 0x140071205
mov byte [rbp + 0x88], 1
movzx r10d, word [rsp + 0x44]
jmp 0x140071210
mov r11, rsi
test r8b, 0x30
jne 0x14007124b
bt r8d, 0x13
jae 0x14007124b
inc dword [r15 + 0x38]
mov eax, dword [r15 + 0x38]
mov r9d, 1
mov dword [r14 + 0x24], eax
dec dword [r15 + 0x44]
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 0x44]
mov r8b, r9b
mov byte [rbp + 0x88], r9b
mov dword [r14 + 0x28], eax
jmp 0x140071252
mov r8b, byte [rbp + 0x88]
mov rax, qword [rsp + 0x60]
cmp bx, word [rax + 0x5e]
jae 0x140071308
mov rax, qword [rax + 0x38]
movzx ecx, bx
mov edx, esi
cmp byte [rcx + rax], sil
mov rcx, qword [rsp + 0x70]
sete dl
cmp ecx, edx
je 0x140071289
mov rax, qword [rsp + 0x60]
test ecx, ecx
je 0x1400712ba
cmp word [rax + 0x5e], bx
jne 0x1400712ba
mov rax, r11
mov qword [rbp - 0x58], rdi
mov byte [rsp + 0x36], r8b
mov qword [rbp - 0x48], rax
mov al, r10b
movzx r10d, word [rsp + 0x34]
movzx eax, al
mov rdi, r11
mov byte [rbp + 0x88], sil
mov word [rsp + 0x44], r10w
mov word [rsp + 0x34], ax
lea rax, [rbp - 0x68]
mov r8d, ecx
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140070368
mov ecx, eax
mov dword [rsp + 0x48], eax
cmp qword [rbp - 0x68], rsi
je 0x1400712fc
cmp word [rsp + 0x34], si
je 0x1400712fc
mov rcx, qword [rbp - 0x60]
movzx edx, bx
add rdx, qword [rbp - 0x68]
call fcn.140016a30
mov ecx, dword [rsp + 0x48]
mov qword [rbp - 0x38], rax
cmp dword [rsp + 0x40], esi
je 0x140071312
mov eax, dword [r14 + 0x28]
jmp 0x140071316
mov rcx, qword [rsp + 0x70]
jmp 0x14007127f
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x5c], eax
test rdi, rdi
je 0x140071329
test byte [rdi + 0x14], 0x28
mov dword [rsp + 0x7c], esi
je 0x140071331
mov dword [rsp + 0x7c], 1
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x140071344
test byte [rax + 0x14], 0x28
mov dword [rsp + 0x58], esi
je 0x14007134c
mov dword [rsp + 0x58], 1
test rdi, rdi
jne 0x14007135a
mov dword [rsp + 0x78], esi
test bx, bx
je 0x140071362
mov dword [rsp + 0x78], 1
mov ebx, r12d
mov eax, reloc.WLDAP32.dll_Ordinal_73
test rdi, rdi
je 0x14007140a
mov rax, qword [rdi]
movzx r12d, word [rsp + 0x44]
mov r8d, ebx
mov rdi, qword [rax + 0x18]
add r8d, ecx
mov rcx, r15
mov rdx, rdi
mov r9d, r12d
call fcn.140070710
mov rcx, rdi
call fcn.14004471c
test eax, eax
je 0x1400713be
mov r8d, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x5c]
mov edx, Ordinal_54
mov rcx, r13
add r8d, ebx
mov dword [rsp + 0x20], esi
call fcn.140031f40
cmp qword [rbp - 0x68], rsi
je 0x1400713d7
movzx r8d, bx
mov edx, r12d
mov rcx, rdi
add r8, qword [rbp - 0x68]
call fcn.14006fcd8
mov rcx, rdi
add ebx, r12d
call fcn.140042bf4
cmp eax, 1
jg 0x1400713f5
mov rdx, qword [rbp - 0x48]
mov rcx, r14
call fcn.14006fbe4
jmp 0x1400713fd
mov dword [rsp + 0x7c], 1
mov edi, dword [rsp + 0x40]
mov byte [rbp + 0x88], sil
jmp 0x140071459
cmp byte [rbp + 0x88], sil
je 0x140071432
lea r9d, [rcx + r12]
xor r8d, r8d
mov edx, eax
mov rcx, r13
mov dword [rsp + 0x7c], esi
mov dword [rsp + 0x20], esi
call fcn.140031f40
mov edi, dword [rsp + 0x40]
jmp 0x14007144f
mov edi, dword [rsp + 0x40]
test edi, edi
je 0x140071459
lea r9d, [rcx + r12]
xor r8d, r8d
mov edx, eax
mov rcx, r13
mov dword [rsp + 0x20], esi
call fcn.140031f40
inc ebx
mov dword [rsp + 0x78], 1
movzx eax, byte [rbp + 0x88]
mov r9, qword [rbp - 0x68]
mov edx, dword [rsp + 0x48]
mov r8d, ebx
mov rcx, r15
sub r8d, eax
call fcn.14006fc54
mov rcx, qword [rsp + 0x68]
lea r12, [0x140000000]
cmp word [rcx + 0x2e], si
jbe 0x140071494
movzx eax, word [rcx + 0x2e]
cmp ebx, eax
je 0x140071570
test dword [rcx + 0x28], 0x40000
je 0x1400714b5
mov r8d, dword [rsp + 0x3c]
xor r9d, r9d
mov rcx, r13
lea edx, [r9 + 0x77]
mov dword [rsp + 0x20], esi
call fcn.140031f40
test edi, edi
je 0x1400714d1
mov edx, Ordinal_73
mov r9d, edi
mov rcx, r13
lea r8d, [rdx - 0x45]
mov dword [rsp + 0x20], esi
call fcn.140031f40
movsxd rax, dword [rsp + 0x7c]
movsxd rcx, dword [rsp + 0x78]
movsxd rdi, dword [rsp + 0x70]
mov r9d, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x3c]
lea rcx, [rax + rcx*2]
lea rax, [rdi + rcx*2]
mov rcx, r13
mov dword [rsp + 0x28], ebx
movzx edx, byte [rax + r12 + 0xe74b0]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
call fcn.140032258
cmp dword [rsp + 0x40], esi
je 0x140071570
mov r9d, dword [r13 + 0x90]
xor r8d, r8d
mov rcx, r13
lea edx, [r8 + 0xb]
add r9d, 2
mov dword [rsp + 0x20], esi
call fcn.140031f40
mov r9d, dword [rsp + 0x5c]
mov rax, rsi
mov r8d, ebx
sub r8d, dword [rsp + 0x7c]
cmp ebx, 1
setg al
mov dword [rsp + 0x28], r8d
mov r8d, dword [rsp + 0x3c]
lea rcx, [rdi + rax*4]
mov eax, dword [rsp + 0x48]
movzx edx, byte [rcx + r12 + 0xe74b2]
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.140032258
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x140071725
mov rax, qword [rax]
mov r12d, dword [rsp + 0x48]
movzx ebx, word [rsp + 0x34]
mov rdi, qword [rax + 0x18]
add r12d, dword [rsp + 0x38]
mov r9d, ebx
mov rdx, rdi
mov r8d, r12d
mov rcx, r15
call fcn.140070710
mov rcx, rdi
call fcn.14004471c
test eax, eax
je 0x1400715c9
mov r9d, dword [rsp + 0x5c]
mov r8d, r12d
mov edx, Ordinal_54
mov rcx, r13
mov dword [rsp + 0x20], esi
call fcn.140031f40
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x1400715f1
mov r8, rax
mov edx, ebx
mov rcx, rdi
call fcn.14006fcd8
mov r9, qword [rbp - 0x38]
mov r8d, ebx
mov edx, r12d
mov rcx, r15
call fcn.14006fc54
add dword [rsp + 0x38], ebx
mov rcx, rdi
call fcn.140042bf4
cmp eax, 1
jg 0x140071718
mov rdx, qword [rbp - 0x58]
mov rcx, r14
call fcn.14006fbe4
lea r12, [0x140000000]
mov ebx, dword [rsp + 0x38]
mov edi, dword [rsp + 0x40]
cmp qword [rbp - 0x68], rsi
je 0x140071634
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x60]
call fcn.140016650
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140071649
mov rcx, qword [rbp - 0x60]
mov rdx, rax
call fcn.140016650
mov eax, dword [r13 + 0x90]
mov dword [r14 + 0x34], eax
test ebx, ebx
je 0x1400716b0
test edi, edi
je 0x14007167b
mov r9d, dword [r13 + 0x90]
mov r8d, edi
mov edx, SQLAllocHandle
mov rcx, r13
add r9d, 3
mov dword [rsp + 0x20], esi
call fcn.140031f40
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x70]
mov r9d, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x3c]
lea rdx, [rax + rcx*2]
mov eax, dword [rsp + 0x48]
movzx edx, byte [rdx + r12 + 0xe516c]
mov rcx, r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call fcn.140032258
test edi, edi
je 0x140071761
mov r9d, dword [r13 + 0x90]
mov r8d, edi
mov edx, 0x12
mov rcx, r13
add r9d, 2
mov dword [rsp + 0x20], esi
call fcn.140031f40
movzx edx, byte [rbp + 0x88]
movsxd rcx, dword [rsp + 0x70]
mov eax, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x5c]
lea r8d, [rbx + rdx]
lea rdx, [rdx + rcx*2]
mov dword [rsp + 0x28], r8d
mov rcx, r13
movzx edx, byte [rdx + r12 + 0xe516c]
mov r12d, dword [rsp + 0x3c]
mov dword [rsp + 0x20], eax
mov r8d, r12d
call fcn.140032258
jmp 0x140071766
mov dword [rsp + 0x58], 1
jmp 0x140071612
cmp byte [rsp + 0x36], sil
je 0x140071619
mov edi, dword [rsp + 0x40]
mov ebx, dword [rsp + 0x38]
test edi, edi
jne 0x14007175a
mov r9d, dword [rsp + 0x48]
lea edx, [rdi + 0x49]
xor r8d, r8d
mov rcx, r13
add r9d, ebx
mov dword [rsp + 0x20], esi
call fcn.140031f40
mov dword [rsp + 0x58], esi
inc ebx
jmp 0x140071621
mov r12d, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x68]
test dword [rbx + 0x28], 0x40000
je 0x14007178d
mov r9d, 1
mov r8d, r12d
mov rcx, r13
lea edx, [r9 + 0x76]
mov dword [rsp + 0x20], esi
call fcn.140031f40
test byte [rbx + 0x28], 0x40
mov rax, qword [rbp + 0x80]
je 0x1400717b3
test byte [rax + 0x40], 0x20
jne 0x1400717b3
mov eax, dword [rsp + 0x30]
mov r10, qword [rsp + 0x60]
mov edi, 1
jmp 0x140071911
mov r10, qword [rsp + 0x60]
mov edi, esi
mov rbx, qword [r10 + 0x18]
test byte [rbx + 0x40], 0x20
jne 0x140071834
mov ecx, 0x400
test word [rax + 0x40], cx
jne 0x1400717f8
mov ecx, 0x1000
test word [rax + 0x40], cx
je 0x1400717e0
cmp byte [rax + 0x45], 1
je 0x1400717f8
mov r8d, dword [rsp + 0x30]
mov r9d, r12d
mov rdx, r10
mov rcx, rax
call fcn.140070620
jmp 0x140071903
inc dword [r15 + 0x38]
mov ebx, dword [r15 + 0x38]
mov r8d, r12d
mov edx, Ordinal_139
mov rcx, r13
mov r9d, ebx
mov dword [rsp + 0x20], esi
call fcn.140031f40
mov r8d, dword [rsp + 0x30]
xor r9d, r9d
mov rcx, r13
mov dword [rsp + 0x20], ebx
lea edx, [r9 + 0x1f]
call fcn.140031f40
jmp 0x140071903
mov eax, dword [rsp + 0x30]
cmp eax, r12d
je 0x14007190c
mov rbx, qword [rbx + 0x10]
jmp 0x140071854
mov eax, dword [rbx + 0x64]
and al, 3
cmp al, 2
je 0x140071859
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140071847
movzx edx, word [rbx + 0x5e]
mov rcx, r15
call fcn.140048c2c
mov r12d, eax
cmp si, word [rbx + 0x5e]
jae 0x1400718de
mov r14d, dword [rsp + 0x3c]
or r15d, 0xffffffff
movzx r8d, word [r10 + 0x60]
mov edx, esi
test r8d, r8d
jle 0x1400718a4
mov rax, qword [rbx + 8]
mov r9, qword [r10 + 8]
movsxd rcx, edi
movzx r10d, word [rax + rcx*2]
movsxd rax, edx
cmp r10w, word [r9 + rax*2]
je 0x1400718a8
inc edx
cmp edx, r8d
jl 0x140071893
movzx edx, r15w
lea eax, [rdi + r12]
movsx r9d, dx
mov r8d, r14d
mov edx, 0x5a
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.140031f40
movzx eax, word [rbx + 0x5e]
mov r10, qword [rsp + 0x60]
inc edi
cmp edi, eax
jl 0x140071877
mov r14, qword [rbp + 0x90]
mov r15, qword [rbp + 0x70]
movzx eax, word [rbx + 0x5e]
mov r9d, dword [rbp - 0x80]
mov r8d, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov edx, SQLFreeHandle
mov rcx, r13
mov dword [rsp + 0x20], r12d
call fcn.140032258
mov edi, esi
mov r10, qword [rsp + 0x60]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x68]
mov r12d, dword [rsp + 0x3c]
cmp dword [r14], esi
jne 0x140071938
mov rcx, qword [rbp + 0x80]
test byte [rcx + 0x40], 0x20
jne 0x140071938
mov r9, rcx
mov r8d, r12d
mov edx, eax
mov rcx, r10
call fcn.140070810
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x48]
test rcx, rcx
je 0x140071953
mov r8, qword [rbp - 0x78]
mov edx, dword [rsp + 0x30]
call fcn.1400708f4
mov eax, 0x1000
test dword [rbx + 0x28], eax
je 0x140071964
mov byte [r14 + 0x2d], 0xaa
jmp 0x140071970
neg dword [rsp + 0x70]
sbb al, al
add al, 5
mov byte [r14 + 0x2d], al
mov dword [r14 + 0x30], r12d
mov al, byte [rbx + 0x2a]
and al, 1
mov byte [r14 + 0x2e], al
test byte [rbx + 0x28], 0xf
jne 0x140071988
mov byte [r14 + 0x2f], 1
mov rdx, qword [rbp + 0x80]
mov r8, qword [rsp + 0x50]
test edi, edi
je 0x1400719f8
mov rax, rsi
mov qword [rsp + 0x60], rax
jmp 0x140070b2a
mov r8, qword [rsp + 0x50]
test byte [rcx + r8 + 0x48], 0x20
je 0x1400719bc
mov byte [r14 + 0x2d], 0xaa
jmp 0x140070b27
movsxd rcx, r10d
lea rdx, [0x140000000]
mov r8d, r12d
mov al, byte [rcx + rdx + 0xe1038]
mov dword [r14 + 0x30], r12d
mov dword [rsp + 0x20], esi
mov byte [r14 + 0x2d], al
movzx edx, byte [rcx + rdx + 0xe0d78]
mov rcx, r13
call fcn.140031f40
mov byte [r14 + 0x2f], 1
inc eax
jmp 0x140070b17
mov rax, qword [rsp + 0x60]
jmp 0x140070b2a
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbx]
test byte [rdx + r8 + 0x44], 8
mov qword [rbp + 0x90], rax
je 0x140071a1e
test byte [rax + 4], 1
je 0x140071a70
cmp r13, 1
jne 0x140071a42
mov r8, qword [rsp + 0x60]
mov edx, dword [r14 + 4]
mov rcx, rax
call fcn.140048828
test eax, eax
jne 0x140071c54
lea edi, [rax + 2]
jmp 0x140071a70
cmp r13, 3
jl 0x140071c5b
mov edx, 0x200
test dx, cx
jne 0x140071a70
mov r8d, dword [rbp - 0x80]
mov r9d, 0x10
mov rdx, rax
mov rcx, r15
call fcn.140047bd4
or word [rbx + 0x12], 4
mov rdx, qword [rbp + 0x80]
mov r8, qword [rsp + 0x50]
dec r12d
add rbx, 0x40
test r12d, r12d
jg 0x140070b4c
mov rax, qword [rbp - 0x78]
mov rdx, qword [rbp + 0x80]
mov r8, qword [rsp + 0x50]
mov ecx, edi
test edi, edi
jg 0x140070b36
mov edi, dword [rax + 0x14]
mov rbx, qword [rax + 0x20]
mov r13, qword [rbp + 0x78]
test edi, edi
jle 0x140071bd2
mov r13d, dword [rsp + 0x30]
mov ecx, 0x800
test byte [rbx + 0x12], 6
jne 0x140071bc0
test byte [rbx + 0x14], 0x82
je 0x140071bc0
test word [rbx + 0x14], cx
je 0x140071bc0
cmp dword [rbx + 0x1c], r13d
jne 0x140071bc0
cmp dword [r14], esi
jne 0x140071bc0
mov r9, qword [rbp + 0x98]
mov r8d, dword [rbx + 0x28]
mov r12, qword [rbx]
mov edx, r13d
mov rcx, rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], Ordinal_133
call fcn.1400730b4
mov rdx, rax
test rax, rax
je 0x140071bb7
test byte [rax + 0x12], 4
jne 0x140071bb7
test byte [rax + 0x14], 1
je 0x140071b4e
mov rax, qword [rax]
test dword [rax + 4], 0x800
je 0x140071b4e
mov rax, qword [rax + 0x20]
mov rcx, qword [rax]
cmp dword [rcx], 1
jg 0x140071bb7
mov rcx, qword [rdx]
mov r8d, dword [rbp - 0x80]
lea rdx, [rbp - 0x30]
mov rax, qword [rcx]
mov r9d, 0x10
mov qword [rbp - 0x30], rax
mov rax, qword [rcx + 8]
mov qword [rbp - 0x28], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp - 0x18], rax
mov rax, qword [rcx + 0x20]
mov qword [rbp - 0x10], rax
mov rax, qword [rcx + 0x28]
mov qword [rbp - 8], rax
mov rax, qword [rcx + 0x30]
mov qword [rbp], rax
mov rax, qword [rcx + 0x38]
mov qword [rbp + 8], rax
mov rax, qword [rcx + 0x40]
mov rcx, r15
mov qword [rbp + 0x10], rax
mov rax, qword [r12 + 0x10]
mov qword [rbp - 0x20], rax
call fcn.140047bd4
mov rax, qword [rbp - 0x78]
mov ecx, 0x800
dec edi
add rbx, 0x40
test edi, edi
jg 0x140071ac3
mov r13, qword [rbp + 0x78]
cmp dword [r14], esi
je 0x140071c3c
mov eax, dword [r13 + 0x90]
mov r9d, dword [r14]
mov edx, Ordinal_73
lea r8d, [rdx - 0x45]
mov rcx, r13
mov dword [rsp + 0x20], esi
mov dword [r14 + 0x1c], eax
call fcn.140031f40
mov rdi, qword [rbp - 0x78]
mov rbx, qword [rdi + 0x20]
cmp dword [rdi + 0x14], esi
jle 0x140071c3c
test byte [rbx + 0x12], 6
jne 0x140071c31
mov rax, qword [rbx + 0x38]
test qword [r14 + 0x50], rax
jne 0x140071c31
mov r8d, dword [rbp - 0x80]
mov rdx, qword [rbx]
mov r9d, 0x10
mov rcx, r15
call fcn.140047bd4
or word [rbx + 0x12], 4
inc esi
add rbx, 0x40
cmp esi, dword [rdi + 0x14]
jl 0x140071c07
mov rax, qword [r14 + 0x50]
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rbp + 0x90]
movzx ecx, word [rbx + 0x12]
mov edx, 0x1000
test dx, cx
je 0x140071a4c
test edi, edi
jne 0x140071a70
mov edi, 3
jmp 0x140071a70