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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x10141004]
xor eax, esp
mov dword [esp + 0xf4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [edx]
push edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
cmp dword [edx + 0x10], ecx
jne 0x1005b01a
push ecx
push 1
push ecx
push ecx
mov ecx, dword [esi]
mov edx, 0x10127dbc
call fcn.100ed630
add esp, 0x10
test eax, eax
je 0x1005b4c0
cmp eax, 0x12
je 0x1005b420
push esi
call sym.SQLite.Interop.dll_SI943321d364f02e5d
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.100011bc
mov esp, ebp
pop ebp
ret
mov edx, 0xffffffc0
mov eax, 0x40
cmp dword [ebp + 0x18], edx
mov esi, 1
cmovge edx, dword [ebp + 0x18]
cmp edx, eax
cmovg edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], esi
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x58], xmm0
test edx, edx
js 0x1005b064
lea eax, [edx - 1]
add eax, esi
cdq
idiv esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
jmp 0x1005b06a
neg edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], 0
test esi, esi
jle 0x1005b19a
mov ecx, dword [esp + 0x3c]
lea edi, [esp + 0x98]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
or ecx, 0xffffffff
xorps xmm0, xmm0
mov dword [esp + 0x38], ecx
xor esi, esi
mov ecx, dword [esp + 0x18]
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
cmp dword [ecx + 0x18], esi
jle 0x1005b150
mov dword [esp + 0x70], 0
xorps xmm0, xmm0
mov dword [esp + 0x74], 0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
mov dword [esp + 0x34], 0
test eax, eax
js 0x1005b0e4
cmp esi, eax
jne 0x1005b146
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x58]
push esi
call fcn.1005c900
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x1005b1f3
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x38]
jle 0x1005b142
movups xmm0, xmmword [esp + 0x70]
mov dword [esp + 0x38], ecx
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x80]
movq qword [edi + 0x10], xmm0
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, dword [ecx + 0x18]
jl 0x1005b0b2
mov ecx, dword [esp + 0x24]
or edx, dword [edi + 8]
or ecx, dword [edi + 0xc]
add edi, 0x18
inc dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x28], esi
jl 0x1005b091
cmp dword [esp + 0x58], edx
jne 0x1005b183
cmp dword [esp + 0x5c], ecx
je 0x1005b196
mov ecx, dword [esp + 0x14]
cmp esi, 4
je 0x1005b19a
mov edx, dword [esp + 0x4c]
inc esi
jmp 0x1005b03c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x1005b1f3
lea edi, [esp + 0x98]
nop dword [eax + eax]
test ecx, ecx
jne 0x1005b1ef
lea ecx, [esp + 0x64]
dec eax
push ecx
push dword [esp + 0x54]
xor ecx, ecx
mov edx, edi
push dword [esp + 0x5c]
cmp esi, eax
push dword [esp + 0x3c]
sete cl
push dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x5c]
push esi
call fcn.1005c3e0
mov ecx, eax
inc esi
mov eax, dword [esp + 0x38]
add esp, 0x1c
add edi, 0x18
cmp esi, eax
jl 0x1005b1b0
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0xfc]
test esi, esi
je 0x1005b2ec
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1005b220
push eax
call dword [0x10142318]
add esp, 4
cmp dword [edi + 0x220], 0
je 0x1005b237
mov edx, esi
mov ecx, edi
call fcn.101119d0
jmp 0x1005b2c7
cmp esi, dword [edi + 0x174]
jae 0x1005b26f
cmp esi, dword [edi + 0x16c]
jb 0x1005b257
mov eax, dword [edi + 0x168]
mov dword [esi], eax
mov dword [edi + 0x168], esi
jmp 0x1005b2c7
cmp esi, dword [edi + 0x170]
jb 0x1005b26f
mov eax, dword [edi + 0x160]
mov dword [esi], eax
mov dword [edi + 0x160], esi
jmp 0x1005b2c7
cmp dword [0x101422c8], 0
je 0x1005b2bd
mov eax, dword [0x101441e8]
test eax, eax
je 0x1005b28b
push eax
call dword [0x10142318]
add esp, 4
push esi
call dword [0x101422f4]
sub dword [0x10144240], eax
add esp, 4
dec dword [0x10144264]
push esi
call dword [0x101422ec]
mov eax, dword [0x101441e8]
add esp, 4
test eax, eax
je 0x1005b2c7
push eax
call dword [0x10142320]
jmp 0x1005b2c4
push esi
call dword [0x101422ec]
add esp, 4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1005b2d8
push eax
call dword [0x10142320]
add esp, 4
push dword [esp + 0x30]
call fcn.100e6950
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xfc], 0
test ecx, ecx
je 0x1005b3f6
mov eax, dword [esp + 0x48]
mov dword [eax + 0x14], ecx
mov ecx, dword [eax]
test byte [ecx + 8], 1
je 0x1005b365
mov eax, dword [esp + 0x14]
mov edx, str.unknown_error
sub eax, 0x64
je 0x1005b350
sub eax, 1
je 0x1005b349
sub eax, 0x19f
je 0x1005b342
mov eax, dword [esp + 0x14]
movzx eax, al
cmp eax, 0x1d
jae 0x1005b355
mov eax, dword [eax*4 + 0x10132978]
test eax, eax
je 0x1005b355
mov edx, eax
jmp 0x1005b355
mov edx, str.abort_due_to_ROLLBACK
jmp 0x1005b355
mov edx, str.no_more_rows_available
jmp 0x1005b355
mov edx, str.another_row_available
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.100ed630
add esp, 0x10
mov esi, dword [esp + 0x64]
test esi, esi
je 0x1005b4c0
cmp dword [0x101422c8], 0
je 0x1005b3d8
mov eax, dword [0x101441e8]
test eax, eax
je 0x1005b38d
push eax
call dword [0x10142318]
add esp, 4
push esi
call dword [0x101422f4]
sub dword [0x10144240], eax
add esp, 4
dec dword [0x10144264]
push esi
call dword [0x101422ec]
mov eax, dword [0x101441e8]
add esp, 4
test eax, eax
je 0x1005b4c0
push eax
call dword [0x10142320]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.100011bc
mov esp, ebp
pop ebp
ret
push esi
call dword [0x101422ec]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.100011bc
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x64]
push sym.SQLite.Interop.dll_SIfc350ae509dc2b53
push 1
mov ecx, dword [esi]
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.100ed630
add esp, 0x10
test eax, eax
je 0x1005b4c0
cmp eax, 0x12
jne 0x1005b452
mov ecx, dword [esi]
mov edx, str.string_or_blob_too_big
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [esi + 0x14], 0x12
call fcn.100ed630
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.100011bc
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, 0x2400
test word [eax + 8], cx
je 0x1005b468
mov ecx, eax
call fcn.100ee1f0
jmp 0x1005b471
mov ecx, 1
mov word [eax + 8], cx
mov eax, dword [esi]
mov dword [esi + 0x14], 7
mov eax, dword [eax + 0x20]
cmp byte [eax + 0x53], 0
jne 0x1005b4c0
cmp byte [eax + 0x54], 0
jne 0x1005b4c0
cmp dword [eax + 0xc8], 0
mov byte [eax + 0x53], 1
jle 0x1005b4a0
mov dword [eax + 0x138], 1
inc dword [eax + 0x140]
xor ecx, ecx
mov word [eax + 0x144], cx
mov eax, dword [eax + 0x10c]
test eax, eax
je 0x1005b4c0
mov dword [eax + 0xc], 7
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
xor ecx, esp
call fcn.100011bc
mov esp, ebp
pop ebp
ret