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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x50], eax
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x24], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
push esi
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebx]
push edi
mov edi, edx
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], ebx
lea eax, [edx + 4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
mov eax, dword [eax]
mov dword [esp + 0x10], 0
je 0x47f907
test eax, eax
je 0x47f8fa
push str.temporary_trigger_may_not_have_qualified_name
push ebx
call fcn.00408830
add esp, 8
xor edi, edi
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.00457490
mov edx, dword [esp + 0x3c]
mov ecx, esi
call fcn.00456e70
mov eax, dword [esp + 0x40]
test eax, eax
je 0x47f8d6
mov edx, eax
mov ecx, esi
call fcn.00441410
cmp dword [ebx + 0x1b4], 0
jne 0x47f8e8
mov edx, edi
mov ecx, esi
call fcn.004803e0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
mov eax, 1
lea ecx, [esi + 0x9d]
jmp 0x47f955
lea ecx, [esi + 0x9d]
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x47f94e
cmp byte [ecx], 0
je 0x47f921
push str.corrupt_database
jmp 0x47f8a4
mov edx, edi
mov ecx, esi
call fcn.00450a70
mov dword [esp + 0x14], eax
test eax, eax
jns 0x47f946
push edi
push str.unknown_database__T
push ebx
call fcn.00408830
add esp, 0xc
jmp 0x47f8ad
lea ecx, [esi + 0x9d]
jmp 0x47f961
movzx eax, byte [esi + 0x9c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x18]
test edi, edi
je 0x47f8ad
cmp byte [esi + 0x49], 0
jne 0x47f8ad
cmp byte [ecx], 0
je 0x47fa2b
cmp eax, 1
je 0x47fa2b
mov edi, dword [edi + 0xc]
test edi, edi
je 0x47fa20
cmp dword [esi + 0x1d0], 0
je 0x47f9a8
mov edx, edi
mov ecx, esi
call fcn.00405430
jmp 0x47fa20
cmp edi, dword [esi + 0x128]
jb 0x47f9c8
cmp edi, dword [esi + 0x12c]
jae 0x47f9c8
mov eax, dword [esi + 0x124]
mov dword [edi], eax
mov dword [esi + 0x124], edi
jmp 0x47fa20
cmp dword [0x55a418], 0
je 0x47fa16
mov eax, dword [0x560268]
test eax, eax
je 0x47f9e4
push eax
call dword [0x55a474]
add esp, 4
push edi
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push edi
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x47fa20
push eax
call dword [0x55a47c]
jmp 0x47fa1d
push edi
call dword [0x55a448]
add esp, 4
mov edi, dword [esp + 0x18]
mov dword [edi + 0xc], 0
mov edx, edi
mov ecx, ebx
call fcn.00459a10
mov ecx, dword [esp + 0x1c]
mov edi, 1
mov dword [esp + 0x24], edi
cmp byte [ecx], 0
jne 0x47fa69
mov ecx, dword [esp + 0x38]
cmp dword [ecx], 0
jne 0x47fa69
mov edx, dword [esp + 0x14]
test eax, eax
je 0x47fa6d
mov ecx, dword [esi + 0x10]
mov eax, dword [eax + 0x48]
cmp eax, dword [ecx + 0x1c]
cmove edx, edi
mov dword [esp + 0x14], edx
jmp 0x47fa6d
mov edx, dword [esp + 0x14]
cmp byte [esi + 0x49], 0
jne 0x47f8ad
mov eax, dword [ebx]
mov ecx, edx
mov edi, dword [esp + 0x30]
shl ecx, 4
mov dword [esp + 0x38], ecx
add ecx, dword [eax + 0x10]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x54], str.trigger
mov dword [esp + 0x58], edi
mov eax, dword [ecx]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], eax
xor eax, eax
cmp edx, 1
mov edx, dword [esp + 0x18]
sete al
mov dword [esp + 0x4c], eax
call fcn.0044ebc0
test eax, eax
jne 0x47f8ad
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.00459a10
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x47faf5
xor edi, edi
cmp byte [esi + 0x9c], 1
jne 0x47f8af
mov byte [esi + 0x9e], 1
jmp 0x47f8af
cmp dword [eax + 0x38], 0
je 0x47fb05
push str.cannot_create_triggers_on_virtual_tables
jmp 0x47f8a4
test edi, edi
je 0x47f8ad
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x47fb22
xor edi, edi
jmp 0x47fb56
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, esi
call fcn.004058c0
mov edi, eax
add esp, 8
test edi, edi
je 0x47fb56
push dword [esp + 0x34]
push dword [esp + 0x24]
push edi
call fcn.004f79b0
mov eax, dword [esp + 0x40]
add esp, 0xc
mov byte [eax + edi], 0
mov ecx, edi
call fcn.004089e0
test edi, edi
je 0x47f8ad
mov edx, edi
mov ecx, ebx
call fcn.00450ba0
test eax, eax
jne 0x47feaa
mov eax, dword [esi + 0x10]
mov edx, edi
mov ecx, dword [esp + 0x38]
push 0
mov ecx, dword [eax + ecx + 0xc]
add ecx, 0x28
call fcn.00409f50
add esp, 4
cmp dword [eax + 8], 0
je 0x47fbf0
cmp dword [ebp + 0x24], 0
jne 0x47fbb4
mov edx, dword [esp + 0x30]
push edx
push str.trigger__T_already_exists
push ebx
call fcn.00408830
add esp, 0xc
jmp 0x47feaa
mov eax, dword [ebx + 0x78]
mov edx, ebx
test eax, eax
cmovne edx, eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shl dword [esp + 0x24], cl
mov ecx, dword [edx + 0x5c]
test dword [esp + 0x24], ecx
jne 0x47feaa
bts ecx, eax
mov dword [edx + 0x5c], ecx
cmp eax, 1
jne 0x47feaa
mov ecx, edx
call fcn.00457d00
jmp 0x47feaa
mov eax, dword [esp + 0x1c]
mov edx, 7
mov eax, dword [eax]
test eax, eax
je 0x47fc66
mov ecx, str.sqlite_
mov ebx, eax
mov dword [esp + 0x24], ecx
nop word [eax + eax]
mov al, byte [ebx]
dec edx
test al, al
je 0x47fc3a
movzx ecx, byte [ecx]
movzx eax, al
mov al, byte [eax + 0x54ce60]
cmp al, byte [ecx + 0x54ce60]
jne 0x47fc3a
mov ecx, dword [esp + 0x24]
inc ebx
inc ecx
mov dword [esp + 0x24], ecx
test edx, edx
jg 0x47fc10
dec edx
test edx, edx
js 0x47fe92
movzx eax, byte [ebx]
movzx ecx, byte [eax + 0x54ce60]
mov eax, dword [esp + 0x24]
movzx eax, byte [eax]
movzx eax, byte [eax + 0x54ce60]
sub ecx, eax
je 0x47fe92
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0xc], 0
je 0x47fca3
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x40
je 0x47fcc3
push 0
push dword [esp + 0x1c]
cmp ecx, 0x21
mov edx, str.AFTER
mov eax, str.BEFORE
cmovne eax, edx
push eax
push str.cannot_create__s_trigger_on_view:__S
push ebx
call fcn.00408830
add esp, 0x14
jmp 0x47feaa
cmp dword [esp + 0x2c], 0x40
jne 0x47fcc3
push 0
push dword [esp + 0x1c]
push str.cannot_create_INSTEAD_OF_trigger_on_table:__S
push ebx
call fcn.00408830
add esp, 0x10
jmp 0x47feaa
mov edx, dword [eax + 0x48]
mov ebx, 0xfff0bdc0
test edx, edx
je 0x47fcec
mov ecx, dword [esi + 0x14]
xor ebx, ebx
test ecx, ecx
jle 0x47fcec
mov eax, dword [esi + 0x10]
add eax, 0xc
nop
cmp dword [eax], edx
je 0x47fcec
inc ebx
add eax, 0x10
cmp ebx, ecx
jl 0x47fce0
mov ecx, dword [esi + 0x10]
mov eax, ebx
add eax, eax
mov edx, 7
cmp dword [ebp + 0x20], 0
mov eax, dword [ecx + eax*8]
mov dword [esp + 0x20], eax
je 0x47fd08
mov eax, dword [ecx + 0x10]
cmp ebx, 1
je 0x47fd13
cmp dword [ebp + 0x20], 0
je 0x47fd18
mov edx, 5
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push dword [eax]
push edi
call fcn.0044f0c0
add esp, 0xc
test eax, eax
jne 0x47fea6
push dword [esp + 0x20]
cmp ebx, 1
mov ecx, str.sqlite_temp_master
mov ebx, dword [esp + 0x2c]
mov edx, 0x12
push eax
mov eax, str.sqlite_master
cmove eax, ecx
mov ecx, ebx
push eax
call fcn.0044f0c0
add esp, 0xc
test eax, eax
jne 0x47feaa
cmp dword [esp + 0x2c], 0x40
mov eax, 0x21
push 0
cmovne eax, dword [esp + 0x30]
mov ecx, esi
push 0x24
mov dword [esp + 0x34], eax
call fcn.004058c0
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x47fe8c
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx], edi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x47fde1
xor edi, edi
jmp 0x47fe1e
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47fde6
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, esi
push eax
mov dword [esp + 0x28], eax
call fcn.004058c0
mov edi, eax
add esp, 8
test edi, edi
je 0x47fe1a
push dword [esp + 0x20]
push dword [esp + 0x38]
push edi
call fcn.004f79b0
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x2c], 0x21
mov dword [ecx + 4], edi
mov eax, dword [esi + 0x10]
mov eax, dword [edx + eax + 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x48]
mov dword [ecx + 0x18], eax
mov al, byte [ebp + 0x10]
mov byte [ecx + 8], al
setne al
inc al
mov byte [ecx + 9], al
mov eax, dword [esp + 0x40]
test eax, eax
je 0x47fe6a
push 0
push 1
mov edx, eax
mov ecx, esi
call fcn.004416a0
mov ecx, dword [esp + 0x18]
add esp, 8
jmp 0x47fe6c
xor eax, eax
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.00441db0
mov edi, dword [esp + 0x10]
mov dword [edi + 0x10], eax
mov dword [ebx + 0x1b4], edi
jmp 0x47f8af
mov dword [esp + 0x10], ecx
jmp 0x47feaa
mov ebx, dword [esp + 0x28]
push str.cannot_create_trigger_on_system_table
push ebx
call fcn.00408830
add esp, 8
jmp 0x47feaa
mov ebx, dword [esp + 0x28]
cmp dword [esi + 0x1d0], 0
je 0x47fec5
mov edx, edi
mov ecx, esi
call fcn.00405430
mov edi, dword [esp + 0x10]
jmp 0x47f8af
cmp edi, dword [esi + 0x128]
jb 0x47feec
cmp edi, dword [esi + 0x12c]
jae 0x47feec
mov eax, dword [esi + 0x124]
mov dword [edi], eax
mov dword [esi + 0x124], edi
mov edi, dword [esp + 0x10]
jmp 0x47f8af
cmp dword [0x55a418], 0
je 0x47ff44
mov eax, dword [0x560268]
test eax, eax
je 0x47ff08
push eax
call dword [0x55a474]
add esp, 4
push edi
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push edi
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x47ff3b
push eax
call dword [0x55a47c]
add esp, 4
mov edi, dword [esp + 0x10]
jmp 0x47f8af
push edi
call dword [0x55a448]
mov edi, dword [esp + 0x14]
add esp, 4
jmp 0x47f8af