Function at 0x4256b0
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x3d18
call fcn.00434e00
mov eax, dword [0x44d558]
mov dword [ebp - 8], eax
push esi
push edi
mov ecx, 0xa
mov esi, str.LoadMSXUploadOpCache
lea edi, [ebp - 0x30e4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0x30b8], 0
mov ecx, 0xcb
xor eax, eax
lea edi, [ebp - 0x30b6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0xe18], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xe16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x3d08], 0
mov ecx, 0x16
xor eax, eax
lea edi, [ebp - 0x3d04]
rep stosd dword es:[edi], eax
mov word [ebp - 0xa18], 0
mov ecx, 0x283
xor eax, eax
lea edi, [ebp - 0xa16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x1618], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1616]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x1e18], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1e16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x2d80], 0
mov ecx, 0xe7
xor eax, eax
lea edi, [ebp - 0x2d7c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x29e0], 0
mov ecx, 0x2ef
xor eax, eax
lea edi, [ebp - 0x29dc]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3ca8], 0
mov ecx, 0x2ef
xor eax, eax
lea edi, [ebp - 0x3ca4]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2d84], 0
mov dword [ebp - 0x1e1c], 0
mov dword [ebp - 0x30e8], 0
lea eax, [ebp - 0xa18]
mov dword [ebp - 0x3d00], eax
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
call fcn.004327c0
add esp, 4
mov edx, dword [ebp + 8]
add edx, 0x8c
push edx
call fcn.004327c0
add esp, 4
mov eax, dword [ebp + 8]
add eax, 0x224
push eax
call fcn.004327c0
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 0x264
push ecx
call fcn.004327c0
add esp, 4
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x4c]
test eax, eax
je 0x425884
push 0x330
lea ecx, [ebp - 0x30b8]
push ecx
push 0x4466a8
push 0x4466b0
mov edx, dword [ebp + 8]
add edx, 0x4c
push edx
call fcn.004321e0
add esp, 0x14
push 0x20
lea eax, [ebp - 0x30b8]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4c4]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x8c]
test ecx, ecx
je 0x4258da
push 0x330
lea edx, [ebp - 0x30b8]
push edx
push 0x4466b4
push 0x4466bc
mov eax, dword [ebp + 8]
add eax, 0x8c
push eax
call fcn.004321e0
add esp, 0x14
push 0xcc
lea ecx, [ebp - 0x30b8]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x8c
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4c4]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x224]
test edx, edx
je 0x42592e
push 0x330
lea eax, [ebp - 0x30b8]
push eax
push 0x4466c0
push 0x4466c8
mov ecx, dword [ebp + 8]
add ecx, 0x224
push ecx
call fcn.004321e0
add esp, 0x14
push 0x20
lea edx, [ebp - 0x30b8]
push edx
mov eax, dword [ebp + 8]
add eax, 0x224
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4c4]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x264]
test eax, eax
je 0x425986
push 0x330
lea ecx, [ebp - 0x30b8]
push ecx
push 0x4466cc
push 0x4466d4
mov edx, dword [ebp + 8]
add edx, 0x264
push edx
call fcn.004321e0
add esp, 0x14
push 0x84
lea eax, [ebp - 0x30b8]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x264
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4c4]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4466d8
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
lea eax, [ebp - 0x3ca8]
push eax
call fcn.00425f60
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4259b7
jmp 0x425eec
push str.xp_msx_enlist
lea ecx, [ebp - 0x29e0]
push ecx
call fcn.004080a0
add esp, 8
push 0
push 1
lea edx, [ebp - 0x29e0]
push edx
call fcn.00408190
add esp, 0xc
mov dword [ebp - 0x2d84], eax
cmp dword [ebp - 0x2d84], 0
jne 0x425a0c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x119
mov edx, dword [0x44e620]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
jmp 0x425eec
lea eax, [ebp - 0x3d08]
push eax
lea ecx, [ebp - 0x29e0]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLSetUserData]
add esp, 8
lea edx, [ebp - 0x3d08]
push edx
lea eax, [ebp - 0x3ca8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLSetUserData]
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x425a4e
mov edx, dword [ebp + 8]
cmp dword [edx], 2
jne 0x425d29
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x425a78
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
mov edx, dword [ebp + 8]
add edx, 0x264
push edx
push 0x138
push 0
push 2
call fcn.0041d760
add esp, 0x14
lea eax, [ebp - 0x3d0c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2d80]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x3ca8]
push edx
call fcn.00429620
add esp, 0x18
test eax, eax
jne 0x425aaa
jmp 0x425eec
cmp dword [ebp - 0x3d0c], 0
jne 0x425b00
push 0x200
lea eax, [ebp - 0xe18]
push eax
push 0x12c
mov ecx, dword [0x44e620]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x446730
lea edx, [ebp - 0xe18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2 - 2], 0
jmp 0x425eec
movzx ecx, word [ebp - 0x2c6c]
test ecx, ecx
je 0x425b4b
push 0x330
lea edx, [ebp - 0x30b8]
push edx
push 0x446748
push 0x446750
lea eax, [ebp - 0x2c6c]
push eax
call fcn.004321e0
add esp, 0x14
push 0x68
lea ecx, [ebp - 0x30b8]
push ecx
lea edx, [ebp - 0x2c6c]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4c4]
movzx ecx, word [ebp - 0x2b9c]
test ecx, ecx
je 0x425b96
push 0x330
lea edx, [ebp - 0x30b8]
push edx
push 0x446754
push 0x44675c
lea eax, [ebp - 0x2b9c]
push eax
call fcn.004321e0
add esp, 0x14
push 0x68
lea ecx, [ebp - 0x30b8]
push ecx
lea edx, [ebp - 0x2b9c]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4c4]
movzx ecx, word [ebp - 0x2acc]
test ecx, ecx
je 0x425be1
push 0x330
lea edx, [ebp - 0x30b8]
push edx
push 0x446760
push 0x446768
lea eax, [ebp - 0x2acc]
push eax
call fcn.004321e0
add esp, 0x14
push 0x68
lea ecx, [ebp - 0x30b8]
push ecx
lea edx, [ebp - 0x2acc]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4c4]
lea ecx, [ebp - 0x2acc]
push ecx
mov edx, dword [ebp - 0x29e4]
push edx
mov eax, dword [ebp - 0x29e8]
push eax
mov ecx, dword [ebp - 0x29ec]
push ecx
mov edx, dword [ebp - 0x29f0]
push edx
mov eax, dword [ebp - 0x29f4]
push eax
mov ecx, dword [ebp - 0x29f8]
push ecx
mov edx, dword [ebp - 0x29fc]
push edx
lea eax, [ebp - 0x2b9c]
push eax
lea ecx, [ebp - 0x2c6c]
push ecx
mov edx, dword [ebp - 0x2c74]
push edx
push 0x44676c
push 0x446784
push 0x44679c
push str.IF__NOT_EXISTS__SELECT__FROM_msdb.dbo.sysoperators_WHERE__name___s____BEGIN_EXECUTE_msdb.dbo.sp_add_operator__name___s_END_EXECUTE_msdb.dbo.sp_update_operator__name___s___enabled___ld___email_address___s___pager_address___s___weekday_pager_start_time___ld___weekday_pager_end_time___ld___saturday_pager_start_time___ld___saturday_pager_end_time___ld___sunday_pager_start_time___ld___sunday_pager_end_time___ld___pager_days___ld___netsend_address___s
push 0x3ff
lea eax, [ebp - 0x1618]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x44
lea ecx, [ebp - 0x1618]
push ecx
lea edx, [ebp - 0x29e0]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLPurgeExec]
add esp, 8
test eax, eax
je 0x425c81
mov dword [ebp - 0x1e1c], 1
jmp 0x425d29
push 0x400
lea eax, [ebp - 0x1e18]
push eax
lea ecx, [ebp - 0x29e0]
push ecx
call fcn.004262c0
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x425cae
mov dword [ebp - 0x30e8], 1
mov word [ebp - 0xe18], 0
push 0x200
lea eax, [ebp - 0xe18]
push eax
push 0x1a1
mov ecx, dword [0x44e620]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
movzx edx, word [ebp - 0x1e18]
test edx, edx
je 0x425cee
lea eax, [ebp - 0x1e18]
mov dword [ebp - 0x3d10], eax
jmp 0x425cf8
mov dword [ebp - 0x3d10], str._Unknown_
mov ecx, dword [ebp - 0x3d10]
push ecx
push 0x446b88
lea edx, [ebp - 0xe18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x14
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2 - 2], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 1
je 0x425d3e
cmp dword [ebp - 0x30e8], 0
je 0x425e52
cmp dword [ebp - 0x30e8], 0
jne 0x425d68
mov edx, dword [ebp + 8]
add edx, 0x4c
push edx
mov eax, dword [ebp + 8]
add eax, 0x264
push eax
push 0x139
push 0
push 2
call fcn.0041d760
add esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.EXECUTE_msdb.dbo.sp_enlist_tsx__Action___ld___ServerName___s___Location__null___TimeZoneAdjustment__null___LocalTime__null___NTUserName__null___PollInterval__null
push 0x3ff
lea ecx, [ebp - 0x1618]
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x14
mov word [ebp - 0xe1a], 0
lea edx, [ebp - 0x1618]
push edx
lea eax, [ebp - 0x3ca8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLPurgeExec]
add esp, 8
test eax, eax
je 0x425ddb
push 0
push 0x44f200
call fcn.004316b0
add esp, 8
push 0x444208
call fcn.004334e0
add esp, 4
mov dword [ebp - 0x1e1c], 1
jmp 0x425e52
cmp dword [ebp - 0x30e8], 0
jne 0x425e52
push 0x400
lea ecx, [ebp - 0x1e18]
push ecx
lea edx, [ebp - 0x3ca8]
push edx
call fcn.004262c0
add esp, 0xc
mov word [ebp - 0xe18], 0
push 0x200
lea eax, [ebp - 0xe18]
push eax
push 0x1a2
mov ecx, dword [0x44e620]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
lea edx, [ebp - 0x1e18]
push edx
lea eax, [ebp - 0xe18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2 - 2], 0
cmp dword [ebp - 0x1e1c], 0
je 0x425eec
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x425e73
mov dword [ebp - 0x3d14], 0x13b
jmp 0x425eae
mov eax, dword [ebp + 8]
cmp dword [eax], 1
jne 0x425e87
mov dword [ebp - 0x3d18], 0x13c
jmp 0x425ea2
mov ecx, dword [ebp + 8]
xor edx, edx
cmp dword [ecx], 2
setne dl
dec edx
and edx, 0x126
add edx, 0x17
mov dword [ebp - 0x3d18], edx
mov eax, dword [ebp - 0x3d18]
mov dword [ebp - 0x3d14], eax
push 0x200
lea ecx, [ebp - 0xe18]
push ecx
mov edx, dword [ebp - 0x3d14]
push edx
mov eax, dword [0x44e620]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
lea edx, [ebp - 0xe18]
push edx
push 0x13a
push 0
push 4
call fcn.0041d760
add esp, 0x14
cmp dword [ebp - 0x2d84], 0
je 0x425f17
push 0
lea eax, [ebp - 0x29e0]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLSetUserData]
add esp, 8
lea ecx, [ebp - 0x29e0]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
cmp dword [ebp - 4], 0
je 0x425f3f
push 0
lea edx, [ebp - 0x3ca8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLSetUserData]
add esp, 8
lea eax, [ebp - 0x3ca8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
mov eax, dword [ebp - 0x1e1c]
mov ecx, dword [ebp - 8]
call fcn.00434de1
pop edi
pop esi
mov esp, ebp
pop ebp
ret