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

Disassembly:
sub esp, 0x8c
cmp dword [esp + 0x98], 0
push ebx
push ebp
mov ebp, dword [esp + 0x98]
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x4510a0
cmp dword [esp + 0xac], 0
je 0x451426
cmp byte [edi + 0x1e], 0
jne 0x451426
mov esi, dword [ebp + 0x200]
mov dword [esp + 0x10], esi
test esi, esi
je 0x451426
mov edx, dword [esi + 0x44]
mov dword [esp + 0x18], 0xfff0bdc0
test edx, edx
je 0x4510f4
cmp dword [edi + 4], 0
mov dword [esp + 0x18], 0
jle 0x4510f4
mov eax, dword [edi + 8]
add eax, 0xc
cmp dword [eax], edx
je 0x4510f4
mov ecx, dword [esp + 0x18]
inc ecx
add eax, 0x10
cmp ecx, dword [edi + 4]
mov dword [esp + 0x18], ecx
jl 0x4510df
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x451172
xor eax, eax
push 0x40
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x60]
push eax
call fcn.004a2540
mov edx, dword [esi]
mov ecx, 1
mov dword [esp + 0x78], esi
lea eax, [esp + 0x64]
add esp, 0xc
lea esi, [esp + 0x34]
mov word [esp + 0x58], cx
mov dword [esp + 0x64], edx
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], eax
mov byte [esp + 0x4a], cl
call fcn.00446980
test eax, eax
jne 0x451426
mov esi, dword [esp + 0x10]
cmp byte [edi + 0x7c], 0
je 0x451188
mov ecx, dword [edi + 0x78]
mov dword [esi + 0x14], ecx
cmp byte [edi + 0x7c], 0
jne 0x4513a8
mov edi, ebp
call fcn.004644c0
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x451426
push 0
push 0x2b
call fcn.0043a430
mov edx, dword [esp + 0x18]
add esp, 8
cmp dword [edx + 0x1c], 0
jne 0x4511c2
mov dword [esp + 0x1c], str.table
mov edx, str.TABLE
jmp 0x4511cf
mov dword [esp + 0x1c], str.view
mov edx, str.VIEW
mov edi, dword [esp + 0xac]
test edi, edi
je 0x4512ac
mov ebx, dword [esp + 0x18]
mov eax, dword [ebp + 0x19c]
push ebx
push eax
push 1
push 0x27
mov eax, esi
call fcn.0043a380
mov eax, dword [esi + 0x14]
xor edx, edx
add esp, 0x10
cmp eax, edx
je 0x45120c
mov ecx, dword [esi + 0xc]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x24]
push edx
push edi
push ebp
mov dword [ebp + 0x44], 2
mov byte [esp + 0x30], 8
mov dword [esp + 0x34], 1
mov byte [esp + 0x31], 0
call fcn.00468a90
add esp, 0xc
push 1
push 0x2b
mov eax, esi
call fcn.0043a430
xor esi, esi
add esp, 8
cmp dword [ebp + 0x40], esi
jne 0x451298
push ebp
mov eax, edi
call fcn.004643f0
add esp, 4
cmp eax, esi
je 0x451426
mov ecx, dword [eax + 8]
mov edi, dword [esp + 0x10]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
push eax
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x18]
push eax
call fcn.0044fdc0
mov ecx, dword [esp + 0x1c]
add esp, 8
push edi
push ecx
call fcn.00450e20
add esp, 8
jmp 0x4512da
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
push ecx
call fcn.00450e20
add esp, 8
jmp 0x4512da
mov ecx, dword [ebp + 0x1ec]
mov eax, dword [esp + 0xa8]
mov eax, dword [eax]
mov esi, dword [esp + 0x14]
sub eax, ecx
push ecx
inc eax
push eax
push edx
push str.CREATE__s__.s
call fcn.00421c70
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
add esp, 0x10
mov esi, eax
mov ecx, str.sqlite_temp_master
cmp ebx, 1
je 0x4512eb
mov ecx, str.sqlite_master
mov edx, dword [ebp + 0x198]
mov eax, dword [edi]
push edx
mov edx, dword [ebp + 0x19c]
push esi
push edx
push eax
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 8]
mov edi, ebx
shl edi, 4
mov eax, dword [edi + edx]
push eax
push str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
mov ebx, ebp
call fcn.0044f770
mov ecx, dword [esp + 0x38]
add esp, 0x24
push esi
push ecx
call fcn.00420800
mov edx, dword [esp + 0x20]
push edx
mov esi, ebp
call fcn.00450c70
mov eax, dword [esp + 0x1c]
add esp, 0xc
test byte [eax + 0x22], 8
je 0x45136a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov edx, dword [eax + edi + 0xc]
add eax, edi
cmp dword [edx + 0x44], 0
jne 0x45136a
mov eax, dword [eax]
push eax
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
call fcn.0044f770
add esp, 8
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push edx
push str.tbl_name_q
call fcn.00421c70
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
add esp, 0xc
push eax
push 0x63
xor eax, eax
xor ecx, ecx
call fcn.0043a4f0
mov edi, esi
mov esi, dword [esp + 0x1c]
add esp, 0xc
cmp byte [edi + 0x7c], 0
je 0x451426
mov ecx, dword [esi]
mov edx, dword [esi + 0x44]
push esi
call fcn.004226e0
push eax
lea eax, [edx + 4]
mov ebx, ecx
call fcn.00423840
add esp, 8
test eax, eax
je 0x4513d4
mov byte [edi + 0x1e], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
mov dword [ebp + 0x200], 0
inc dword [edi + 0x28]
or dword [edi + 0xc], 0x200
cmp dword [esi + 0x1c], 0
jne 0x451426
mov eax, dword [esp + 0xa4]
cmp dword [eax], 0
mov ebp, dword [ebp + 0x1ec]
jne 0x45140e
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xa4], ecx
mov edx, dword [esp + 0xa4]
mov edx, dword [edx]
sub edx, ebp
mov ecx, ebp
call fcn.00422570
add eax, 0xd
mov dword [esi + 0x30], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret