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

Disassembly:
sub esp, 0x88
cmp dword [esp + 0x90], 0
push ebp
push esi
mov esi, eax
mov ebp, dword [esi]
mov dword [esp + 0xc], ebp
jne 0x4c3de8
cmp dword [esp + 0x9c], 0
je 0x4c41f7
cmp byte [ebp + 0x1e], 0
jne 0x4c41f7
push edi
mov edi, dword [esi + 0x1e0]
mov dword [esp + 0xc], edi
test edi, edi
je 0x4c41f6
mov edx, dword [edi + 0x48]
mov dword [esp + 0x14], 0xfff0bdc0
test edx, edx
je 0x4c3e3d
cmp dword [ebp + 4], 0
mov dword [esp + 0x14], 0
jle 0x4c3e3d
mov eax, dword [ebp + 8]
add eax, 0xc
cmp dword [eax], edx
je 0x4c3e3d
mov ecx, dword [esp + 0x14]
inc ecx
add eax, 0x10
cmp ecx, dword [ebp + 4]
mov dword [esp + 0x14], ecx
jl 0x4c3e28
push ebx
mov ebx, dword [edi + 0x2c]
test ebx, ebx
je 0x4c3ebd
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.00516fd0
mov edx, dword [edi + 4]
mov ecx, 1
mov dword [esp + 0x78], edi
lea eax, [esp + 0x64]
add esp, 0xc
lea edi, [esp + 0x34]
mov word [esp + 0x58], cx
mov dword [esp + 0x64], edx
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov byte [esp + 0x4a], cl
call fcn.004a17d0
test eax, eax
jne 0x4c41f5
mov edi, dword [esp + 0x10]
cmp byte [ebp + 0x78], 0
je 0x4c3ed3
mov ecx, dword [ebp + 0x74]
mov dword [edi + 0x18], ecx
cmp byte [ebp + 0x78], 0
jne 0x4c417b
mov edi, esi
call fcn.00493aa0
mov ebp, eax
test ebp, ebp
je 0x4c41f5
push 0
push 0x21
call fcn.00489b80
mov edx, dword [esp + 0x18]
add esp, 8
cmp dword [edx + 0x1c], 0
jne 0x4c3f09
mov dword [esp + 0x1c], str.table
mov edx, str.TABLE
jmp 0x4c3f16
mov dword [esp + 0x1c], str.view
mov edx, str.VIEW
mov ebx, dword [esp + 0xa4]
test ebx, ebx
je 0x4c3fec
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x198]
push edi
push eax
push 1
push 0xa
mov eax, ebp
call fcn.00489ad0
mov eax, dword [ebp + 0x14]
xor edx, edx
add esp, 0x10
cmp eax, edx
je 0x4c3f53
mov ecx, dword [ebp + 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 ebx
push esi
mov dword [esi + 0x44], 2
mov byte [esp + 0x30], 8
mov dword [esp + 0x34], 1
mov byte [esp + 0x31], 0
call fcn.004c0650
push 1
push 0x21
mov eax, ebp
call fcn.00489b80
add esp, 0x14
cmp dword [esi + 0x40], 0
jne 0x4c3fd8
push esi
mov eax, ebx
call fcn.004c3b60
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4c41f5
mov edx, dword [eax + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ebx + 0x10], edx
push eax
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
call fcn.0048b6f0
mov eax, dword [esp + 0x18]
add esp, 4
push ebx
push eax
call fcn.00491740
add esp, 8
jmp 0x4c401a
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ebx
push eax
call fcn.00491740
add esp, 8
jmp 0x4c401a
mov ecx, dword [esi + 0x1c8]
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
sub eax, ecx
push ecx
inc eax
push eax
push edx
push str.CREATE__s__.s
call fcn.0048e880
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x20], eax
mov ecx, str.sqlite_temp_master
cmp edi, 1
je 0x4c402d
mov ecx, str.sqlite_master
mov edx, dword [esi + 0x194]
mov eax, dword [ebx + 4]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esi + 0x198]
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]
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, esi
call fcn.00491450
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
push ecx
push edx
call fcn.0047ca30
mov eax, dword [esp + 0x44]
push eax
call fcn.0048ba60
mov ecx, dword [esp + 0x40]
add esp, 0x30
test byte [ecx + 0x22], 8
je 0x4c40ae
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
mov ecx, dword [eax + edi + 0xc]
add eax, edi
cmp dword [ecx + 0x34], 0
jne 0x4c40ae
mov edx, dword [eax]
push edx
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
call fcn.00491450
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edi, dword [esp + 0x14]
push ecx
push str.tbl_name_q
call fcn.0048e880
mov ebx, dword [ebp + 0xc]
add esp, 8
cmp dword [ebp + 0x10], ebx
mov dword [esp + 0x1c], eax
jg 0x4c40e7
mov edi, ebp
call fcn.00489a50
test eax, eax
je 0x4c40e7
mov ebx, 1
xor edx, edx
jmp 0x4c4112
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
xor edx, edx
mov byte [eax], 0x1f
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov byte [ebp + 0x6e], dl
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp]
mov eax, ebx
cmp ecx, edx
je 0x4c4161
cmp byte [edi + 0x1e], 0
jne 0x4c4161
cmp ebx, edx
jge 0x4c412c
mov eax, dword [ebp + 0xc]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea ebp, [ecx + edx*4]
mov ecx, dword [ebp + 0x10]
call fcn.00489f10
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [ebp + 0x10], ecx
cmp eax, ecx
jne 0x4c4158
mov dword [ebp + 0x10], ecx
mov byte [ebp + 1], cl
jmp 0x4c4171
mov dword [ebp + 0x10], eax
mov byte [ebp + 1], 0xff
jmp 0x4c4171
mov ecx, dword [esp + 0x1c]
or eax, 0xffffffff
call fcn.00489f10
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
cmp byte [ebp + 0x78], 0
je 0x4c41f5
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0x48]
push edi
call fcn.0047cc00
push ecx
lea ecx, [edx + 4]
call fcn.00487a30
add esp, 8
test eax, eax
je 0x4c41a6
pop ebx
pop edi
pop esi
mov byte [ebp + 0x1e], 1
pop ebp
add esp, 0x88
ret
mov dword [esi + 0x1e0], 0
inc dword [ebp + 0x28]
or dword [ebp + 0xc], 0x10
cmp dword [edi + 0x1c], 0
jne 0x4c41f5
mov eax, dword [esp + 0x9c]
cmp dword [eax], 0
mov esi, dword [esi + 0x1c8]
jne 0x4c41dd
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x9c], ecx
mov edx, dword [esp + 0x9c]
mov edx, dword [edx]
sub edx, esi
mov ecx, esi
call fcn.0047cb30
add eax, 0xd
mov dword [edi + 0x30], eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x88
ret