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

Disassembly:
sub esp, 0x90
cmp dword [esp + 0x98], 0
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ebp, dword [edi]
jne 0x438e36
cmp dword [esp + 0xac], 0
je 0x439188
cmp byte [ebp + 0x36], 0
jne 0x439188
mov ebx, dword [edi + 0x1f4]
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x439188
mov edx, dword [ebx + 0x44]
test edx, edx
mov dword [esp + 0x10], 0xfff0bdc0
je 0x438e8c
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x10], 0
jle 0x438e8c
mov eax, dword [ebp + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x438e8c
mov ecx, dword [esp + 0x10]
add ecx, 1
add eax, 0x10
cmp ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
jl 0x438e75
mov esi, dword [ebx + 0x2c]
test esi, esi
je 0x438f0f
xor eax, eax
push 0x48
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 sub.MSVCR80.dll_memset
mov ecx, dword [ebx]
mov eax, 1
mov dword [esp + 0x78], ebx
lea edx, [esp + 0x64]
mov ebx, esi
add esp, 0xc
lea esi, [esp + 0x34]
mov word [esp + 0x58], ax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edx
mov byte [esp + 0x4a], al
call fcn.0042f6d0
test eax, eax
jne 0x439188
mov ebx, dword [esp + 0x14]
cmp byte [ebp + 0x7d], 0
je 0x438f25
mov eax, dword [ebp + 0x78]
mov dword [ebx + 0x14], eax
cmp byte [ebp + 0x7d], 0
jne 0x43910f
call fcn.0044c340
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x439188
push 0
push 0x2d
call fcn.00421bf0
add esp, 8
cmp dword [ebx + 0x1c], 0
jne 0x438f59
mov dword [esp + 0x18], str.table
mov edx, str.TABLE
jmp 0x438f66
mov dword [esp + 0x18], str.view
mov edx, str.VIEW
cmp dword [esp + 0xac], 0
je 0x43902d
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x194]
push ecx
push edx
push 1
push 0x28
mov eax, esi
call fcn.00421b40
mov eax, dword [esi + 4]
xor edx, edx
add esp, 0x10
cmp eax, edx
je 0x438fa2
mov ecx, dword [esi + 0x1c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 1
mov eax, dword [esp + 0xac]
mov byte [esp + 0x25], dl
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x24]
push edx
push eax
push edi
mov dword [edi + 0x48], 2
mov byte [esp + 0x30], 8
mov dword [esp + 0x34], 1
call fcn.00450530
add esp, 0xc
push 1
push 0x2d
mov eax, esi
call fcn.00421bf0
xor esi, esi
add esp, 8
cmp dword [edi + 0x44], esi
jne 0x439021
mov eax, dword [esp + 0xac]
push edi
call fcn.0044c270
add esp, 4
cmp eax, esi
je 0x439188
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 0xc]
push eax
mov dword [ebx + 0xc], edx
push ebp
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
call fcn.00437b30
add esp, 8
push ebx
push ebp
call fcn.00438bb0
add esp, 8
jmp 0x439053
mov ecx, dword [edi + 0x200]
mov eax, dword [esp + 0xa8]
mov eax, dword [eax]
sub eax, ecx
push ecx
add eax, 1
push eax
push edx
push str.CREATE__s__.s
mov esi, ebp
call fcn.004082f0
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 1
mov ecx, str.sqlite_temp_master
je 0x439068
mov ecx, str.sqlite_master
mov edx, dword [edi + 0x190]
mov ebx, dword [ebx]
push edx
mov edx, dword [edi + 0x194]
push esi
push edx
mov edx, dword [esp + 0x24]
push ebx
push ebx
push edx
push ecx
mov ecx, dword [ebp + 0x10]
shl eax, 4
mov edx, dword [eax + ecx]
push edx
push str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
mov ebx, edi
mov dword [esp + 0x40], eax
call fcn.00437520
add esp, 0x24
mov eax, esi
mov ecx, ebp
call fcn.00406d00
mov eax, dword [esp + 0x10]
push eax
mov esi, edi
call fcn.004389f0
mov ecx, dword [esp + 0x18]
add esp, 4
test byte [ecx + 0x22], 8
je 0x4390e0
mov eax, dword [ebp + 0x10]
add eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
cmp dword [edx + 0x48], 0
jne 0x4390e0
mov eax, dword [eax]
push eax
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
call fcn.00437520
add esp, 8
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edx
push str.tbl_name_q
mov esi, ebp
call fcn.004082f0
mov esi, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00421d10
mov ebx, dword [esp + 0x24]
add esp, 0x10
cmp byte [ebp + 0x7d], 0
je 0x439188
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x44]
push ebx
call fcn.00408d90
push ecx
lea ecx, [edx + 8]
call fcn.0040a190
add esp, 8
test eax, eax
je 0x439139
mov byte [ebp + 0x36], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov dword [edi + 0x1f4], 0
or dword [ebp + 0x18], 0x200
cmp dword [ebx + 0x1c], 0
jne 0x439188
mov ecx, dword [esp + 0xa4]
cmp dword [ecx], 0
mov edi, dword [edi + 0x200]
jne 0x439170
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xa4], edx
mov eax, dword [esp + 0xa4]
mov edx, dword [eax]
sub edx, edi
mov ecx, edi
call fcn.00408c20
add eax, 0xd
mov dword [ebx + 0x30], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret