Function at 0x65243b50
Capabilities:
Reference sql statements

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
test byte [eax + 0x24], 0x10
mov edx, str.WHERE_location____C
jne 0x65243b6a
mov edx, 0x6528b61a
mov eax, dword [esi + 0x68]
test eax, eax
mov ecx, str.source
jne 0x65243b7b
mov ecx, 0x6528b704
push edx
push ecx
lea eax, [esi + 0x278]
push str.SELECT____event_id__event_name___select_user_name_from_SYS.SYSUSERPERMS____where_user_ide.creator___if_enabled__Y_then_ENABLE__else_DISABLE__endif__case_location_____when_C_then_AT_CONSOLIDATED______when_R_then_AT_REMOTE______when_A_then_AT_ALL____end__if_event_type_id_is_null_then__else_______select_TYPE____name_____from_SYS.SYSEVENTTYPE_______where_event_type_id__e.event_type_id__endif__if_condition_is_null_then__else_WHERE___condition____endif__if_action_is_null_then_0_else_1_endif__if_external_action_is_null_then______else_HANDLER_EXTERNAL___external_action____endif__remarks___s__FROM_SYS.SYSEVENT_e___s
push eax
call fcn.65237150
mov ecx, dword [esi + 0x1e8]
push eax
push 0x1f
push ecx
call fcn.65261aa0
mov edx, dword [esi + 0x1e8]
push 0x1f
push edx
call fcn.65262260
add esp, 0x24
test eax, eax
je 0x65243f12
push ebx
push ebp
push edi
lea ebp, [esi + 0x128]
nop
mov eax, dword [esi + 0x1e8]
push 0
push 0x1f
push eax
call fcn.652617d0
mov ecx, dword [esi + 0x1e8]
push 1
push 0x1f
push ecx
mov dword [esp + 0x34], eax
call fcn.652617d0
mov edx, dword [esi + 0x1e8]
push 2
push 0x1f
push edx
mov ebx, eax
call fcn.652617d0
mov edi, dword [esp + 0x44]
add esp, 0x24
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov ecx, eax
jmp 0x65243c10
mov dl, byte [ecx]
mov al, dl
cmp dl, byte [edi]
jne 0x65243c34
test al, al
je 0x65243c30
mov dl, byte [ecx + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x65243c34
add ecx, 2
add edi, 2
test al, al
jne 0x65243c10
xor eax, eax
jmp 0x65243c39
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x65243c57
mov eax, dword [esp + 0x14]
push 0
push eax
push 0x14
push ebp
mov dword [esp + 0x20], 1
call fcn.65237220
add esp, 0x10
mov ecx, dword [esi + 0x1e8]
push 8
push 0x1f
push ecx
call fcn.652617d0
mov edx, dword [esi + 0x1e8]
add esp, 0xc
push eax
push 4
push 0x1f
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [esi + 0x1e8]
push 3
push 0x1f
push eax
call fcn.652617d0
mov ecx, dword [esi + 0x1e8]
add esp, 0xc
push eax
push 6
push 0x1f
push ecx
call fcn.652617d0
mov edx, dword [esi + 0x1e8]
add esp, 0xc
push eax
push 5
push 0x1f
push edx
call fcn.652617d0
add esp, 0xc
push eax
push ebx
push str.CREATE_EVENT___s___s_s_s_s_s
push 0x14
push ebp
call fcn.652371f0
mov eax, dword [esi + 0x1e8]
push 7
push 0x1f
push eax
call fcn.652617d0
mov cl, byte [eax]
add esp, 0x30
cmp cl, 0x31
jne 0x65243d50
push str._r_nHANDLER
push 0x14
push ebp
call fcn.652371f0
mov ecx, dword [esp + 0x28]
push ecx
lea eax, [esi + 0x278]
push str.SELECT_action_FROM_SYS.SYSEVENT_WHERE_event_id_s
push eax
call fcn.65237150
mov edx, dword [esi + 0x1e8]
push eax
push 0x18
push edx
call fcn.65261aa0
mov eax, dword [esi + 0x1e8]
push 0x18
push eax
call fcn.65262260
add esp, 0x2c
test eax, eax
je 0x65243d3d
push 0
push 0
push 0
push 0x18
push 0x14
push esi
call fcn.65238e30
add esp, 0x18
mov ecx, dword [esi + 0x1e8]
push 0x18
push ecx
call fcn.65261d80
add esp, 8
jmp 0x65243d60
push 0x6528fa54
push 0x14
push ebp
call fcn.652371f0
add esp, 0xc
mov edx, dword [esi + 0x1e8]
push 9
push 0x1f
push edx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x65243def
mov eax, dword [esi + 0x1e8]
push 9
push 0x1f
push eax
call fcn.652617d0
push ebx
push str.COMMENT_ON_EVENT___s__IS_r_n_t
push 0x14
push ebp
mov edi, eax
call fcn.652371f0
push 0x14
push ebp
call fcn.652371e0
add esp, 0x24
test eax, eax
je 0x65243ddf
mov ecx, edi
lea edx, [ecx + 1]
mov dword [esp + 0x14], edx
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x65243db0
mov edx, dword [esp + 0x14]
push eax
push 0x652385e0
xor eax, eax
mov al, byte [esi + 0x126]
push 1
push 1
sub ecx, edx
push eax
push str._x_nov
push ecx
push edi
call fcn.6526d4b0
add esp, 0x20
push 0x6528fa54
push 0x14
push ebp
call fcn.652371f0
add esp, 0xc
mov ecx, dword [esi + 0x1e8]
push 0xa
push 0x1f
push ecx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x65243e32
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esi + 0x278]
push str.SELECT_source__locate_source___FROM_SYS.SYSEVENT_WHERE_event_id_s
push eax
call fcn.65237150
push 0
push ebx
push 0
push str.EVENT
push eax
push 0x14
push esi
call fcn.652401d0
add esp, 0x28
mov eax, dword [esp + 0x1c]
push eax
lea eax, [esi + 0x278]
push str.CALL_dbo.sa_event_schedules___s__
push eax
call fcn.65237150
mov ecx, dword [esi + 0x1e8]
push eax
push 0x20
push ecx
call fcn.65261aa0
mov edx, dword [esi + 0x1e8]
push 0x20
push edx
call fcn.65262260
add esp, 0x20
test eax, eax
je 0x65243ebb
lea esp, [esp]
mov eax, dword [esi + 0x1e8]
push 1
push 0x20
push eax
call fcn.652617d0
mov ecx, dword [esi + 0x1e8]
add esp, 0xc
push eax
push 0
push 0x20
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push ebx
push str.ALTER_EVENT___s___r_n____ADD_SCHEDULE___s___r_n_________s__r_ngo_r_n
push 0x14
push ebp
call fcn.652371f0
mov edx, dword [esi + 0x1e8]
push 0x20
push edx
call fcn.65262260
add esp, 0x20
test eax, eax
jne 0x65243e70
mov eax, dword [esi + 0x1e8]
push 0x20
push eax
call fcn.65261d80
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x65243ee9
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
push 0x14
push ebp
call fcn.65237220
add esp, 0x10
push 0x6528b6e4
push 0x14
push ebp
call fcn.652371f0
mov eax, dword [esi + 0x1e8]
push 0x1f
push eax
call fcn.65262260
add esp, 0x14
test eax, eax
jne 0x65243bc0
pop edi
pop ebp
pop ebx
mov ecx, dword [esi + 0x1e8]
push 0x1f
push ecx
call fcn.65261d80
add esp, 8
pop esi
add esp, 8
ret