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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
mov edi, dword [ebp + 8]
shl edi, 4
mov ebx, dword [esi]
lea ecx, [esi + 0x74]
mov eax, dword [esi + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
add edi, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x45a6c7
cmp dword [ecx], eax
jne 0x45a6b5
test byte [ebx + 0x4c], 8
jne 0x45a6b5
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.0042a700
lea ecx, [esi + 0x74]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [ecx]
mov eax, 1
test ecx, ecx
cmovne esi, ecx
mov ecx, dword [ebp + 8]
shl eax, cl
mov edx, dword [esi + 0x54]
test edx, eax
jne 0x45a6f4
bts edx, ecx
mov dword [esi + 0x54], edx
cmp ecx, 1
jne 0x45a6f4
mov ecx, esi
call fcn.0045e3b0
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x50]
mov edx, dword [esp + 0x14]
bts eax, ecx
or byte [esi + 0x14], 1
mov dword [esi + 0x50], eax
cmp byte [edx + 0x2b], 1
jne 0x45a765
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x45a732
push 0
push 0
push 0
mov edx, 0xa8
mov ecx, esi
call fcn.0042a9a0
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x45a765
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xa8
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x18]
call fcn.00487370
mov esi, eax
test esi, esi
je 0x45a794
mov ebx, dword [esp + 0x18]
nop dword [eax + eax]
mov edx, esi
mov ecx, ebx
call fcn.00488e00
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x45a780
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
test byte [esi + 0x1c], 8
je 0x45a7b3
push dword [esi]
push dword [edi]
push str.DELETE_FROM__Q.sqlite_sequence_WHERE_name_Q
push dword [esp + 0x24]
call fcn.004554f0
add esp, 0x10
push dword [esi]
push dword [edi]
mov edi, dword [esp + 0x20]
push str.DELETE_FROM__Q.sqlite_master_WHERE_tbl_name_Q_and_type_trigger
push edi
call fcn.004554f0
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x45a85a
cmp byte [esi + 0x2b], 1
je 0x45a864
mov ebx, esi
xor edx, edx
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x24], eax
xor esi, esi
test edx, edx
je 0x45a7f2
cmp eax, edx
jae 0x45a7f4
mov esi, eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x45a817
nop dword [eax + eax]
mov ecx, dword [eax + 0x2c]
test edx, edx
je 0x45a80b
cmp ecx, edx
jae 0x45a810
cmp ecx, esi
cmova esi, ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x45a800
test esi, esi
je 0x45a852
mov edx, dword [ebx + 0x3c]
mov ecx, 0xffff8000
test edx, edx
je 0x45a83d
mov eax, dword [edi]
xor ecx, ecx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x45a83d
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x45a835
push ecx
mov edx, esi
mov ecx, edi
call fcn.0045a4e0
mov eax, dword [esp + 0x28]
add esp, 4
mov edx, esi
jmp 0x45a7e8
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x2b], 1
jne 0x45a90e
mov edi, dword [esp + 0x1c]
mov esi, dword [esi]
mov edx, dword [edi + 0x74]
cmp dword [edi + 0x78], edx
jg 0x45a88c
push 0
push 0
push dword [ebp + 8]
mov edx, 0xaa
mov ecx, edi
call fcn.0042a9a0
add esp, 0xc
mov edx, eax
jmp 0x45a8c2
mov ebx, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [edi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xaa
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
cmp byte [ecx + 0x53], 0
je 0x45a8d7
push esi
xor edx, edx
call fcn.0042b470
add esp, 4
jmp 0x45a8f5
test edx, edx
jns 0x45a8df
mov edx, dword [edi + 0x74]
dec edx
mov eax, dword [edi + 0x70]
lea ecx, [edx + edx*4]
push 0
push esi
lea edx, [eax + ecx*4]
mov ecx, edi
call fcn.0042b6e0
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x45a912
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + 0x74]
mov esi, dword [esi]
cmp dword [edi + 0x78], edx
jg 0x45a936
push 0
push 0
push dword [ebp + 8]
mov edx, 0x95
mov ecx, edi
call fcn.0042a9a0
add esp, 0xc
mov edx, eax
jmp 0x45a96c
mov ebx, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [edi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x95
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
cmp byte [ecx + 0x53], 0
je 0x45a981
push esi
xor edx, edx
call fcn.0042b470
add esp, 4
jmp 0x45a99f
test edx, edx
jns 0x45a989
mov edx, dword [edi + 0x74]
dec edx
mov eax, dword [edi + 0x70]
lea ecx, [edx + edx*4]
push 0
push esi
lea edx, [eax + ecx*4]
mov ecx, edi
call fcn.0042b6e0
add esp, 8
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + 8]
mov ecx, edi
add ecx, ecx
mov esi, dword [eax + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 0xc]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x45a9d6
push edx
push 1
push edi
mov edx, 0x62
mov ecx, esi
call fcn.0042a9a0
add esp, 0xc
jmp 0x45aa01
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x62
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x10]
mov ecx, edi
add ecx, ecx
mov esi, dword [eax + ecx*8 + 0xc]
test byte [esi + 0x4e], 2
je 0x45aac6
mov esi, dword [esi + 0x10]
mov dword [esp + 0x20], esi
test esi, esi
je 0x45aab4
mov esi, dword [esi + 8]
cmp byte [esi + 0x2b], 2
jne 0x45aa9f
mov edi, dword [esi + 4]
test edi, edi
je 0x45aa9f
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 0x22]
jge 0x45aa5b
nop
mov edx, dword [edi]
test edx, edx
je 0x45aa4f
mov ecx, dword [esp + 0x10]
call fcn.00404680
movsx eax, word [esi + 0x22]
inc ebx
add edi, 0x10
cmp ebx, eax
jl 0x45aa40
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x10]
test edx, edx
je 0x45aa6d
mov ecx, ebx
call fcn.00404680
cmp byte [esi + 0x2b], 0
jne 0x45aa81
mov edx, dword [esi + 0x34]
test edx, edx
je 0x45aa81
mov ecx, ebx
call fcn.00444910
cmp dword [ebx + 0x210], 0
jne 0x45aa9f
xor eax, eax
mov dword [esi + 4], 0
mov word [esi + 0x22], ax
cmp byte [esi + 0x2b], al
jne 0x45aa9f
mov dword [esi + 0x34], eax
mov esi, dword [esp + 0x20]
mov esi, dword [esi]
mov dword [esp + 0x20], esi
test esi, esi
jne 0x45aa25
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
add edi, edi
mov ecx, 0xfffd
mov eax, dword [eax + edi*8 + 0xc]
and word [eax + 0x4e], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret