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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x190
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [esp + 0x188], eax
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 0x68]
mov edx, dword [ecx]
cmp dword [ecx + 0xa0], 0
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x58]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ah, byte [edx + 0x4e]
mov byte [esp + 0x17], ah
jne 0x100312a9
xor esi, esi
mov ecx, dword [esp + 0x20]
dec esi
cmp dword [edx + 0x150], 0
mov dword [esp + 0x7c], esi
je 0x10031207
mov esi, dword [edx + 0x158]
mov eax, dword [ecx + 0xb4]
xor edx, edx
div esi
mov dword [esp + 0x7c], 0
sub esi, edx
cmp dword [ecx + 0x28], 7
mov dword [esp + 0x78], esi
je 0x10031325
mov edx, dword [esp + 0xc]
xor eax, eax
mov ebx, 9
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x3c], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x78], eax
mov dword [edx + 0x1a4], eax
mov eax, dword [edx + 0x108]
test eax, eax
jne 0x100312fb
lea eax, [ecx + 0x58]
mov esi, dword [esp + 0x48]
add edx, 0x10
lea edi, [ecx + 0xdc]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x74], 0
mov dword [esp + 4], 0
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x60], edx
lea edx, [ecx + 0x60]
lea ecx, [ecx + 0x7c]
mov dword [esp + 0x90], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x70], ecx
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
jmp 0x100313df
mov esi, dword [edx + 0x14]
test esi, esi
jle 0x100311d9
mov edi, dword [edx + 0x10]
xor ebx, ebx
add edi, 4
cmp ebx, 1
je 0x100312ea
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xa0]
bt eax, ebx
jae 0x100312ea
mov ecx, dword [edi]
test ecx, ecx
je 0x100312ea
cmp byte [ecx + 9], 0
je 0x100312ea
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x100312ea
call fcn.10028170
mov edx, dword [esp + 0xc]
inc ebx
add edi, 0x10
cmp esi, ebx
jne 0x100312bc
jmp 0x100311d9
mov eax, dword [esp + 0x48]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x74], 0
mov dword [esp], eax
jmp 0x10037090
mov eax, dword [esp + 0x48]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x74], 0
mov dword [esp], eax
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x51], 0
jne 0x100313a1
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x52], 0
jne 0x100313a1
mov eax, dword [esp + 0xc]
mov byte [eax + 0x51], 1
cmp dword [eax + 0xbc], 0
jle 0x1003137d
mov eax, dword [esp + 0xc]
mov dword [eax + 0x108], 1
mov eax, dword [esp + 0xc]
inc dword [eax + 0x110]
mov word [eax + 0x114], 0
mov eax, dword [eax + 0xec]
test eax, eax
je 0x100313a1
mov dword [eax + 0xc], 7
push str.out_of_memory
push dword [esp + 0x24]
call fcn.1002f420
add esp, 8
mov ebx, 7
jmp 0x10037090
mov eax, dword [esp]
add eax, 0x14
add dword [esp + 0x84], 1
mov bl, byte [eax]
mov dword [esp], eax
adc dword [esp + 0x80], 0
mov eax, ebx
xor ecx, ecx
add al, 0x80
test cl, cl
movzx eax, al
jne 0x100313d9
movzx ecx, bl
jmp dword [eax*4 + 0x1019a92c]
mov esi, dword [esp + 0x7c]
xor eax, eax
dec eax
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
cmp edi, edx
sbb eax, esi
jae 0x10034a60
mov ecx, dword [esp + 0x20]
add dword [ecx + 0xb4], edi
cmp dword [ecx + 0xa0], 0
jne 0x10034e8b
mov ecx, dword [esp + 0x188]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x150]
test ecx, ecx
je 0x100327ee
mov eax, dword [esp + 0xc]
add edx, dword [eax + 0x158]
mov edi, dword [eax + 0x154]
mov dword [esp + 0x78], edx
adc esi, 0
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test eax, eax
je 0x100327d2
xor eax, eax
mov ebx, 9
dec eax
mov dword [esp + 0x78], eax
jmp 0x10037090
call fcn.1002f470
jmp 0x10032805
mov eax, dword [esp + 0xc]
mov ecx, ebx
mov ebx, 7
cmp byte [eax + 0x51], 0
jne 0x100370ce
mov ebx, ecx
cmp ecx, 0x210a
jne 0x100370ce
push 0x101b128f
push 0x16e39
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov ebx, 0xb
cmp ebx, 0xc0a
je 0x1003a56b
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x7c], 0
jne 0x1003a56b
cmp ebx, 0x204
je 0x1003a52d
cmp ebx, 0x65
je 0x1003a534
cmp ebx, 0x64
jne 0x1003a53b
mov eax, str.another_row_available
jmp 0x1003a559
mov eax, str.abort_due_to_ROLLBACK
jmp 0x1003a559
mov eax, str.no_more_rows_available
jmp 0x1003a559
movzx ecx, bl
mov eax, str.unknown_error
cmp ecx, 0x1c
ja 0x1003a559
mov edx, 0x1410004
bt edx, ecx
jb 0x1003a559
mov eax, dword [ecx*4 + 0x101994dc]
push eax
push 0x101aef39
push dword [esp + 0x28]
call fcn.1002f420
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp ebx, 0xc0a
mov dword [eax + 0x28], ebx
je 0x1003a5b5
mov eax, ebx
and eax, 0xfb
cmp eax, 0xa
jne 0x1003a5b5
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1003a5ac
call dword [section..00cfg]
xor eax, eax
push eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x1003a5ae
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x48], eax
mov eax, dword [esp]
mov esi, dword [esp + 0x20]
sub eax, dword [esp + 0x48]
sar eax, 2
imul eax, eax, 0xcccccccd
push dword [esi + 0x7c]
push dword [esi + 0xc0]
push eax
push str.statement_aborts_at__d:___s___s
push ebx
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov ecx, esi
call fcn.1002cee0
cmp ebx, 0xc0a
jne 0x1003a647
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x51], 0
jne 0x1003a647
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x52], 0
jne 0x1003a647
mov eax, dword [esp + 0xc]
mov byte [eax + 0x51], 1
cmp dword [eax + 0xbc], 0
jle 0x1003a623
mov eax, dword [esp + 0xc]
mov dword [eax + 0x108], 1
mov eax, dword [esp + 0xc]
inc dword [eax + 0x110]
mov word [eax + 0x114], 0
mov eax, dword [eax + 0xec]
test eax, eax
je 0x1003a647
mov dword [eax + 0xc], 7
xor ebx, ebx
inc ebx
cmp byte [esp + 0x74], 0
jne 0x1003a65e
mov dword [esp + 0x74], 0
jmp 0x100327c7
movzx edx, byte [esp + 0x74]
mov ecx, dword [esp + 0xc]
dec edx
call fcn.1003afb0
jmp 0x100327c7