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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x5da084]
xor eax, esp
mov dword [esp + 0xc0], eax
cmp dword [ebp + 0x20], 0
mov eax, edx
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0xc], esi
mov esi, dword [ebx]
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0
je 0x4bd8d8
cmp dword [edx + 4], 0
jbe 0x4bd8d1
push str.temporary_trigger_may_not_have_qualified_name
push ebx
call fcn.0043f000
add esp, 8
jmp 0x4bdb8a
mov edi, 1
jmp 0x4bd8fc
lea ecx, [esp + 0x30]
push ecx
push edx
mov edx, eax
mov ecx, ebx
call fcn.0048c260
mov edi, eax
add esp, 8
test edi, edi
js 0x4bdb8a
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4bdb8a
cmp byte [esi + 0x57], 0
jne 0x4bdb8a
cmp byte [esi + 0xb1], 0
je 0x4bd939
cmp edi, 1
je 0x4bd939
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4bd932
mov ecx, esi
call fcn.0043b330
mov eax, dword [esp + 0x10]
mov dword [eax + 0xc], 0
mov edx, eax
mov ecx, ebx
call fcn.00495630
cmp byte [esi + 0xb1], 0
mov edx, 1
mov dword [esp + 0x14], edx
jne 0x4bd96e
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 4], 0
jne 0x4bd96e
test eax, eax
je 0x4bd96e
mov ecx, dword [esi + 0x10]
mov eax, dword [eax + 0x3c]
cmp eax, dword [ecx + 0x1c]
cmove edi, edx
cmp byte [esi + 0x57], 0
jne 0x4bdb8a
mov ecx, dword [ebx]
mov edx, edi
mov dword [esp + 0x44], ebx
xorps xmm0, xmm0
shl edx, 4
cmp edi, 1
mov dword [esp + 0x30], edx
mov eax, dword [ecx + 0x10]
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
mov eax, dword [edx + eax]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x48]
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
mov eax, dword [eax + edx + 0xc]
sete byte [esp + 0x68]
mov dword [esp + 0x64], eax
lea edx, [esp + 0x78]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], eax
xor eax, eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x44]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], str.trigger
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0x48a2d0
mov dword [esp + 0x50], 0x48a320
mov dword [esp + 0x54], fcn.00423f50
mov dword [esp + 0x58], 0
movlpd qword [esp + 0xac], xmm0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xbc], xmm0
mov dword [esp + 0x98], eax
call fcn.00474e90
test eax, eax
jne 0x4bdb8a
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.00495630
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4bda7f
cmp byte [eax + 0x2b], 1
jne 0x4bdaa8
push str.cannot_create_triggers_on_virtual_tables
push ebx
call fcn.0043f000
add esp, 8
cmp byte [esi + 0xb0], 1
mov edx, dword [esp + 0xc]
jne 0x4bda93
or dword [esi + 0xb4], 1
mov dword [esp + 0x1c], 0
test edx, edx
je 0x4bdb8a
jmp 0x4bdb83
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4bdb8a
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
test eax, eax
je 0x4bdaff
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, esi
call fcn.0043b7c0
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x4bdb05
push dword [esp + 0x18]
push dword [esp + 0x28]
push eax
call fcn.00570750
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov byte [ecx + eax], 0
jmp 0x4bdb05
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, eax
call fcn.0043f090
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4bdb8a
mov ecx, dword [esp + 0x2c]
mov edx, eax
push dword [ecx]
mov ecx, ebx
push str.trigger
call fcn.0048c2f0
add esp, 8
test eax, eax
jne 0x4bdb7f
cmp byte [ebx + 0xd4], 2
jae 0x4bdc3e
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
push 0
mov ecx, dword [eax + ecx + 0xc]
add ecx, 0x28
call fcn.004407e0
add esp, 4
cmp dword [eax + 8], 0
je 0x4bdc3e
cmp dword [ebp + 0x24], 0
jne 0x4bdc06
mov eax, dword [esp + 0x20]
push eax
push str.trigger__T_already_exists
push ebx
call fcn.0043f000
add esp, 0xc
mov edx, dword [esp + 0xc]
mov ecx, esi
call fcn.0043b330
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.004936b0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4bdbcc
xor edi, edi
cmp dword [eax], edi
jle 0x4bdbc3
lea ebx, [eax + 8]
mov edx, dword [ebx]
test edx, edx
je 0x4bdbb7
mov ecx, esi
call fcn.0043b330
mov eax, dword [esp + 0x38]
inc edi
add ebx, 8
cmp edi, dword [eax]
jl 0x4bdba6
mov ebx, dword [esp + 0x3c]
mov edx, eax
mov ecx, esi
call fcn.0043b3e0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4bdbdd
mov edx, eax
mov ecx, esi
call fcn.004798d0
cmp dword [ebx + 0xf8], 0
jne 0x4bdbf1
mov edx, dword [esp + 0x1c]
mov ecx, esi
call fcn.004bef80
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x78]
mov edx, ebx
test eax, eax
mov ecx, edi
cmovne edx, eax
shl dword [esp + 0x14], cl
mov eax, dword [edx + 0x58]
test dword [esp + 0x14], eax
jne 0x4bdb7f
bts eax, edi
mov dword [edx + 0x58], eax
cmp edi, 1
jne 0x4bdb7f
mov ecx, edx
call fcn.00493f70
jmp 0x4bdb7f
mov eax, dword [esp + 0x2c]
mov edx, 7
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x4bdc5b
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
jmp 0x4bdcc2
mov eax, dword [esp + 0xc]
mov edi, ecx
mov ecx, str.sqlite_
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
nop
mov al, byte [edi]
dec edx
test al, al
je 0x4bdc9a
movzx ecx, byte [ecx]
movzx eax, al
mov al, byte [eax + 0x5b3648]
cmp al, byte [ecx + 0x5b3648]
mov ecx, dword [esp + 0x14]
jne 0x4bdc9a
inc ecx
inc edi
mov dword [esp + 0x14], ecx
test edx, edx
jg 0x4bdc70
dec edx
test edx, edx
js 0x4bdf56
movzx eax, byte [ecx]
movzx ecx, byte [eax + 0x5b3648]
movzx eax, byte [edi]
movzx eax, byte [eax + 0x5b3648]
sub eax, ecx
je 0x4bdf56
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x2b], 2
jne 0x4bdcfd
mov ecx, dword [esp + 0x28]
cmp ecx, 0x41
je 0x4bdd1f
mov eax, dword [esp + 0x10]
mov edx, str.AFTER
add eax, 8
cmp ecx, 0x21
push eax
mov eax, str.BEFORE
cmovne eax, edx
push eax
push str.cannot_create__s_trigger_on_view:__S
push ebx
call fcn.0043f000
add esp, 0x10
jmp 0x4bda7f
cmp dword [esp + 0x28], 0x41
jne 0x4bdd1f
mov eax, dword [esp + 0x10]
add eax, 8
push eax
push str.cannot_create_INSTEAD_OF_trigger_on_table:__S
push ebx
call fcn.0043f000
add esp, 0xc
jmp 0x4bda7f
cmp byte [ebx + 0xd4], 2
jae 0x4bddc0
mov ecx, dword [eax + 0x3c]
mov edi, 0xffff8000
test ecx, ecx
je 0x4bdd4c
mov eax, dword [esi + 0x10]
xor edi, edi
add eax, 0xc
cmp dword [eax], ecx
je 0x4bdd4c
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x4bdd44
mov ecx, dword [esi + 0x10]
mov eax, edi
add eax, eax
mov edx, 7
cmp dword [ebp + 0x20], 0
mov eax, dword [ecx + eax*8]
mov dword [esp + 0x18], eax
je 0x4bdd68
mov eax, dword [ecx + 0x10]
cmp edi, 1
je 0x4bdd73
cmp dword [ebp + 0x20], 0
je 0x4bdd78
mov edx, 5
push eax
push dword [esp + 0x28]
mov ecx, ebx
push dword [esp + 0x28]
call fcn.0048a7e0
add esp, 0xc
test eax, eax
jne 0x4bdb7f
push dword [esp + 0x18]
mov ecx, str.sqlite_temp_master
cmp edi, 1
push eax
mov eax, str.sqlite_master
mov edx, 0x12
cmove eax, ecx
mov ecx, ebx
push eax
call fcn.0048a7e0
add esp, 0xc
test eax, eax
jne 0x4bdb7f
cmp dword [esp + 0x28], 0x41
mov eax, 0x21
push 0
cmovne eax, dword [esp + 0x2c]
mov ecx, esi
push 0x24
mov dword [esp + 0x1c], eax
call fcn.0043b7c0
mov edi, eax
add esp, 8
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4bdf4d
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4bde40
xor edx, edx
jmp 0x4bde85
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bde45
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, esi
push eax
mov dword [esp + 0x2c], eax
call fcn.0043b7c0
mov edx, eax
add esp, 8
mov dword [esp + 0x28], edx
test edx, edx
je 0x4bde81
push dword [esp + 0x24]
push dword [esp + 0x1c]
push edx
call fcn.00570750
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x14], 0x21
mov dword [edi + 4], edx
mov eax, dword [esi + 0x10]
mov eax, dword [eax + ebx + 0xc]
mov ebx, dword [esp + 0x3c]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x3c]
mov dword [edi + 0x18], eax
mov al, byte [ebp + 0x10]
mov byte [edi + 8], al
setne al
inc al
mov byte [edi + 9], al
cmp byte [ebx + 0xd4], 2
jb 0x4bdefd
mov eax, dword [ebx + 0x110]
mov ecx, dword [ecx + 0x10]
test eax, eax
je 0x4bdef5
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x3c]
nop dword [eax]
cmp dword [eax], ecx
je 0x4bdef3
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4bdee0
xor edx, edx
mov dword [esp + 0x40], edx
jmp 0x4bdf29
mov dword [eax], edx
xor edx, edx
mov dword [esp + 0x40], edx
jmp 0x4bdf29
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4bdf19
push 0
push 1
mov ecx, esi
call fcn.00479b40
add esp, 8
mov dword [esp + 0x34], eax
jmp 0x4bdf21
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov ecx, esi
mov edx, dword [esp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x10], eax
mov dword [ebx + 0xf8], edi
call fcn.004936b0
jmp 0x4bdbcc
mov dword [esp + 0x1c], edi
jmp 0x4bdb7f
push str.cannot_create_trigger_on_system_table
push ebx
call fcn.0043f000
add esp, 8
jmp 0x4bdb7f