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

Disassembly:
sub esp, 0x24
mov edx, dword [esp + 0x28]
push ebx
mov eax, ecx
push ebp
not eax
and eax, 1
push esi
mov dword [esp + 0x28], eax
mov eax, dword [edx + 4]
push edi
xor edi, edi
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x28
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x24], edi
jle 0x1002e848
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 0x1c], eax
jmp 0x1002e850
mov dword [esp + 0x1c], 0x28
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov dword [eax], edi
test cl, 2
je 0x1002ea51
mov dword [esp + 0x20], 1
cmp esi, edi
je 0x1002e899
cmp byte [esi], bl
je 0x1002ea51
push edi
mov ebx, esi
call fcn.100241f0
mov edi, eax
add esp, 4
test edi, edi
je 0x1002eb65
mov ecx, edi
call fcn.10025ea0
mov ebx, eax
mov dword [esp + 0x40], ebp
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 4]
lea eax, [ebx + 0x5b]
lea edx, [ebp + eax*2]
add ecx, 7
add edx, eax
mov eax, dword [esp + 0x1c]
and ecx, 0xfffffff8
add edx, ecx
lea eax, [edx + eax*2]
push eax
mov dword [esp + 0x34], eax
call fcn.10023b40
mov esi, eax
add esp, 4
test esi, esi
je 0x1002eb5c
mov ecx, dword [esp + 0x30]
push ecx
push 0
push esi
call fcn.1012a6a0
mov ecx, dword [esp + 0x44]
lea eax, [esi + 0xd0]
mov dword [esi + 0xc4], eax
add eax, 0x30
mov dword [esi + 0x3c], eax
mov edx, dword [ecx + 4]
add edx, 7
and edx, 0xfffffff8
add eax, edx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x44], eax
add eax, edx
mov dword [esi + 0x40], eax
add eax, edx
add esp, 0xc
mov dword [esi + 0x90], eax
test edi, edi
je 0x1002e9c8
push ebx
lea ecx, [eax + ebp]
lea edx, [ecx + ebx + 1]
push edi
push eax
mov dword [esi + 0x94], edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
test ebp, ebp
je 0x1002e951
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x90]
push ebp
push eax
lea edx, [ecx + ebx + 1]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x94]
push ebx
push edi
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 0x94]
mov ecx, dword [str._journal]
mov dword [eax + ebx], ecx
mov edx, dword [0x10378960]
add eax, ebx
mov dword [eax + 4], edx
mov cx, word [0x10378964]
add esp, 0xc
mov word [eax + 8], cx
mov edx, dword [esi + 0x94]
push ebx
lea eax, [edx + ebx + 9]
push edi
push eax
mov dword [esi + 0xcc], eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 0xcc]
mov ecx, dword [str._wal]
add eax, ebx
mov dword [eax], ecx
mov dl, byte [0x1037896c]
add esp, 0xc
push edi
mov byte [eax + 4], dl
call sym.NirvanaBiz.dll_sqlite3_free
mov ecx, dword [esp + 0x3c]
add esp, 4
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esi], ecx
mov dword [esi + 0x78], eax
test edx, edx
je 0x1002eb78
cmp byte [edx], 0
je 0x1002eb78
mov edx, dword [esi + 0x3c]
mov edi, dword [esi + 0x90]
lea ebx, [esp + 0x38]
push ebx
and eax, 0x87f7f
push eax
mov eax, dword [ecx + 0x18]
push edx
push edi
push ecx
mov dword [esp + 0x4c], 0
call eax
mov ebx, dword [esp + 0x4c]
mov edi, eax
add esp, 0x14
and ebx, 1
test edi, edi
jne 0x1002ebb2
test ebx, ebx
jne 0x1002eb91
call fcn.1002d300
mov eax, dword [esi + 0x7c]
cmp eax, 0x400
jbe 0x1002eb91
cmp eax, 0x2000
jbe 0x1002eb72
mov dword [esp + 0x18], 0x2000
jmp 0x1002eb91
cmp esi, edi
je 0x1002e899
cmp byte [esi], bl
je 0x1002e899
mov ebx, dword [edx + 8]
inc ebx
lea ecx, [ebx + ebx]
push ecx
call fcn.10023b40
mov edi, eax
add esp, 4
test edi, edi
je 0x1002eb65
mov eax, dword [esp + 0x38]
push edi
push ebx
mov byte [edi], 0
mov edx, dword [eax + 0x24]
push esi
push eax
call edx
mov edx, eax
add esp, 0x10
cmp byte [edi], 0
mov dword [esp + 0x14], edx
mov eax, edi
je 0x1002eaa6
jmp 0x1002eaa0
inc eax
cmp byte [eax], 0
jne 0x1002eaa0
sub eax, edi
and eax, 0x3fffffff
cmp byte [esi], 0
mov ebx, eax
mov eax, esi
je 0x1002eabc
inc eax
cmp byte [eax], 0
jne 0x1002eab6
sub eax, esi
and eax, 0x3fffffff
cmp byte [eax + esi + 1], 0
lea esi, [eax + esi + 1]
mov dword [esp + 0x24], esi
mov ecx, esi
je 0x1002eb18
cmp byte [ecx], 0
mov eax, ecx
je 0x1002eae6
jmp 0x1002eae0
inc eax
cmp byte [eax], 0
jne 0x1002eae0
sub eax, ecx
and eax, 0x3fffffff
lea ecx, [ecx + eax + 1]
mov eax, ecx
test ecx, ecx
je 0x1002eb0d
cmp byte [ecx], 0
je 0x1002eb06
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x1002eb00
sub eax, ecx
and eax, 0x3fffffff
cmp byte [ecx + eax + 1], 0
lea ecx, [ecx + eax + 1]
jne 0x1002ead4
sub ecx, esi
inc ecx
mov ebp, ecx
test edx, edx
jne 0x1002eb47
mov ecx, dword [esp + 0x38]
lea eax, [ebx + 8]
cmp eax, dword [ecx + 8]
jle 0x1002e899
mov eax, 0xa35b
call fcn.100841e0
mov dword [esp + 0x14], eax
test eax, eax
je 0x1002e899
push edi
call sym.NirvanaBiz.dll_sqlite3_free
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push edi
call sym.NirvanaBiz.dll_sqlite3_free
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov dword [esp + 0x18], eax
jmp 0x1002eb91
mov edi, dword [esp + 0x14]
and eax, 1
mov dword [esp + 0x28], 1
mov byte [esi + 0xf], 1
mov byte [esi + 0x10], 4
mov ebx, eax
test edi, edi
jne 0x1002ebb2
or ebp, 0xffffffff
lea ecx, [esp + 0x18]
push ebp
push ecx
mov edi, esi
call fcn.1002deb0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x1002ebdd
mov edi, eax
mov ebx, dword [esi + 0x3c]
mov eax, dword [ebx]
test eax, eax
je 0x1002ebca
mov edx, dword [eax + 4]
push ebx
call edx
add esp, 4
mov dword [ebx], 0
push esi
call sym.NirvanaBiz.dll_sqlite3_free
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [esi + 0xc4]
push 0x30
push 0
push edi
call fcn.1012a6a0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [edi + 0x14], eax
xor edx, edx
add esp, 0xc
test ecx, ecx
sete dl
mov eax, ecx
neg eax
sbb eax, eax
not eax
mov dword [edi + 0x18], 0x50
and eax, 0x1002e710
mov dword [edi + 0x20], eax
mov al, byte [esp + 0x28]
mov dword [edi + 0x1c], edx
mov dl, byte [esp + 0x2c]
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov byte [esi + 6], dl
mov dword [esi + 0x84], 0x3fffffff
mov byte [esi + 0xc], al
mov byte [esi + 4], al
mov byte [esi + 0x11], al
mov byte [esi + 0xe], cl
mov byte [esi + 0xd], bl
mov byte [esi + 7], al
test al, al
jne 0x1002ec61
mov byte [esi + 8], 1
mov byte [esi + 0xb], 2
mov byte [esi + 0xa], 0x22
mov byte [esi + 9], 2
mov eax, 0x50
mov word [esi + 0x74], ax
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], ebp
call fcn.1002d300
cmp dword [esp + 0x2c], 0
jne 0x1002ec88
mov byte [esi + 5], 2
jmp 0x1002ec93
cmp dword [esp + 0x20], 0
je 0x1002ec93
mov byte [esi + 5], 4
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [esi + 0xac], 0x10034130
mov dword [ecx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret