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

Disassembly:
sub esp, 0x80
mov eax, dword [0x100bdc68]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x90]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
movzx ebx, byte [esi + 0x2d]
inc ebx
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x10], ebx
jne 0x1009b875
mov ecx, dword [esi + 4]
mov eax, 3
push 0xa
sub eax, ebx
push eax
mov edx, dword [ecx]
push ebx
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x1009bcc3
push edi
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 8]
lea edx, [esp + 0x48]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1009bca1
cmp dword [esp + 0x40], ebp
jl 0x1009bbd1
jg 0x1009b8b7
cmp dword [esp + 0x3c], 0x20
jbe 0x1009bbd1
mov eax, dword [esi + 8]
lea edx, [esp + 0x6c]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1009bca1
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x74]
bswap edx
mov eax, edx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x5c], edi
cmp eax, 0x377f0682
jne 0x1009bbd1
lea eax, [edi - 1]
test edi, eax
jne 0x1009bbd1
cmp edi, 0x10000
jg 0x1009bbd1
cmp edi, 0x200
jl 0x1009bbd1
mov eax, dword [esp + 0x78]
lea ebx, [esi + 0x4c]
mov ecx, dword [esp + 0x80]
and dl, 1
bswap eax
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x7c]
push ebx
mov dword [esi + 0x54], eax
lea eax, [esp + 0x70]
push 0
push 0x18
push eax
movzx eax, dl
xor eax, 1
mov byte [esi + 0x41], dl
push eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x58], ecx
call fcn.1009b110
mov eax, dword [esp + 0x98]
add esp, 0x14
bswap eax
cmp dword [ebx], eax
jne 0x1009bbd1
mov eax, dword [esp + 0x88]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x1009bbd1
mov eax, dword [esp + 0x70]
bswap eax
cmp eax, 0x2de218
je 0x1009b99d
push 0xfaf2
call fcn.1004f5b0
mov edi, eax
jmp 0x1009bbc6
lea eax, [edi + 0x8018]
push 0
lea ebx, [edi + 0x18]
push eax
mov dword [esp + 0x54], ebx
call sym.sqlite3.dll_sqlite3_malloc64
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1009b9c5
lea edi, [eax + 7]
jmp 0x1009bc9d
mov ecx, dword [esp + 0x40]
add eax, 0x18
mov dword [esp + 0x50], eax
add eax, edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
sub edi, 0x20
mov eax, ebx
cdq
sbb ecx, ebp
mov ebx, eax
mov eax, edx
push eax
push ebx
push ecx
push edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], eax
call fcn.100aaca0
mov edx, eax
mov dword [esp + 0x60], 0x7f78
xor ebx, ebx
mov dword [esp + 0x68], edx
mov dword [esp + 0x20], ebx
lea eax, [edx + 0x21]
shr eax, 0xc
mov dword [esp + 0x64], eax
mov ebp, ebx
mov ecx, edx
shl ebp, 0xc
lea eax, [ebp + 0xfde]
cmp edx, eax
cmovae ecx, eax
mov dword [esp + 0x1c], ecx
test ebx, ebx
jne 0x1009ba34
lea ebp, [ebx + 1]
jmp 0x1009ba37
add ebp, 0xffffffdf
cmp dword [esi + 0x18], ebx
jle 0x1009ba64
mov eax, dword [esi + 0x20]
lea edx, [esi + 0x20]
lea edi, [ebx*4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], edi
mov eax, dword [edi + eax]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
test eax, eax
je 0x1009ba6b
xor edi, edi
jmp 0x1009ba97
lea eax, [esi + 0x20]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
push ebx
push esi
call fcn.1009b4e0
mov edx, dword [esp + 0x24]
mov edi, eax
lea eax, [ebx*4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
add esp, 0xc
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1009bbb9
mov ebx, dword [esp + 0x28]
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
mov dword [ebx + eax], ecx
mov ebx, dword [esp + 0x20]
cmp ebp, dword [esp + 0x1c]
ja 0x1009bb6d
nop word [eax + eax]
push dword [esp + 0x44]
mov edi, dword [esi + 8]
lea eax, [ebp - 1]
push dword [esp + 0x4c]
push 0
mov ebx, dword [edi]
push eax
call fcn.100aad50
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x54]
mov eax, dword [ebx + 8]
push dword [esp + 0x1c]
push edi
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1009bb65
push dword [esp + 0x10]
lea eax, [esp + 0x5c]
push dword [esp + 0x54]
push eax
lea eax, [esp + 0x60]
push eax
push esi
call fcn.1009b240
add esp, 0x14
test eax, eax
je 0x1009bb65
push dword [esp + 0x54]
push ebp
push esi
call fcn.1009b350
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1009bb65
mov eax, dword [esp + 0x58]
test eax, eax
je 0x1009bb5a
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x5c]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov dword [esi + 0x44], ebp
mov word [esi + 0x42], cx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x38], eax
inc ebp
cmp ebp, dword [esp + 0x1c]
jbe 0x1009bac0
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
xor ecx, ecx
mov edx, dword [esp + 0x2c]
test ebx, ebx
mov dword [eax + ebx*4], edx
mov eax, 0x88
cmove ecx, eax
mov eax, 0x8000
cmove eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x34]
add eax, ecx
push eax
lea eax, [ecx + edx]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebp, dword [esp + 0x1c]
jbe 0x1009bbb9
mov edx, dword [esp + 0x68]
inc ebx
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x64]
jbe 0x1009ba15
push dword [esp + 0x10]
call sym.sqlite3.dll_sqlite3_free
mov ebp, dword [esp + 0x38]
add esp, 4
test edi, edi
jne 0x1009bc9d
mov eax, dword [esp + 0x38]
push esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.1009be90
mov eax, dword [esi + 0x20]
add esp, 4
mov ebx, 1
mov ecx, dword [eax]
add ecx, 0x60
mov dword [esp + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x44]
mov dword [ecx + 0x20], eax
mov dword [ecx + 4], 0
nop dword [eax + eax]
cmp byte [esi + 0x2b], 0
lea ebp, [ebx + 3]
je 0x1009bc1d
xor edi, edi
jmp 0x1009bc3a
mov ecx, dword [esi + 4]
push 0xa
push 1
push ebp
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1009bc70
mov ecx, dword [esp + 0x10]
cmp ebx, 1
jne 0x1009bc4d
cmp dword [esi + 0x44], 0
je 0x1009bc4d
mov eax, dword [esi + 0x44]
mov dword [ecx + 8], eax
jmp 0x1009bc55
mov dword [ecx + ebx*4 + 4], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x1009bc79
mov eax, dword [esi + 4]
push 9
push 1
push ebp
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
jmp 0x1009bc75
cmp edi, 5
jne 0x1009bc9d
mov ecx, dword [esp + 0x10]
inc ebx
cmp ebx, 5
jl 0x1009bc10
cmp dword [esi + 0x48], 0
je 0x1009bc9d
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call sym.sqlite3.dll_sqlite3_log
add esp, 0x10
mov ebx, dword [esp + 0x14]
cmp byte [esi + 0x2b], 0
jne 0x1009bcc0
mov eax, dword [esi + 4]
mov edx, 3
push 9
sub edx, ebx
push edx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov eax, edi
pop edi
mov ecx, dword [esp + 0x88]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100aac86
add esp, 0x80
ret