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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x10], edi
cmp dword [ebp + 0x14], eax
jge 0x100ae27e
cmp dword [esi + 0x104], eax
je 0x100ae27e
mov ecx, dword [esi + 0x118]
cmp ecx, dword [ebp + 0xc]
jne 0x100ae27e
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x20], eax
jne 0x100ae23f
cmp dword [ebp + 0x24], eax
je 0x100ae244
mov eax, 1
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov edx, esi
call fcn.100b8540
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100ae27e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100ae27e
mov esi, dword [ebp + 0x28]
push eax
call fcn.100ae180
mov esi, dword [ebp + 8]
add esp, 4
mov ebx, eax
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x100ae54b
test ebx, ebx
jne 0x100ae54b
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, esi
call fcn.100b6bf0
mov edi, dword [esp + 0x1c]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100ae54b
push edi
call sym.MyService.dll_sqlite3_step
mov ebx, eax
add esp, 4
cmp ebx, 0x64
jne 0x100ae54b
push 1
push edi
mov dword [esp + 0x18], 0
call sym.MyService.dll_sqlite3_column_int64
push 2
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call sym.MyService.dll_sqlite3_column_int64
push 3
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
call sym.MyService.dll_sqlite3_column_int64
push 4
push edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
call sym.MyService.dll_sqlite3_column_bytes
add esp, 0x20
mov dword [esp + 0x14], eax
test edi, edi
je 0x100ae355
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100ae329
push eax
call dword [0x1012c438]
add esp, 4
mov eax, dword [edi + 0x78]
test eax, eax
je 0x100ae346
mov edx, 4
cmp dx, word [edi + 0x90]
jae 0x100ae346
lea esi, [eax + 0xa0]
jmp 0x100ae35a
mov ebx, dword [edi]
mov eax, 0x19
mov dword [ebx + 0x40], eax
call fcn.1000e000
mov esi, 0x10113968
movzx eax, word [esi + 0x10]
test al, 0x12
je 0x100ae3c1
test eax, 0x400
je 0x100ae3ad
mov ecx, dword [esi + 0xc]
add ecx, dword [esi]
test ecx, ecx
jg 0x100ae37b
test al, 0x10
je 0x100ae3ad
mov ecx, 1
mov eax, 1
mov edx, esi
call fcn.1002dd70
test eax, eax
jne 0x100ae3bd
mov eax, dword [esi]
mov ecx, dword [esi + 8]
add ecx, dword [esi + 0xc]
push eax
push 0
push ecx
call fcn.100ff5c0
mov edx, dword [esi]
add dword [esi + 0xc], edx
mov eax, 0xf9ff
add esp, 0xc
and word [esi + 0x10], ax
or word [esi + 0x10], 0x10
cmp dword [esi + 0xc], 0
je 0x100ae3bd
mov esi, dword [esi + 8]
jmp 0x100ae3ef
xor esi, esi
jmp 0x100ae3ef
mov ecx, eax
and ecx, 0x202
cmp ecx, 0x202
jne 0x100ae3dc
cmp byte [esi + 0x12], 1
jne 0x100ae3dc
mov eax, dword [esi + 8]
jmp 0x100ae3ed
test al, 1
je 0x100ae3e4
xor eax, eax
jmp 0x100ae3ed
mov bl, 1
mov eax, esi
call fcn.1002eec0
mov esi, eax
test edi, edi
je 0x100ae421
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
mov ecx, dword [edi + 0x24]
jne 0x100ae406
test ecx, ecx
jne 0x100ae406
xor eax, eax
jmp 0x100ae40b
call fcn.1000afb0
mov edx, dword [edi]
mov dword [edi + 0x24], eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x100ae421
push eax
call dword [0x1012c440]
add esp, 4
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x100ae489
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100ae489
test esi, esi
je 0x100ae489
mov ecx, dword [ebp + 0x20]
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x20]
and ecx, edx
mov edx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push esi
push ecx
push eax
push edx
call fcn.100acae0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x100ae54b
cmp dword [ebp + 0x20], eax
jne 0x100ae49c
cmp dword [ebp + 0x24], eax
jne 0x100ae49c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
lea eax, [ebx + 1]
jmp 0x100ae49e
cmp dword [ebp + 0x20], 0
jne 0x100ae49c
cmp dword [ebp + 0x24], 0
jne 0x100ae49c
mov eax, 1
jmp 0x100ae49e
xor eax, eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push esi
mov esi, dword [ebp + 0x28]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esi + 4]
push ecx
push eax
inc edx
push edx
call fcn.100b8380
mov ebx, eax
add esp, 0x2c
test ebx, ebx
jne 0x100ae54b
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0x8000000f
jns 0x100ae4f0
dec ecx
or ecx, 0xfffffff0
inc ecx
jne 0x100ae529
mov edx, dword [esi]
lea ebx, [eax*4 + 0x40]
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], edx
call sym.MyService.dll_sqlite3_initialize
test eax, eax
jne 0x100ae53d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ecx
call fcn.1000a850
add esp, 0xc
test eax, eax
je 0x100ae53d
mov dword [esi], eax
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
mov dword [eax + edx*4], ecx
inc dword [esi + 4]
jmp 0x100ae2b7
mov ebx, dword [esp + 0x10]
call fcn.100b8300
mov ebx, 7
push edi
call sym.MyService.dll_sqlite3_reset
add esp, 4
cmp ebx, 0x65
je 0x100ae55b
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret