Function at 0x140049e14
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 r12, qword [rcx]
mov ebx, dword [rsp + 0x100]
mov r15, rcx
mov ecx, 1
mov dword [rsp + 0x4c], ebx
mov r13, r8
add ebx, ecx
mov byte [rsp + 0x30], cl
mov r14, rdx
lea eax, [rbx + 1]
mov dword [rsp + 0x100], ebx
mov qword [rsp + 0x88], r12
lea ebp, [rcx + rax]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], ebp
add ebp, ecx
mov ebx, ebp
add ebp, ecx
mov dword [rsp + 0x50], ebp
add ebp, ecx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x54], ebp
add ebp, ecx
mov rcx, r15
cmp dword [r15 + 0x38], ebp
mov eax, ebp
cmovg eax, dword [r15 + 0x38]
mov dword [r15 + 0x38], eax
call fcn.1400631d4
mov rsi, rax
test rax, rax
je 0x14004a5eb
test r14, r14
je 0x14004a5eb
cmp dword [r14 + 0x38], 0
je 0x14004a5eb
mov rdx, qword [r14]
lea r8, [0x1400c9cc0]
lea rcx, str.sqlite__
mov r9d, Ordinal_97
call fcn.14005479c
test eax, eax
je 0x14004a5eb
mov rcx, qword [r14 + 0x70]
mov edi, 0xfff0bdc0
mov dword [rsp + 0x40], edi
test rcx, rcx
je 0x140049f23
mov rax, qword [r12 + 0x20]
xor edi, edi
add rax, 0x18
mov dword [rsp + 0x40], edi
cmp qword [rax], rcx
je 0x140049f23
add rax, 0x20
inc edi
cmp qword [rax], rcx
jne 0x140049f14
mov dword [rsp + 0x40], edi
mov rax, qword [r12 + 0x20]
mov r8, qword [r14]
xor r9d, r9d
movsxd rcx, edi
lea edx, [r9 + 0x1c]
shl rcx, 5
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, r15
call fcn.14004b948
test eax, eax
jne 0x14004a5eb
mov eax, dword [rsp + 0x108]
mov edx, 1
mov r9, r14
mov ecx, eax
mov dword [rsp + 0x68], eax
add eax, edx
mov dword [rsp + 0x34], eax
add eax, edx
mov edx, ecx
cmp dword [r15 + 0x34], eax
mov r8d, edi
mov rcx, r15
cmovg eax, dword [r15 + 0x34]
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_97
mov dword [r15 + 0x34], eax
call fcn.1400580bc
mov r8, qword [r14]
mov edx, ebx
mov rcx, rsi
call fcn.1400302b4
mov r12, qword [r14 + 0x10]
mov edx, 8
test r12, r12
je 0x14004a4df
lea r8d, [rdx - 6]
test r13, r13
je 0x140049fc2
cmp r13, r12
jne 0x14004a4d1
mov rax, qword [r12 + 0x48]
neg rax
sbb cl, cl
and cl, byte [rsp + 0x30]
test byte [r14 + 0x40], 0x20
mov byte [rsp + 0x30], cl
je 0x14004a5ff
mov eax, dword [r12 + 0x64]
and al, 3
cmp al, r8b
jne 0x14004a5ff
movzx ebx, word [r12 + 0x5e]
mov r8, qword [r14]
lea r13d, [rbx - 1]
mov edx, dword [rsp + 0x50]
mov rcx, rsi
call fcn.1400302b4
mov r8d, dword [rsp + 0x34]
lea r11d, [r13 + rbp]
cmp dword [r15 + 0x38], r11d
mov edx, reloc.WLDAP32.dll_Ordinal_97
mov rcx, rsi
cmovg r11d, dword [r15 + 0x38]
mov dword [rsp + 0x20], edi
mov dword [r15 + 0x38], r11d
mov r9d, dword [r12 + 0x58]
call fcn.140030238
mov rdx, r12
mov rcx, r15
call fcn.140030bdc
mov r9d, dword [rsp + 0x60]
and dword [rsp + 0x20], 0
mov r8d, ebx
mov edx, Ordinal_73
mov rcx, rsi
call fcn.140030238
mov ebx, dword [rsp + 0x100]
movzx r8d, word [r12 + 0x5e]
and dword [rsp + 0x20], 0
lea r9d, [rbx + 2]
mov edx, Ordinal_73
mov rcx, rsi
call fcn.140030238
xor r8d, r8d
lea r9d, [rbx + 1]
lea edx, [r8 + 0x3f]
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140030238
lea r8, [0x1400c9b00]
mov r9d, 0xfffffff8
mov edx, eax
mov rcx, rsi
call fcn.140030b14
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14004a0cb
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov edx, 2
mov word [rax + rcx*8 - 0x16], dx
mov r8d, dword [rsp + 0x34]
and dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 0x24]
mov rcx, rsi
call fcn.140030238
mov r9d, dword [rsp + 0x3c]
and dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x5c], eax
lea edx, [r8 + 0x46]
call fcn.140030238
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x44], eax
test r13d, r13d
jle 0x14004a358
dec dword [r15 + 0x44]
mov eax, dword [r15 + 0x44]
mov rcx, qword [rsp + 0x88]
movsxd rdx, r13d
mov dword [rsp + 0x48], eax
shl rdx, 2
call fcn.140014ae8
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14004a4bf
xor edi, edi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0xb]
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140030238
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x44], eax
lea eax, [rdi + 1]
cmp r13d, eax
jne 0x14004a194
cmp word [r12 + 0x5e], ax
jne 0x14004a194
cmp byte [r12 + 0x62], dil
je 0x14004a194
mov r9d, dword [rsp + 0x48]
lea edx, [rdi + 0x33]
mov r8d, ebp
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140030238
cmp r13d, edi
jle 0x14004a287
mov rax, rdi
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x70], rax
mov r14d, eax
mov rdx, qword [r12 + 0x40]
mov rcx, r15
mov rdx, qword [rax + rdx]
call fcn.14004d488
mov r9d, dword [rsp + 0x3c]
and dword [rsp + 0x20], 0
mov r8d, r14d
mov edx, Ordinal_73
mov rcx, rsi
mov rdi, rax
call fcn.140030238
mov ebx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x34]
mov r9d, r14d
mov edx, 0x5a
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140030238
xor r9d, r9d
lea r11d, [r14 + rbp]
lea edx, [r9 + 0x34]
mov r8d, ebx
mov rcx, rsi
mov dword [rsp + 0x20], r11d
call fcn.140030238
mov r9d, 0xfffffffe
mov r8, rdi
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.140030b14
mov rdx, qword [rsp + 0x80]
mov dword [rdx], ebx
movsxd rax, dword [rsi + 0x90]
xor edi, edi
cmp eax, edi
jle 0x14004a259
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov r8d, Ordinal_133
mov word [rax + rcx*8 - 0x16], r8w
mov rax, qword [rsp + 0x70]
add rdx, 4
inc r14d
add rax, 8
cmp r14d, r13d
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x70], rax
jl 0x14004a1b0
mov r14, qword [rsp + 0xe8]
mov r9d, dword [rsp + 0x3c]
mov r8d, r13d
mov edx, Ordinal_73
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140030238
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 0xb]
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140030238
mov edx, dword [rsp + 0x44]
mov rcx, rsi
dec edx
call fcn.140030c08
cmp r13d, edi
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
mov ebx, edi
jle 0x14004a32f
mov rdi, qword [rsp + 0x78]
mov r14d, dword [rsp + 0x34]
mov r15d, 1
mov edx, dword [rdi]
mov rcx, rsi
call fcn.140030c08
mov ecx, dword [rsi + 0x90]
mov r9d, ebx
mov dword [rax + 8], ecx
lea eax, [rbx + rbp]
mov r8d, r14d
mov edx, 0x5a
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140030238
add ebx, r15d
add rdi, 4
cmp ebx, r13d
jl 0x14004a2e6
mov r14, qword [rsp + 0xe8]
mov r15, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x48]
mov rcx, rsi
call fcn.140030660
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
call fcn.140014878
mov edi, dword [rsp + 0x40]
mov ebx, dword [rsp + 0x100]
mov r13d, dword [rsp + 0x38]
mov r9d, ebx
mov rcx, rsi
mov dword [rsp + 0x20], r13d
mov r13d, 1
lea edx, [r13 + 0x3e]
mov r8d, r13d
call fcn.140030238
lea r9d, [r13 - 9]
lea r8, [0x1400c9b50]
mov edx, eax
mov rcx, rsi
call fcn.140030b14
movsxd r11, dword [rsi + 0x90]
test r11d, r11d
jle 0x14004a3af
mov rax, qword [rsi + 0x88]
lea rcx, [r11 + r11*2]
lea edx, [r13 + 1]
mov word [rax + rcx*8 - 0x16], dx
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x34]
and dword [rsp + 0x20], 0
mov edx, 5
mov rcx, rsi
call fcn.140030238
mov eax, dword [rsp + 0x54]
xor r8d, r8d
lea edx, [r8 + 0x3f]
mov r9d, ebx
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140030238
lea r8, [0x1400c9ba0]
mov r9d, 0xfffffff8
mov rcx, rsi
mov edx, eax
call fcn.140030b14
movsxd r11, dword [rsi + 0x90]
test r11d, r11d
jle 0x14004a419
mov rax, qword [rsi + 0x88]
lea rcx, [r11 + r11*2]
mov word [rax + rcx*8 - 0x16], r13w
mov ebx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x58]
mov r9d, 3
lea edx, [r9 + 0x59]
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140030238
lea r8, [0x1400e478c]
xor r9d, r9d
mov edx, eax
mov rcx, rsi
call fcn.140030b14
mov r13d, dword [rsp + 0xf8]
mov r9d, dword [rsp + 0x4c]
and dword [rsp + 0x20], 0
mov r8d, r13d
mov edx, Ordinal_122
mov rcx, rsi
call fcn.140030238
mov eax, dword [rsp + 0x4c]
mov r9d, ebx
mov r8d, r13d
mov edx, reloc.WLDAP32.dll_Ordinal_122
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140030238
movsxd r11, dword [rsi + 0x90]
test r11d, r11d
jle 0x14004a4aa
mov rax, qword [rsi + 0x88]
lea rcx, [r11 + r11*2]
mov edx, 8
mov word [rax + rcx*8 - 0x16], dx
mov edx, dword [rsp + 0x5c]
mov rcx, rsi
call fcn.140030c08
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
mov r13, qword [rsp + 0xf0]
mov r8d, 2
lea edx, [r8 + 6]
mov r12, qword [r12 + 0x28]
test r12, r12
jne 0x140049fb4
xor r12d, r12d
cmp r13, r12
jne 0x14004a5eb
cmp byte [rsp + 0x30], r12b
je 0x14004a5eb
mov ebx, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x68]
lea edx, [r12 + 0x5d]
mov r9d, ebx
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.140030238
lea edx, [r12 + 0x14]
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.140030238
mov r9d, dword [rsp + 0x50]
lea edx, [r12 + 0x49]
xor r8d, r8d
mov rcx, rsi
mov ebx, eax
mov dword [rsp + 0x20], r12d
call fcn.140030238
mov r13d, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x58]
lea r9d, [r12 + 3]
lea edx, [r12 + 0x5c]
mov rcx, rsi
mov dword [rsp + 0x20], r13d
call fcn.140030238
lea r8, [0x1400e478c]
xor r9d, r9d
mov edx, eax
mov rcx, rsi
call fcn.140030b14
mov ebp, dword [rsp + 0x4c]
mov edi, dword [rsp + 0xf8]
lea edx, [r12 + 0x79]
mov r9d, ebp
mov r8d, edi
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.140030238
lea edx, [r12 + 0x7a]
mov r9d, r13d
mov r8d, edi
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.140030238
movsxd rax, dword [rsi + 0x90]
cmp eax, r12d
jle 0x14004a5d8
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea edx, [r12 + 8]
mov word [rax + rcx*8 - 0x16], dx
mov edx, ebx
mov rcx, rsi
call fcn.140030c08
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx ebx, word [r12 + 0x60]
mov r8, qword [r12]
test byte [r12 + 0x64], dl
je 0x140049ff8
movzx r13d, word [r12 + 0x5e]
dec r13d
jmp 0x140049ffc