Function at 0x411420
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2758
call fcn.00419810
mov eax, dword [0x42729c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2710], ecx
mov byte [ebp - 0x2059], 1
mov dword [ebp - 0x2070], 0
lea ecx, [ebp - 0x14]
call fcn.00418f50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00417ae0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2050]
call fcn.00417ae0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2058]
call fcn.00417ae0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00417ae0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x206c]
call fcn.00417ae0
mov byte [ebp - 4], 5
push 0x10
push 0
lea eax, [ebp - 0x2048]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x2038]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x2710]
mov eax, dword [edx]
push eax
push str.select_DISTINCT_source_database__destination_database__load_delay__load_all__t_tlast_file_copied__date_last_copied__last_file_loaded__date_last_loaded__copy_enabled__load_enabled__t_trecover_db__terminate_users____from_msdb.dbo.log_shipping_plan_databases_where_plan_id___s
lea ecx, [ebp - 0x2024]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, 0x432214
call fcn.004188a0
mov dword [ebp - 0x2714], eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00418fc0
push eax
lea edx, [ebp - 0x2024]
push edx
mov eax, dword [ebp - 0x2714]
push eax
mov ecx, dword [ebp - 0x2714]
mov edx, dword [ecx]
call dword [edx + 0x170]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x41157f
lea ecx, [ebp - 0x14]
call fcn.00418fe0
test eax, eax
jne 0x41157f
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x2718], eax
lea eax, [ebp - 0x2070]
push eax
mov ecx, dword [ebp - 0x2718]
push ecx
mov edx, dword [ebp - 0x2718]
mov eax, dword [edx]
call dword [eax + 0x2c]
push eax
call fcn.00407110
add esp, 4
test eax, eax
je 0x4115ed
lea ecx, [ebp - 0x14]
call fcn.00419020
mov byte [ebp - 0x26ed], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x206c]
call fcn.00417b00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00417b00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2058]
call fcn.00417b00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2050]
call fcn.00417b00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00417b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00418f70
mov al, byte [ebp - 0x26ed]
jmp 0x41209f
mov ecx, dword [ebp - 0x2710]
mov edx, dword [ebp - 0x2070]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x2070]
mov dword [ebp - 0x26f4], eax
mov ecx, dword [ebp - 0x26f4]
imul ecx, ecx, 0x54
add ecx, 4
push ecx
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov dword [ebp - 0x26fc], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x26fc], 0
je 0x411671
mov edx, dword [ebp - 0x26fc]
mov eax, dword [ebp - 0x26f4]
mov dword [edx], eax
push fcn.004143d0
push 0x4182b0
mov ecx, dword [ebp - 0x26f4]
push ecx
push 0x54
mov edx, dword [ebp - 0x26fc]
add edx, 4
push edx
call fcn.00419575
mov eax, dword [ebp - 0x26fc]
add eax, 4
mov dword [ebp - 0x271c], eax
jmp 0x41167b
mov dword [ebp - 0x271c], 0
mov ecx, dword [ebp - 0x271c]
mov dword [ebp - 0x26f8], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2710]
mov eax, dword [ebp - 0x26f8]
mov dword [edx + 0x18], eax
mov dword [ebp - 0x2028], 0
jmp 0x4116b5
mov ecx, dword [ebp - 0x2028]
add ecx, 1
mov dword [ebp - 0x2028], ecx
mov edx, dword [ebp - 0x2028]
cmp edx, dword [ebp - 0x2070]
jge 0x412013
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x2720], eax
lea ecx, [ebp - 0x1c]
call fcn.00417b90
push eax
push 0
mov eax, dword [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x2720]
push ecx
mov edx, dword [ebp - 0x2720]
mov eax, dword [edx]
call dword [eax + 0x50]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x2724], eax
lea ecx, [ebp - 0x2050]
call fcn.00417b90
push eax
push 1
mov ecx, dword [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x2724]
push edx
mov eax, dword [ebp - 0x2724]
mov ecx, dword [eax]
call dword [ecx + 0x50]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x2728], eax
lea edx, [ebp - 0x2064]
push edx
push 2
mov eax, dword [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x2728]
push ecx
mov edx, dword [ebp - 0x2728]
mov eax, dword [edx]
call dword [eax + 0x40]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x272c], eax
lea ecx, [ebp - 0x2054]
push ecx
push 3
mov edx, dword [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x272c]
push eax
mov ecx, dword [ebp - 0x272c]
mov edx, dword [ecx]
call dword [edx + 0x44]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x2730], eax
lea ecx, [ebp - 0x2058]
call fcn.00417b90
push eax
push 4
mov eax, dword [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x2730]
push ecx
mov edx, dword [ebp - 0x2730]
mov eax, dword [edx]
call dword [eax + 0x50]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x2734], eax
lea ecx, [ebp - 0x2048]
push ecx
push 5
mov edx, dword [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x2734]
push eax
mov ecx, dword [ebp - 0x2734]
mov edx, dword [ecx]
call dword [edx + 0x5c]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x2738], eax
lea ecx, [ebp - 0x18]
call fcn.00417b90
push eax
push 6
mov eax, dword [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x2738]
push ecx
mov edx, dword [ebp - 0x2738]
mov eax, dword [edx]
call dword [eax + 0x50]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x273c], eax
lea ecx, [ebp - 0x2038]
push ecx
push 7
mov edx, dword [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x273c]
push eax
mov ecx, dword [ebp - 0x273c]
mov edx, dword [ecx]
call dword [edx + 0x5c]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x2740], eax
lea eax, [ebp - 0x2060]
push eax
push 8
mov ecx, dword [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x2740]
push edx
mov eax, dword [ebp - 0x2740]
mov ecx, dword [eax]
call dword [ecx + 0x44]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x2744], eax
lea edx, [ebp - 0x10]
push edx
push 9
mov eax, dword [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x2744]
push ecx
mov edx, dword [ebp - 0x2744]
mov eax, dword [edx]
call dword [eax + 0x44]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x2748], eax
lea ecx, [ebp - 0x204c]
push ecx
push 0xa
mov edx, dword [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x2748]
push eax
mov ecx, dword [ebp - 0x2748]
mov edx, dword [ecx]
call dword [edx + 0x44]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4119d2
lea ecx, [ebp - 0x14]
call fcn.00419000
mov dword [ebp - 0x274c], eax
lea eax, [ebp - 0x2068]
push eax
push 0xb
mov ecx, dword [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x274c]
push edx
mov eax, dword [ebp - 0x274c]
mov ecx, dword [eax]
call dword [ecx + 0x44]
push eax
call fcn.00407110
add esp, 4
test eax, eax
je 0x411a38
mov byte [ebp - 0x26fd], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x206c]
call fcn.00417b00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00417b00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2058]
call fcn.00417b00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2050]
call fcn.00417b00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00417b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00418f70
mov al, byte [ebp - 0x26fd]
jmp 0x41209f
lea ecx, [ebp - 0x1c]
call fcn.00417b50
push eax
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.004157c0
lea ecx, [ebp - 0x2050]
call fcn.00417b50
push eax
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov eax, dword [ebp - 0x2710]
add ecx, dword [eax + 0x18]
call fcn.00415840
mov ecx, dword [ebp - 0x2064]
push ecx
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.004158c0
cmp dword [ebp - 0x2054], 1
sete al
push eax
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.004158e0
lea ecx, [ebp - 0x2058]
call fcn.00417b50
push eax
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov eax, dword [ebp - 0x2710]
add ecx, dword [eax + 0x18]
call fcn.00415900
lea ecx, [ebp - 0x2048]
push ecx
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.00415980
lea ecx, [ebp - 0x18]
call fcn.00417b50
push eax
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov eax, dword [ebp - 0x2710]
add ecx, dword [eax + 0x18]
call fcn.004159b0
lea ecx, [ebp - 0x2038]
push ecx
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.00415a70
cmp dword [ebp - 0x2060], 1
sete al
push eax
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.00415a50
cmp dword [ebp - 0x10], 1
sete al
push eax
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.00415a30
mov eax, dword [ebp - 0x2710]
push eax
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.00418250
cmp dword [ebp - 0x204c], 1
sete al
push eax
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.00418270
cmp dword [ebp - 0x2068], 1
sete al
push eax
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.00418290
lea ecx, [ebp - 0x1c]
call fcn.00417b50
test eax, eax
je 0x41200e
lea ecx, [ebp - 0x2050]
call fcn.00417b50
test eax, eax
je 0x41200e
mov ecx, dword [ebp - 0x2710]
call fcn.00418230
test eax, eax
je 0x41200e
lea ecx, [ebp - 0x2488]
call fcn.00417ae0
mov byte [ebp - 4], 7
mov ecx, 0x432214
call fcn.004188a0
mov dword [ebp - 0x2750], eax
lea ecx, [ebp - 0x2488]
call fcn.00417b90
push eax
mov eax, dword [ebp - 0x2750]
push eax
mov ecx, dword [ebp - 0x2750]
mov edx, dword [ecx]
call dword [edx + 0x8c]
mov dword [ebp - 0x2480], 0
lea ecx, [ebp - 0x2484]
call fcn.00418f50
mov byte [ebp - 4], 8
push 0x201
lea eax, [ebp - 0x247c]
push eax
lea ecx, [ebp - 0x2050]
call fcn.00417b50
push eax
call fcn.00409ed0
add esp, 0xc
lea ecx, [ebp - 0x247c]
push ecx
lea ecx, [ebp - 0x2488]
call fcn.00417b50
push eax
push str.SELECT_source_directory__primary_server_name_FROM_msdb.dbo.log_shipping_secondaries_s__msdb.dbo.log_shipping_primaries_p_WHERE_secondary_server_name___s_AND_secondary_database_name___s_and_p.primary_id__s.primary_id
lea edx, [ebp - 0x2024]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 0x2710]
call fcn.00418230
test eax, eax
je 0x411ff0
mov ecx, dword [ebp - 0x2710]
call fcn.00418230
mov ecx, eax
call fcn.00416110
mov ecx, eax
call fcn.00418840
test eax, eax
je 0x411ff0
mov ecx, dword [ebp - 0x2710]
call fcn.00418230
mov ecx, eax
call fcn.00416110
mov ecx, eax
call fcn.004188a0
mov dword [ebp - 0x2754], eax
push 0
lea ecx, [ebp - 0x2484]
call fcn.00418fc0
push eax
lea eax, [ebp - 0x2024]
push eax
mov ecx, dword [ebp - 0x2754]
push ecx
mov edx, dword [ebp - 0x2754]
mov eax, dword [edx]
call dword [eax + 0x170]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x411ff0
lea ecx, [ebp - 0x2484]
call fcn.00419000
mov dword [ebp - 0x2758], eax
lea ecx, [ebp - 0x2480]
push ecx
mov edx, dword [ebp - 0x2758]
push edx
mov eax, dword [ebp - 0x2758]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x411ff0
cmp dword [ebp - 0x2480], 1
jne 0x411ff0
lea ecx, [ebp - 0x2484]
call fcn.00419000
mov dword [ebp - 0x275c], eax
lea ecx, [ebp - 0x206c]
call fcn.00417b90
push eax
push 0
push 0
mov edx, dword [ebp - 0x275c]
push edx
mov eax, dword [ebp - 0x275c]
mov ecx, dword [eax]
call dword [ecx + 0x50]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x411ff0
lea ecx, [ebp - 0x206c]
call fcn.00417b50
test eax, eax
je 0x411ff0
mov edx, dword [ebp - 0x2710]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x206c]
call fcn.00417b50
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
je 0x411ff0
mov ecx, dword [ebp - 0x2710]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2704], edx
mov eax, dword [ebp - 0x2704]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x206c]
call fcn.00417b50
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov dword [ebp - 0x2708], eax
mov edx, dword [ebp - 0x2710]
mov eax, dword [ebp - 0x2708]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x206c]
call fcn.00417b70
push eax
mov ecx, dword [ebp - 0x2710]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x248c]
call fcn.00417ae0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2484]
call fcn.00419000
mov dword [ebp - 0x2760], eax
lea ecx, [ebp - 0x248c]
call fcn.00417b90
push eax
push 1
push 0
mov eax, dword [ebp - 0x2760]
push eax
mov ecx, dword [ebp - 0x2760]
mov edx, dword [ecx]
call dword [edx + 0x50]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x411fd6
lea ecx, [ebp - 0x248c]
call fcn.00417b50
test eax, eax
je 0x411fd6
push 0x12c
push 0
lea eax, [ebp - 0x26ec]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x12c
push 0
lea ecx, [ebp - 0x26ec]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x2028]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x2710]
add ecx, dword [edx + 0x18]
call fcn.00418060
push eax
lea ecx, [ebp - 0x248c]
call fcn.00417b50
push eax
push str._s._s_logshipping
lea eax, [ebp - 0x26ec]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x96
lea ecx, [ebp - 0x25bc]
push ecx
lea edx, [ebp - 0x26ec]
push edx
call fcn.00409ed0
add esp, 0xc
mov eax, dword [ebp - 0x2710]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x2710]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x248c]
call fcn.00417b50
push eax
lea ecx, [ebp - 0x25bc]
push ecx
push str.UPDATE_msdb.dbo.log_shipping_plans_SET_plan_name___s__source_server___s__source_dir___s_WHERE_plan_id___s
lea edx, [ebp - 0x2024]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov ecx, 0x432214
call fcn.004188a0
mov dword [ebp - 0x2764], eax
push 0
push 0
lea eax, [ebp - 0x2024]
push eax
mov ecx, dword [ebp - 0x2764]
push ecx
mov edx, dword [ebp - 0x2764]
mov eax, dword [edx]
call dword [eax + 0x16c]
push eax
call fcn.00407110
add esp, 4
lea ecx, [ebp - 0x206c]
call fcn.00417b20
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x248c]
call fcn.00417b00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2484]
call fcn.00418f70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2488]
call fcn.00417b00
jmp 0x4116a6
lea ecx, [ebp - 0x1c]
call fcn.00417b20
lea ecx, [ebp - 0x2050]
call fcn.00417b20
lea ecx, [ebp - 0x2058]
call fcn.00417b20
lea ecx, [ebp - 0x18]
call fcn.00417b20
mov cl, byte [ebp - 0x2059]
mov byte [ebp - 0x2709], cl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x206c]
call fcn.00417b00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00417b00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2058]
call fcn.00417b00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2050]
call fcn.00417b00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00417b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00418f70
mov al, byte [ebp - 0x2709]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x20]
call fcn.00419641
mov esp, ebp
pop ebp
ret 4