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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x10141004]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [edx]
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [eax + 0x24]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x64], edi
mov eax, dword [eax]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x1005a98d
push eax
push 1
push eax
push eax
mov edx, 0x10127dbc
jmp 0x1005ae26
xorps xmm0, xmm0
mov dword [esp + 0x5c], edi
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm0
mov dword [esp + 0x60], edi
mov dword [esp + 0x58], edx
mov ecx, dword [eax]
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ecx
cmp ecx, 5
je 0x1005aa03
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x24]
push 0x1005d0f0
call fcn.1005d170
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005a9fd
cmp dword [esp + 0x10], 2
je 0x1005a9fd
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x58]
push eax
push 0x1005d0f0
lea edx, [esp + 0x28]
mov ecx, dword [ecx + 0x10]
call fcn.1005d170
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x60]
jmp 0x1005aa13
mov eax, dword [eax + 0x14]
xor esi, esi
mov dword [esp + 0x5c], 1
mov eax, dword [eax + 0x40]
mov dword [esp + 0x30], eax
test esi, esi
jne 0x1005ab53
lea eax, [eax + eax*2]
shl eax, 3
push esi
push eax
call fcn.1006a9e0
add esp, 8
mov dword [esp + 0x88], eax
test eax, eax
jne 0x1005aa42
lea esi, [eax + 7]
jmp 0x1005ab53
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], ecx
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x20], eax
cmp dword [edx + 0x18], eax
jle 0x1005ab53
mov edi, dword [ecx + 0x10]
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x78], 0
mov eax, dword [edi]
cmp eax, 5
mov dword [esp + 0x28], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x1c], 0
push eax
je 0x1005aaf2
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x20]
push fcn.1005ae90
call fcn.1005d170
add esp, 8
test eax, eax
jne 0x1005aafd
cmp dword [esp + 0x28], 2
je 0x1005aafd
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x70]
push eax
push fcn.1005ae90
lea edx, [esp + 0x24]
call fcn.1005d170
add esp, 8
jmp 0x1005aafd
push 0
push edi
call fcn.1005ae90
add esp, 0xc
mov eax, dword [esp + 0x20]
inc eax
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push dword [eax + 0xc]
call fcn.100e4de0
push dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x20]
push dword [eax + 0xc]
call sym.SQLite.Interop.dll_SId99ac2a61d035e11
add esp, 0x10
test edi, edi
jne 0x1005ac01
mov eax, dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [eax + 0xc]
call sym.SQLite.Interop.dll_SI4983499b64278231
add esp, 8
cmp eax, 5
je 0x1005adf3
lea esi, [edi + 7]
mov edi, dword [esp + 0x64]
push dword [esp + 0x88]
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
mov eax, dword [esp + 0x1c]
add esp, 4
mov eax, dword [eax + 0xfc]
mov dword [esp + 0x50], eax
test eax, eax
je 0x1005abc3
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x10], ecx
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x1005ab9b
push edx
call dword [0x10142318]
mov eax, dword [esp + 0x54]
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, eax
call fcn.10111980
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1005abb7
push eax
call dword [0x10142320]
add esp, 4
push dword [esp + 0x4c]
call fcn.100e6950
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [eax + 0xfc], 0
test esi, esi
je 0x1005ae11
push esi
mov esi, dword [esp + 0x58]
push esi
call sym.SQLite.Interop.dll_SI633e1c91fb9a8aa1
push edi
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.100011bc
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x44]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push edi
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x24]
call fcn.1006a950
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005ab4f
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x5c]
push dword [esp + 0x58]
mov eax, dword [eax + 0x14]
call eax
add esp, 0x18
mov dword [esp + 0x40], eax
test eax, eax
jne 0x1005add3
nop dword [eax]
mov eax, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
mov edi, 0x7fffffff
test eax, eax
jle 0x1005adce
mov ecx, dword [esp + 0x88]
add ecx, 8
mov dword [esp + 0x28], eax
cmp dword [ecx - 8], 0
lea eax, [ecx - 8]
je 0x1005acc0
mov eax, dword [ecx]
sub eax, dword [ecx + 8]
mov esi, dword [ecx + 4]
sbb esi, dword [ecx + 0xc]
mov dword [esp + 0x4c], eax
mov eax, edi
cdq
cmp esi, edx
jg 0x1005acbc
jl 0x1005acac
cmp dword [esp + 0x4c], eax
jae 0x1005acbc
mov edi, dword [ecx]
lea eax, [ecx - 8]
sub edi, dword [ecx + 8]
mov esi, eax
mov dword [esp + 0x24], esi
jmp 0x1005acc0
mov esi, dword [esp + 0x24]
add ecx, 0x18
sub dword [esp + 0x28], 1
jne 0x1005ac85
test esi, esi
je 0x1005adce
mov ecx, dword [esi]
mov al, byte [ecx]
test al, 0xfe
jne 0x1005ace2
mov dword [esi], 0
jmp 0x1005ad0f
test al, al
jns 0x1005acf7
lea edx, [esp + 0x2c]
call fcn.10073f10
mov ecx, eax
mov eax, dword [esp + 0x2c]
jmp 0x1005ad03
movzx eax, al
mov ecx, 1
mov dword [esp + 0x2c], eax
add dword [esi], ecx
add eax, 0xfffffffe
cdq
add dword [esi + 8], eax
adc dword [esi + 0xc], edx
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x34], edi
jge 0x1005ad46
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x58]
mov eax, dword [esi + 0x14]
call eax
add esp, 0x18
test eax, eax
je 0x1005ad17
mov esi, dword [esp + 0x24]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x1005adad
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
sub esi, dword [esp + 0x88]
push eax
mov eax, 0x2aaaaaab
imul esi
push ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xa8]
push str._d__d__d__d
push eax
push 0x40
call fcn.1010eed0
add esp, 0x1c
lea edx, [esp + 0x98]
lea ecx, [esp + 0x64]
push 0xffffffffffffffff
call fcn.1005c840
add esp, 4
mov dword [esp + 0x40], eax
jmp 0x1005adb2
cmp eax, 0x65
je 0x1005adbc
test eax, eax
je 0x1005ac60
jmp 0x1005add3
mov edx, dword [esp + 0x18]
mov ecx, 0x10b
cmp dword [edx + 0x28], 0
cmove eax, ecx
jmp 0x1005add3
mov eax, 0x65
push dword [esp + 0x44]
xor esi, esi
cmp eax, 0x65
cmovne esi, eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
test esi, esi
jne 0x1005ab4f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
cmp eax, dword [ecx + 0x18]
jge 0x1005ab4f
mov ecx, dword [esp + 0x14]
jmp 0x1005aa71
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x54]
dec eax
push sym.SQLite.Interop.dll_SIfc350ae509dc2b53
cdq
push 1
push edx
push eax
mov edx, edi
mov ecx, dword [esi]
call fcn.100ed630
add esp, 0x10
test eax, eax
je 0x1005ae70
cmp eax, 0x12
jne 0x1005ae67
mov ecx, dword [esi]
mov edx, str.string_or_blob_too_big
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [esi + 0x14], eax
call fcn.100ed630
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.100011bc
mov esp, ebp
pop ebp
ret
push esi
call sym.SQLite.Interop.dll_SI943321d364f02e5d
add esp, 4
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.100011bc
mov esp, ebp
pop ebp
ret