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

Disassembly:
sub esp, 0x88
cmp dword [esp + 0x94], 0
push ebp
mov ebp, dword [esp + 0x90]
push edi
mov edi, dword [ebp]
mov dword [esp + 8], edi
jne 0x470a5e
cmp dword [esp + 0xa0], 0
je 0x470e6c
cmp byte [edi + 0x1e], 0
jne 0x470e6c
push esi
mov esi, dword [ebp + 0x200]
mov dword [esp + 0x10], esi
test esi, esi
je 0x470e6b
mov edx, dword [esi + 0x44]
mov dword [esp + 0x14], 0xfff0bdc0
test edx, edx
je 0x470ab5
cmp dword [edi + 4], 0
mov dword [esp + 0x14], 0
jle 0x470ab5
mov eax, dword [edi + 8]
add eax, 0xc
mov edi, edi
cmp dword [eax], edx
je 0x470ab5
mov ecx, dword [esp + 0x14]
inc ecx
add eax, 0x10
cmp ecx, dword [edi + 4]
mov dword [esp + 0x14], ecx
jl 0x470aa0
push ebx
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x470b34
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.0047d730
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.00444770
test eax, eax
jne 0x470e6a
mov esi, dword [esp + 0x14]
cmp byte [edi + 0x7c], 0
je 0x470b4a
mov ecx, dword [edi + 0x78]
mov dword [esi + 0x14], ecx
cmp byte [edi + 0x7c], 0
jne 0x470dee
mov edi, ebp
call fcn.00438c10
mov edi, eax
test edi, edi
je 0x470e6a
push 0
push 0x2b
call fcn.0042e040
mov edx, dword [esp + 0x1c]
add esp, 8
cmp dword [edx + 0x1c], 0
jne 0x470b80
mov dword [esp + 0x1c], str.table
mov edx, str.TABLE
jmp 0x470b8d
mov dword [esp + 0x1c], str.view
mov edx, str.VIEW
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x470c68
mov ebx, dword [esp + 0x18]
mov eax, dword [ebp + 0x19c]
push ebx
push eax
push 1
push 0x27
mov eax, edi
call fcn.0042df90
mov eax, dword [edi + 0x14]
xor edx, edx
add esp, 0x10
cmp eax, edx
je 0x470bca
mov ecx, dword [edi + 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 esi
push ebp
mov dword [ebp + 0x44], 2
mov byte [esp + 0x30], 8
mov dword [esp + 0x34], 1
mov byte [esp + 0x31], 0
call fcn.0046d350
push 1
push 0x2b
mov eax, edi
call fcn.0042e040
add esp, 0x14
cmp dword [ebp + 0x40], 0
jne 0x470c54
push ebp
mov eax, esi
call fcn.004707d0
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x470e6a
mov edx, dword [eax + 8]
mov esi, dword [esp + 0x14]
mov dword [esi + 8], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
push eax
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x14]
push eax
call fcn.00435e00
mov ecx, dword [esp + 0x18]
add esp, 8
push esi
push ecx
call fcn.00436220
add esp, 8
jmp 0x470c92
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
push ecx
call fcn.00436220
add esp, 8
jmp 0x470c92
mov ecx, dword [ebp + 0x1ec]
mov eax, dword [esp + 0xa4]
mov eax, dword [eax]
mov esi, dword [esp + 0x10]
sub eax, ecx
push ecx
inc eax
push eax
push edx
push str.CREATE__s__.s
call fcn.004332e0
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov esi, eax
mov edx, str.sqlite_temp_master
cmp ebx, 1
je 0x470ca3
mov edx, str.sqlite_master
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
mov eax, ebx
mov ebx, dword [ebp + 0x198]
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
push ebx
push ecx
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 8]
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, ebp
mov dword [esp + 0x44], eax
call fcn.00435d40
mov eax, dword [esp + 0x34]
push esi
push eax
call fcn.00420620
mov ecx, dword [esp + 0x44]
push ecx
mov esi, ebp
call fcn.0042ffa0
mov esi, dword [esp + 0x44]
add esp, 0x30
xor ebx, ebx
test byte [esi + 0x22], 8
je 0x470d2d
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
add eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xc]
cmp dword [ecx + 0x44], ebx
jne 0x470d2d
mov edx, dword [eax]
push edx
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
mov ebx, ebp
call fcn.00435d40
add esp, 8
xor ebx, ebx
mov eax, dword [esi]
mov esi, dword [esp + 0x10]
push eax
push str.tbl_name_q
call fcn.004332e0
mov esi, dword [edi + 0xc]
add esp, 8
cmp dword [edi + 0x10], esi
mov dword [esp + 0x1c], eax
jg 0x470d5d
call fcn.0042df10
test eax, eax
je 0x470d5d
mov eax, 1
jmp 0x470d87
mov edx, dword [edi + 0x14]
inc dword [edi + 0xc]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x18]
mov byte [eax], 0x63
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [edi + 0x62], bl
mov eax, esi
mov esi, dword [edi + 0x14]
mov edx, dword [edi]
cmp esi, ebx
je 0x470dd2
cmp byte [edx + 0x1e], bl
jne 0x470dd2
cmp eax, ebx
jge 0x470d9d
mov eax, dword [edi + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
mov edi, edx
call fcn.0042e240
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x470dc9
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x470de4
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x470de4
mov ecx, dword [esp + 0x1c]
or eax, 0xffffffff
mov edi, edx
call fcn.0042e240
mov edi, dword [esp + 0x10]
cmp byte [edi + 0x7c], 0
mov esi, dword [esp + 0x14]
je 0x470e6a
mov ecx, dword [esi]
mov edx, dword [esi + 0x44]
push esi
call fcn.00420830
push ecx
lea ecx, [edx + 4]
call fcn.0042b680
add esp, 8
test eax, eax
je 0x470e18
pop ebx
pop esi
mov byte [edi + 0x1e], 1
pop edi
pop ebp
add esp, 0x88
ret
mov dword [ebp + 0x200], 0
inc dword [edi + 0x28]
or dword [edi + 0xc], 0x200
cmp dword [esi + 0x1c], 0
jne 0x470e6a
mov ecx, dword [esp + 0xa0]
cmp dword [ecx], 0
mov ebp, dword [ebp + 0x1ec]
jne 0x470e52
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xa0], edx
mov eax, dword [esp + 0xa0]
mov edx, dword [eax]
sub edx, ebp
mov ecx, ebp
call fcn.00420760
add eax, 0xd
mov dword [esi + 0x30], eax
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x88
ret