Function at 0x423834
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3d08
call fcn.004321a0
push esi
push edi
mov ecx, 0xa
mov esi, str.LoadMSXUploadOpCache
lea edi, [ebp - 0x2cec]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0x24c0], 0
mov ecx, 0xcb
xor eax, eax
lea edi, [ebp - 0x24be]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x30ec], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x30ea]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x3cf8], 0
mov ecx, 0x16
xor eax, eax
lea edi, [ebp - 0x3cf4]
rep stosd dword es:[edi], eax
mov word [ebp - 0x15d0], 0
mov ecx, 0x283
xor eax, eax
lea edi, [ebp - 0x15ce]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x38ec], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x38ea]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x2cc0], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x2cbe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x3c9c], 0
mov ecx, 0xe7
xor eax, eax
lea edi, [ebp - 0x3c98]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xbc0], 0
mov ecx, 0x2ef
xor eax, eax
lea edi, [ebp - 0xbbc]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2190], 0
mov ecx, 0x2ef
xor eax, eax
lea edi, [ebp - 0x218c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x38fc], 0
mov dword [ebp - 0x38f8], 0
mov dword [ebp - 0x38f4], 0
mov dword [ebp - 0x38f0], 0
lea eax, [ebp - 0x15d0]
mov dword [ebp - 0x3cf0], eax
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
call fcn.004301f0
add esp, 4
mov edx, dword [ebp + 8]
add edx, 0x8c
push edx
call fcn.004301f0
add esp, 4
mov eax, dword [ebp + 8]
add eax, 0x224
push eax
call fcn.004301f0
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 0x264
push ecx
call fcn.004301f0
add esp, 4
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x4c]
test eax, eax
je 0x423a03
push 0x330
lea ecx, [ebp - 0x24c0]
push ecx
push 0x44360c
push 0x443614
mov edx, dword [ebp + 8]
add edx, 0x4c
push edx
call fcn.0042fc50
add esp, 0x14
push 0x20
lea eax, [ebp - 0x24c0]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4c4]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x8c]
test ecx, ecx
je 0x423a5b
push 0x330
lea edx, [ebp - 0x24c0]
push edx
push 0x443618
push 0x443620
mov eax, dword [ebp + 8]
add eax, 0x8c
push eax
call fcn.0042fc50
add esp, 0x14
push 0xcc
lea ecx, [ebp - 0x24c0]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x8c
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4c4]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x224]
test edx, edx
je 0x423ab1
push 0x330
lea eax, [ebp - 0x24c0]
push eax
push 0x443624
push 0x44362c
mov ecx, dword [ebp + 8]
add ecx, 0x224
push ecx
call fcn.0042fc50
add esp, 0x14
push 0x20
lea edx, [ebp - 0x24c0]
push edx
mov eax, dword [ebp + 8]
add eax, 0x224
push eax
mov ecx, dword [0x44df4c]
call dword [ecx + 0x4c4]
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x264]
test eax, eax
je 0x423b0b
push 0x330
lea ecx, [ebp - 0x24c0]
push ecx
push 0x443630
push 0x443638
mov edx, dword [ebp + 8]
add edx, 0x264
push edx
call fcn.0042fc50
add esp, 0x14
push 0x84
lea eax, [ebp - 0x24c0]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x264
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4c4]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x44363c
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
lea eax, [ebp - 0x2190]
push eax
call fcn.004240f0
add esp, 0x14
mov dword [ebp - 0x38fc], eax
cmp dword [ebp - 0x38fc], 0
jne 0x423b42
jmp 0x42408e
push str.xp_msx_enlist
lea ecx, [ebp - 0xbc0]
push ecx
call fcn.00407820
add esp, 8
push 0
push 1
lea edx, [ebp - 0xbc0]
push edx
call fcn.004078f6
add esp, 0xc
mov dword [ebp - 0x38f8], eax
cmp dword [ebp - 0x38f8], 0
jne 0x423b97
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x119
mov edx, dword [0x44b81c]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
jmp 0x42408e
lea eax, [ebp - 0x3cf8]
push eax
lea ecx, [ebp - 0xbc0]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLSetUserData]
add esp, 8
lea edx, [ebp - 0x3cf8]
push edx
lea eax, [ebp - 0x2190]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLSetUserData]
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x423bd9
mov edx, dword [ebp + 8]
cmp dword [edx], 2
jne 0x423ec8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x423c03
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.0041bfab
add esp, 0x14
lea eax, [ebp - 0x3cfc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x3c9c]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2190]
push edx
call fcn.00427649
add esp, 0x18
test eax, eax
jne 0x423c35
jmp 0x42408e
cmp dword [ebp - 0x3cfc], 0
jne 0x423c8b
push 0x200
lea eax, [ebp - 0x30ec]
push eax
push 0x12c
mov ecx, dword [0x44b81c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x443694
lea edx, [ebp - 0x30ec]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2 - 2], 0
jmp 0x42408e
mov ecx, dword [ebp - 0x3b88]
and ecx, 0xffff
test ecx, ecx
je 0x423cdb
push 0x330
lea edx, [ebp - 0x24c0]
push edx
push 0x4436ac
push 0x4436b4
lea eax, [ebp - 0x3b88]
push eax
call fcn.0042fc50
add esp, 0x14
push 0x68
lea ecx, [ebp - 0x24c0]
push ecx
lea edx, [ebp - 0x3b88]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4c4]
mov ecx, dword [ebp - 0x3ab8]
and ecx, 0xffff
test ecx, ecx
je 0x423d2b
push 0x330
lea edx, [ebp - 0x24c0]
push edx
push 0x4436b8
push 0x4436c0
lea eax, [ebp - 0x3ab8]
push eax
call fcn.0042fc50
add esp, 0x14
push 0x68
lea ecx, [ebp - 0x24c0]
push ecx
lea edx, [ebp - 0x3ab8]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4c4]
mov ecx, dword [ebp - 0x39e8]
and ecx, 0xffff
test ecx, ecx
je 0x423d7b
push 0x330
lea edx, [ebp - 0x24c0]
push edx
push 0x4436c4
push 0x4436cc
lea eax, [ebp - 0x39e8]
push eax
call fcn.0042fc50
add esp, 0x14
push 0x68
lea ecx, [ebp - 0x24c0]
push ecx
lea edx, [ebp - 0x39e8]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4c4]
lea ecx, [ebp - 0x39e8]
push ecx
mov edx, dword [ebp - 0x3900]
push edx
mov eax, dword [ebp - 0x3904]
push eax
mov ecx, dword [ebp - 0x3908]
push ecx
mov edx, dword [ebp - 0x3910]
push edx
mov eax, dword [ebp - 0x3910]
push eax
mov ecx, dword [ebp - 0x3914]
push ecx
mov edx, dword [ebp - 0x3918]
push edx
lea eax, [ebp - 0x3ab8]
push eax
lea ecx, [ebp - 0x3b88]
push ecx
mov edx, dword [ebp - 0x3b90]
push edx
push 0x4436d0
push 0x4436e8
push 0x443700
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 - 0x38ec]
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x44
lea ecx, [ebp - 0x38ec]
push ecx
lea edx, [ebp - 0xbc0]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLPurgeExec]
add esp, 8
test eax, eax
je 0x423e1b
mov dword [ebp - 0x38f4], 1
jmp 0x423ec8
push 0x400
lea eax, [ebp - 0x2cc0]
push eax
lea ecx, [ebp - 0xbc0]
push ecx
call fcn.00424420
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x423e48
mov dword [ebp - 0x38f0], 1
mov word [ebp - 0x30ec], 0
push 0x200
lea eax, [ebp - 0x30ec]
push eax
push 0x1a1
mov ecx, dword [0x44b81c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov edx, dword [ebp - 0x2cc0]
and edx, 0xffff
test edx, edx
je 0x423e8d
lea eax, [ebp - 0x2cc0]
mov dword [ebp - 0x3d00], eax
jmp 0x423e97
mov dword [ebp - 0x3d00], str._Unknown_
mov ecx, dword [ebp - 0x3d00]
push ecx
push 0x443ae8
lea edx, [ebp - 0x30ec]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.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 0x423edd
cmp dword [ebp - 0x38f0], 0
je 0x423ff1
cmp dword [ebp - 0x38f0], 0
jne 0x423f07
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.0041bfab
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 - 0x38ec]
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov word [ebp - 0x30ee], 0
lea edx, [ebp - 0x38ec]
push edx
lea eax, [ebp - 0x2190]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLPurgeExec]
add esp, 8
test eax, eax
je 0x423f7a
push 0
push 0x44c400
call fcn.0042f200
add esp, 8
push 0x44119c
call fcn.00430e45
add esp, 4
mov dword [ebp - 0x38f4], 1
jmp 0x423ff1
cmp dword [ebp - 0x38f0], 0
jne 0x423ff1
push 0x400
lea ecx, [ebp - 0x2cc0]
push ecx
lea edx, [ebp - 0x2190]
push edx
call fcn.00424420
add esp, 0xc
mov word [ebp - 0x30ec], 0
push 0x200
lea eax, [ebp - 0x30ec]
push eax
push 0x1a2
mov ecx, dword [0x44b81c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
lea edx, [ebp - 0x2cc0]
push edx
lea eax, [ebp - 0x30ec]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.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 - 0x38f4], 0
je 0x42408e
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x424012
mov dword [ebp - 0x3d04], 0x13b
jmp 0x424050
mov eax, dword [ebp + 8]
cmp dword [eax], 1
jne 0x424026
mov dword [ebp - 0x3d08], 0x13c
jmp 0x424044
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
sub edx, 2
neg edx
sbb edx, edx
and edx, 0xfffffeda
add edx, 0x13d
mov dword [ebp - 0x3d08], edx
mov eax, dword [ebp - 0x3d08]
mov dword [ebp - 0x3d04], eax
push 0x200
lea ecx, [ebp - 0x30ec]
push ecx
mov edx, dword [ebp - 0x3d04]
push edx
mov eax, dword [0x44b81c]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
lea edx, [ebp - 0x30ec]
push edx
push 0x13a
push 0
push 4
call fcn.0041bfab
add esp, 0x14
cmp dword [ebp - 0x38f8], 0
je 0x4240b9
push 0
lea eax, [ebp - 0xbc0]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLSetUserData]
add esp, 8
lea ecx, [ebp - 0xbc0]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
cmp dword [ebp - 0x38fc], 0
je 0x4240e4
push 0
lea edx, [ebp - 0x2190]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLSetUserData]
add esp, 8
lea eax, [ebp - 0x2190]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
mov eax, dword [ebp - 0x38f4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret