Function at 0x410e00
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c706
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2064
call fcn.00419810
mov eax, dword [0x42729c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2050], ecx
lea ecx, [ebp - 0x18]
call fcn.00418f50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2030]
call fcn.00417ae0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2038]
call fcn.00417ae0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00417ae0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x202c]
call fcn.00417ae0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2024]
call fcn.00417ae0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2020]
call fcn.00417ae0
mov byte [ebp - 4], 6
mov byte [ebp - 0x2025], 1
mov dword [ebp - 0x2034], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x2050]
mov ecx, dword [eax]
push ecx
push str.SELECT_plan_name__source_server__source_dir__destination_dir__file_retention_period_FROM_msdb.dbo.log_shipping_plans_WHERE_plan_id___s
lea edx, [ebp - 0x201c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, 0x432214
call fcn.004188a0
mov dword [ebp - 0x2054], eax
push 0
lea ecx, [ebp - 0x18]
call fcn.00418fc0
push eax
lea eax, [ebp - 0x201c]
push eax
mov ecx, dword [ebp - 0x2054]
push ecx
mov edx, dword [ebp - 0x2054]
mov eax, dword [edx]
call dword [eax + 0x170]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4110f5
lea ecx, [ebp - 0x18]
call fcn.00418fe0
test eax, eax
jne 0x4110f5
lea ecx, [ebp - 0x18]
call fcn.00419000
mov dword [ebp - 0x2058], eax
lea ecx, [ebp - 0x2034]
push ecx
mov edx, dword [ebp - 0x2058]
push edx
mov eax, dword [ebp - 0x2058]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jne 0x4110d8
cmp dword [ebp - 0x2034], 1
jne 0x4110d8
lea ecx, [ebp - 0x18]
call fcn.00419000
mov dword [ebp - 0x205c], eax
lea ecx, [ebp - 0x2020]
call fcn.00417b90
push eax
push 0
push 0
mov edx, dword [ebp - 0x205c]
push edx
mov eax, dword [ebp - 0x205c]
mov ecx, dword [eax]
call dword [ecx + 0x50]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4110d8
lea ecx, [ebp - 0x18]
call fcn.00419000
mov dword [ebp - 0x2060], eax
lea ecx, [ebp - 0x202c]
call fcn.00417b90
push eax
push 1
push 0
mov edx, dword [ebp - 0x2060]
push edx
mov eax, dword [ebp - 0x2060]
mov ecx, dword [eax]
call dword [ecx + 0x50]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4110d8
lea ecx, [ebp - 0x202c]
call fcn.00417b50
test eax, eax
je 0x4110d8
lea ecx, [ebp - 0x18]
call fcn.00419000
mov dword [ebp - 0x2064], eax
lea ecx, [ebp - 0x2030]
call fcn.00417b90
push eax
push 2
push 0
mov edx, dword [ebp - 0x2064]
push edx
mov eax, dword [ebp - 0x2064]
mov ecx, dword [eax]
call dword [ecx + 0x50]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4110d8
lea ecx, [ebp - 0x2030]
call fcn.00417b50
test eax, eax
je 0x4110d8
lea ecx, [ebp - 0x18]
call fcn.00419000
mov dword [ebp - 0x2068], eax
lea ecx, [ebp - 0x2038]
call fcn.00417b90
push eax
push 3
push 0
mov edx, dword [ebp - 0x2068]
push edx
mov eax, dword [ebp - 0x2068]
mov ecx, dword [eax]
call dword [ecx + 0x50]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4110d8
lea ecx, [ebp - 0x2038]
call fcn.00417b50
test eax, eax
je 0x4110d8
lea ecx, [ebp - 0x18]
call fcn.00419000
mov dword [ebp - 0x206c], eax
lea edx, [ebp - 0x10]
push edx
push 4
push 0
mov eax, dword [ebp - 0x206c]
push eax
mov ecx, dword [ebp - 0x206c]
mov edx, dword [ecx]
call dword [edx + 0x40]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x4110d8
mov dword [ebp - 0x2070], 0
jmp 0x4110e2
mov dword [ebp - 0x2070], 1
mov eax, dword [ebp - 0x2070]
push eax
call fcn.00407110
add esp, 4
test eax, eax
je 0x411101
mov byte [ebp - 0x2025], 0
jmp 0x4112cd
lea ecx, [ebp - 0x2020]
call fcn.00417b50
test eax, eax
je 0x411166
lea ecx, [ebp - 0x2020]
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 - 0x203c], eax
mov edx, dword [ebp - 0x2050]
mov eax, dword [ebp - 0x203c]
mov dword [edx + 0x14], eax
lea ecx, [ebp - 0x2020]
call fcn.00417b50
push eax
mov ecx, dword [ebp - 0x2050]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x2020]
call fcn.00417b20
lea ecx, [ebp - 0x2030]
call fcn.00417b50
test eax, eax
je 0x4111d6
lea ecx, [ebp - 0x2030]
call fcn.00417b70
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
lea eax, [eax + eax + 2]
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov dword [ebp - 0x2040], eax
mov ecx, dword [ebp - 0x2050]
mov edx, dword [ebp - 0x2040]
mov dword [ecx + 4], edx
lea ecx, [ebp - 0x2030]
call fcn.00417b50
push eax
mov eax, dword [ebp - 0x2050]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x2030]
call fcn.00417b20
lea ecx, [ebp - 0x2038]
call fcn.00417b50
test eax, eax
je 0x411246
lea ecx, [ebp - 0x2038]
call fcn.00417b70
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
push edx
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov dword [ebp - 0x2044], eax
mov eax, dword [ebp - 0x2050]
mov ecx, dword [ebp - 0x2044]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x2038]
call fcn.00417b50
push eax
mov edx, dword [ebp - 0x2050]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x2038]
call fcn.00417b20
lea ecx, [ebp - 0x202c]
call fcn.00417b50
test eax, eax
je 0x4112b6
lea ecx, [ebp - 0x202c]
call fcn.00417b70
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 - 0x2048], eax
mov edx, dword [ebp - 0x2050]
mov eax, dword [ebp - 0x2048]
mov dword [edx + 0xc], eax
lea ecx, [ebp - 0x202c]
call fcn.00417b50
push eax
mov ecx, dword [ebp - 0x2050]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x202c]
call fcn.00417b20
mov eax, dword [ebp - 0x2050]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x24], ecx
cmp dword [ebp + 0xc], 0
je 0x4112f3
movzx edx, byte [ebp - 0x2025]
test edx, edx
je 0x4112f3
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2050]
call fcn.00411420
mov byte [ebp - 0x2025], al
mov cl, byte [ebp - 0x2025]
mov byte [ebp - 0x2049], cl
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2020]
call fcn.00417b00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2024]
call fcn.00417b00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x202c]
call fcn.00417b00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00417b00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2038]
call fcn.00417b00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2030]
call fcn.00417b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00418f70
mov al, byte [ebp - 0x2049]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00419641
mov esp, ebp
pop ebp
ret 8