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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov r14, qword [rcx]
mov r12, rcx
mov edi, dword [rsp + 0x100]
mov ecx, 1
mov dword [rsp + 0x58], edi
mov r13b, cl
add edi, ecx
mov qword [rsp + 0x80], r14
mov dword [rsp + 0x100], edi
mov r15, rdx
lea eax, [rdi + 1]
mov ebp, eax
mov dword [rsp + 0x5c], eax
add ebp, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [r12 + 0x38]
mov edi, ebp
mov dword [rsp + 0x34], ebp
add ebp, ecx
mov dword [rsp + 0x4c], ebp
add ebp, ecx
mov dword [rsp + 0x54], ebp
add ebp, ecx
mov dword [rsp + 0x50], ebp
add ebp, ecx
cmp eax, ebp
mov rcx, r12
cmovle eax, ebp
mov dword [r12 + 0x38], eax
call fcn.14006a2cc
mov rsi, rax
test rax, rax
je 0x1400517f0
test r15, r15
je 0x1400517f0
cmp dword [r15 + 0x38], 0
je 0x1400517f0
mov rdx, qword [r15]
lea r8, [0x14013683c]
mov r9d, Ordinal_96
lea rcx, str.sqlite__
call fcn.14005ba64
test eax, eax
je 0x1400517f0
mov rcx, qword [r15 + 0x70]
mov ebx, 0xfff0bdc0
mov dword [rsp + 0x38], ebx
test rcx, rcx
je 0x14005112b
mov rax, qword [r14 + 0x20]
xor ebx, ebx
add rax, 0x18
mov dword [rsp + 0x38], ebx
cmp qword [rax], rcx
je 0x14005112b
inc ebx
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x14005111c
mov dword [rsp + 0x38], ebx
mov rax, qword [r14 + 0x20]
xor r9d, r9d
mov r8, qword [r15]
movsxd rcx, ebx
shl rcx, 5
lea edx, [r9 + 0x1c]
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, r12
call fcn.140052cd4
test eax, eax
jne 0x1400517f0
mov eax, dword [rsp + 0x108]
mov r9, r15
mov edx, eax
mov dword [rsp + 0x64], eax
inc eax
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_97
mov dword [rsp + 0x108], eax
mov r8d, ebx
lea ecx, [rax + 1]
mov eax, dword [r12 + 0x34]
cmp eax, ecx
cmovle eax, ecx
mov rcx, r12
mov dword [r12 + 0x34], eax
call fcn.14005f3d4
mov r8, qword [r15]
mov rcx, rsi
mov edx, dword [rsp + 0x4c]
call fcn.1400374c8
mov r14, qword [r15 + 0x10]
mov edx, 8
test r14, r14
je 0x1400516e8
mov rax, qword [rsp + 0xf0]
lea r8d, [rdx - 6]
test rax, rax
je 0x1400511d2
cmp rax, r14
jne 0x1400516db
mov rax, qword [r14 + 0x48]
neg rax
sbb cl, cl
and cl, r13b
test byte [r15 + 0x40], 0x20
mov byte [rsp + 0x30], cl
je 0x140051200
mov eax, dword [r14 + 0x64]
and al, 3
cmp al, r8b
jne 0x140051200
movzx ebx, word [r14 + 0x5e]
mov r8, r15
mov edi, ebx
jmp 0x140051215
mov r8, r14
movzx ebx, word [r14 + 0x60]
mov edi, ebx
test byte [r14 + 0x64], dl
je 0x140051215
movzx edi, word [r14 + 0x5e]
mov r8, qword [r8]
lea r13d, [rdi - 1]
mov edx, dword [rsp + 0x54]
mov rcx, rsi
mov dword [rsp + 0x3c], r13d
call fcn.1400374c8
mov eax, dword [r12 + 0x38]
mov ecx, r13d
mov r8d, dword [rsp + 0x108]
add ecx, ebp
cmp eax, ecx
mov edx, reloc.WLDAP32.dll_Ordinal_97
cmovle eax, ecx
mov rcx, rsi
mov dword [r12 + 0x38], eax
mov eax, dword [rsp + 0x38]
mov r9d, dword [r14 + 0x58]
mov dword [rsp + 0x20], eax
call fcn.1400373e4
mov rdx, r14
mov rcx, r12
call fcn.140037fa8
mov r9d, dword [rsp + 0x5c]
mov r8d, ebx
and dword [rsp + 0x20], 0
mov edx, Ordinal_73
mov rcx, rsi
call fcn.1400373e4
mov ebx, dword [rsp + 0x100]
mov edx, Ordinal_73
movzx r8d, word [r14 + 0x5e]
mov rcx, rsi
and dword [rsp + 0x20], 0
lea r9d, [rbx + 2]
call fcn.1400373e4
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea r9d, [rbx + 1]
mov rcx, rsi
lea edx, [r8 + 0x3f]
call fcn.1400373e4
mov r9d, 0xfffffff8
lea r8, [0x14013b570]
mov edx, eax
mov rcx, rsi
call fcn.140037ee8
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x1400512f7
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov ebx, dword [rsp + 0x108]
xor r9d, r9d
and dword [rsp + 0x20], 0
mov r8d, ebx
mov rcx, rsi
lea edx, [r9 + 0x24]
call fcn.1400373e4
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rsi
mov dword [rsp + 0x60], eax
lea edx, [r8 + 0x46]
call fcn.1400373e4
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x48], eax
test r13d, r13d
jle 0x140051591
dec dword [r12 + 0x44]
mov eax, dword [r12 + 0x44]
mov rcx, qword [rsp + 0x80]
mov edx, edi
mov dword [rsp + 0x44], eax
lea rdx, [rdx*4 - 4]
call fcn.14001aa88
xor edi, edi
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400516c0
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
lea edx, [rdi + 0xb]
mov rcx, rsi
call fcn.1400373e4
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x48], eax
lea eax, [rdi + 1]
cmp r13d, eax
jne 0x1400513c5
cmp word [r14 + 0x5e], ax
jne 0x1400513c5
cmp byte [r14 + 0x62], dil
je 0x1400513c5
mov r9d, dword [rsp + 0x44]
lea edx, [rdi + 0x33]
mov r8d, ebp
mov dword [rsp + 0x20], edi
mov rcx, rsi
call fcn.1400373e4
mov r13d, edi
mov edi, dword [rsp + 0x3c]
test edi, edi
jle 0x1400514c1
mov rcx, qword [rsp + 0x68]
xor eax, eax
mov qword [rsp + 0x70], rax
mov r15d, edi
mov qword [rsp + 0x78], rcx
mov rdx, qword [r14 + 0x40]
mov rcx, r12
mov rdx, qword [rdx + rax]
call fcn.1400548fc
mov r9d, dword [rsp + 0x40]
mov r8d, r13d
and dword [rsp + 0x20], 0
mov edx, Ordinal_73
mov rcx, rsi
mov rdi, rax
call fcn.1400373e4
mov eax, dword [rsp + 0x34]
mov r9d, r13d
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov edx, 0x5a
mov rcx, rsi
call fcn.1400373e4
mov r8d, dword [rsp + 0x34]
mov ecx, r13d
add ecx, ebp
xor r9d, r9d
mov dword [rsp + 0x20], ecx
mov rcx, rsi
lea edx, [r9 + 0x34]
call fcn.1400373e4
mov r9d, 0xfffffffe
mov r8, rdi
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.140037ee8
mov rdx, qword [rsp + 0x78]
mov dword [rdx], ebx
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14005148b
lea rcx, [rax + rax*2]
mov r8d, Ordinal_133
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], r8w
mov rax, qword [rsp + 0x70]
add rdx, 4
mov ebx, dword [rsp + 0x108]
add rax, 8
inc r13d
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
cmp r13d, r15d
jl 0x1400513e8
mov r15, qword [rsp + 0xe8]
mov edi, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x40]
mov r8d, edi
and dword [rsp + 0x20], 0
mov edx, Ordinal_73
mov rcx, rsi
call fcn.1400373e4
mov r9d, dword [rsp + 0x44]
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rsi
lea edx, [r8 + 0xb]
call fcn.1400373e4
mov edx, dword [rsp + 0x48]
mov rcx, rsi
dec edx
call fcn.140037fd4
mov ecx, dword [rsi + 0x90]
xor ebx, ebx
mov dword [rax + 8], ecx
test edi, edi
jle 0x14005156c
mov r13, qword [rsp + 0x68]
lea r12d, [rbx + 1]
mov r15d, dword [rsp + 0x108]
mov edx, dword [r13]
mov rcx, rsi
call fcn.140037fd4
mov ecx, dword [rsi + 0x90]
mov r9d, ebx
mov r8d, r15d
mov edx, 0x5a
mov dword [rax + 8], ecx
lea eax, [rbx + rbp]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1400373e4
add ebx, r12d
lea r13, [r13 + 4]
cmp ebx, edi
jl 0x140051522
mov r15, qword [rsp + 0xe8]
mov r12, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x44]
mov rcx, rsi
call fcn.1400378d0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
call fcn.14001a800
mov ebx, dword [rsp + 0x108]
mov eax, dword [rsp + 0x34]
mov edx, 0x3f
mov edi, dword [rsp + 0x100]
mov rcx, rsi
mov r9d, edi
mov dword [rsp + 0x20], eax
lea r8d, [rdx - 0x3e]
call fcn.1400373e4
mov r9d, 0xfffffff8
lea r8, [0x14013e7c0]
mov edx, eax
mov rcx, rsi
call fcn.140037ee8
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x1400515eb
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov r9d, dword [rsp + 0x48]
mov r8d, ebx
and dword [rsp + 0x20], 0
mov edx, 5
mov rcx, rsi
call fcn.1400373e4
mov r9d, dword [rsp + 0x50]
mov edx, edi
mov rcx, rsi
call fcn.140050fc4
mov edi, dword [rsp + 0x34]
mov r9d, 3
mov r8d, dword [rsp + 0x4c]
mov rcx, rsi
mov dword [rsp + 0x20], edi
lea edx, [r9 + 0x59]
call fcn.1400373e4
xor r9d, r9d
lea r8, [0x140157d74]
mov edx, eax
mov rcx, rsi
call fcn.140037ee8
mov r13d, dword [rsp + 0x58]
mov edx, Ordinal_122
mov r8d, dword [rsp + 0xf8]
mov r9d, r13d
and dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.1400373e4
mov r8d, dword [rsp + 0xf8]
mov r9d, edi
mov edx, reloc.WLDAP32.dll_Ordinal_122
mov dword [rsp + 0x20], r13d
mov rcx, rsi
call fcn.1400373e4
movsxd r9, dword [rsi + 0x90]
test r9d, r9d
jle 0x1400516ae
mov rax, qword [rsi + 0x88]
lea rcx, [r9 + r9*2]
mov edx, 8
mov word [rax + rcx*8 - 0x16], dx
mov r9d, dword [rsi + 0x90]
mov edx, dword [rsp + 0x60]
mov rcx, rsi
call fcn.140037fd4
mov dword [rax + 8], r9d
jmp 0x1400516c4
mov edi, dword [rsp + 0x34]
mov rax, qword [rsp + 0xf0]
mov r8d, 2
mov r13b, byte [rsp + 0x30]
lea edx, [r8 + 6]
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x1400511c4
xor r15d, r15d
cmp qword [rsp + 0xf0], r15
jne 0x1400517f0
test r13b, r13b
je 0x1400517f0
mov r9d, dword [rsp + 0x50]
lea edx, [r15 + 0x5d]
mov r8d, dword [rsp + 0x64]
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.1400373e4
mov r8d, dword [rsp + 0x50]
lea edx, [r15 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.1400373e4
mov r9d, dword [rsp + 0x54]
lea edx, [r15 + 0x49]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, rsi
mov ebx, eax
call fcn.1400373e4
mov r8d, dword [rsp + 0x4c]
lea r9d, [r15 + 3]
lea edx, [r15 + 0x5c]
mov dword [rsp + 0x20], edi
mov rcx, rsi
call fcn.1400373e4
xor r9d, r9d
lea r8, [0x140157d74]
mov edx, eax
mov rcx, rsi
call fcn.140037ee8
mov r14d, dword [rsp + 0x58]
lea edx, [r15 + 0x79]
mov r8d, dword [rsp + 0xf8]
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.1400373e4
mov r8d, dword [rsp + 0xf8]
lea edx, [r15 + 0x7a]
mov r9d, edi
mov dword [rsp + 0x20], r14d
mov rcx, rsi
call fcn.1400373e4
movsxd r9, dword [rsi + 0x90]
test r9d, r9d
jle 0x1400517e2
mov rax, qword [rsi + 0x88]
lea rdx, [r9 + r9*2]
lea ecx, [r15 + 8]
mov word [rax + rdx*8 - 0x16], cx
mov r9d, dword [rsi + 0x90]
mov edx, ebx
mov rcx, rsi
call fcn.140037fd4
mov dword [rax + 8], r9d
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret