Function at 0x416600
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c905
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x21a4
call fcn.00419810
mov eax, dword [0x42729c]
mov dword [ebp - 0x18], eax
mov ecx, 0x432214
call fcn.004188a0
mov dword [ebp - 0x2198], eax
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x2198]
push ecx
mov edx, dword [ebp - 0x2198]
mov eax, dword [edx]
call dword [eax + 0x27c]
test eax, eax
jl 0x416665
cmp dword [ebp - 0x150], 3
je 0x41666c
xor eax, eax
jmp 0x41698f
lea ecx, [ebp - 0x10]
call fcn.00418f50
mov dword [ebp - 4], 0
mov dword [ebp - 0x154], 0
push 0x96
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00409ed0
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
push str.SELECT_database_name_FROM_msdb.dbo.log_shipping_databases_WHERE_database_name__N_s
lea ecx, [ebp - 0x2164]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, 0x432214
call fcn.004188a0
mov dword [ebp - 0x219c], eax
push 0
lea ecx, [ebp - 0x10]
call fcn.00418fc0
push eax
lea edx, [ebp - 0x2164]
push edx
mov eax, dword [ebp - 0x219c]
push eax
mov ecx, dword [ebp - 0x219c]
mov edx, dword [ecx]
call dword [edx + 0x170]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x41673d
lea ecx, [ebp - 0x10]
call fcn.00418fe0
test eax, eax
jne 0x41673d
lea ecx, [ebp - 0x10]
call fcn.00419000
mov dword [ebp - 0x21a0], eax
lea eax, [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x21a0]
push ecx
mov edx, dword [ebp - 0x21a0]
mov eax, dword [edx]
call dword [eax + 0x2c]
push eax
call fcn.00407110
add esp, 4
test eax, eax
je 0x416761
mov dword [ebp - 0x216c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00418f70
mov eax, dword [ebp - 0x216c]
jmp 0x41698f
lea ecx, [ebp - 0x10]
call fcn.00419020
cmp dword [ebp - 0x154], 0
jne 0x416796
mov dword [ebp - 0x2170], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00418f70
mov eax, dword [ebp - 0x2170]
jmp 0x41698f
cmp dword [ebp - 0x154], 1
jge 0x4167c3
mov dword [ebp - 0x2174], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00418f70
mov eax, dword [ebp - 0x2174]
jmp 0x41698f
push 0x14
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x217c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x217c], 0
je 0x4167f3
mov ecx, dword [ebp - 0x217c]
call fcn.00415ad0
mov dword [ebp - 0x21a4], eax
jmp 0x4167fd
mov dword [ebp - 0x21a4], 0
mov ecx, dword [ebp - 0x21a4]
mov dword [ebp - 0x2178], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2178]
mov dword [ebp - 0x14], edx
push 0x432214
mov ecx, dword [ebp - 0x14]
call fcn.00415c70
movzx eax, al
test eax, eax
je 0x416839
mov ecx, dword [ebp - 0x14]
call fcn.00416080
movzx ecx, al
test ecx, ecx
jne 0x4168a1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2184], edx
mov eax, dword [ebp - 0x2184]
mov dword [ebp - 0x2180], eax
cmp dword [ebp - 0x2180], 0
je 0x41686c
push 1
mov ecx, dword [ebp - 0x2180]
call fcn.004180c0
mov dword [ebp - 0x21a8], eax
jmp 0x416876
mov dword [ebp - 0x21a8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2188], 0xfffffffd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00418f70
mov eax, dword [ebp - 0x2188]
jmp 0x41698f
push 0x10
push 0
lea ecx, [ebp - 0x164]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
lea edx, [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x2168]
call fcn.00417ae0
mov byte [ebp - 4], 2
mov ecx, 0x432214
call fcn.004188a0
mov dword [ebp - 0x21ac], eax
lea ecx, [ebp - 0x2168]
call fcn.00417b90
push eax
mov eax, dword [ebp - 0x21ac]
push eax
mov ecx, dword [ebp - 0x21ac]
mov edx, dword [ecx]
call dword [edx + 0x8c]
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2168]
call fcn.00417b50
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004161d0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2190], eax
mov ecx, dword [ebp - 0x2190]
mov dword [ebp - 0x218c], ecx
cmp dword [ebp - 0x218c], 0
je 0x416957
push 1
mov ecx, dword [ebp - 0x218c]
call fcn.004180c0
mov dword [ebp - 0x21b0], eax
jmp 0x416961
mov dword [ebp - 0x21b0], 0
mov dword [ebp - 0x2194], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2168]
call fcn.00417b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00418f70
mov eax, dword [ebp - 0x2194]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x18]
call fcn.00419641
mov esp, ebp
pop ebp
ret