Function at 0x4c4c7b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5ef278
push 0x5376f0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x35d7c
call fcn.00544890
mov eax, dword [0x5f2e68]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4c525e
call fcn.004c5278
cmp dword [0x5f37e8], ebx
je 0x4c4d17
mov dword [0x5f37e8], ebx
push str.paulaDetectLogon.txt
call fcn.0046b2ee
push eax
mov esi, 0x5b60b0
push esi
push ebx
call fcn.004ce595
add esp, 0x10
mov edi, eax
call fcn.00432263
test eax, eax
je 0x4c4d17
push str.paulaDetectLogon.txt
call fcn.0046b2ee
push eax
push esi
push ebx
call fcn.004ce595
add esp, 0x10
call fcn.004314ff
mov eax, dword [ebp + 8]
cmp dword [eax + 0xd90], 0x2faf2059
jne 0x4c4ed3
push 0x1b
push 7
mov eax, 0x7e7
call fcn.004fca17
pop ecx
pop ecx
test eax, eax
je 0x4c4ed3
push str.10.161.160.194
push ecx
push ebx
push ebx
call fcn.0046b280
add esp, 0xc
push eax
call fcn.00531180
pop ecx
pop ecx
test eax, eax
jne 0x4c4ed3
cmp dword [0x5f37ec], ebx
je 0x4c4ed3
mov dword [ebp - 4], ebx
push ebx
call fcn.00481c76
pop ecx
mov dword [ebp - 0x35d70], eax
cmp eax, ebx
je 0x4c4eaf
mov byte [ebp - 0x824], bl
mov esi, 0x7ff
push esi
push ebx
lea eax, [ebp - 0x823]
push eax
call fcn.005306b0
add esp, 0xc
mov dword [0x5f37ec], ebx
push str.SELECT_name_FROM_sysobjects_WHERE_type__U
push dword [ebp - 0x35d70]
call fcn.00480b29
pop ecx
pop ecx
test eax, eax
je 0x4c4e98
mov dword [ebp - 0x35d74], ebx
push ebx
call fcn.00481c76
pop ecx
mov edi, eax
mov dword [ebp - 0x35d74], ebx
push 1
push 9
push esi
lea eax, [ebp - 0x824]
push eax
push dword [ebp - 0x35d70]
call fcn.00480c24
add esp, 0x14
test eax, eax
je 0x4c4e91
cmp dword [ebp - 0x35d74], 0x4b4
jge 0x4c4e91
lea eax, [ebp - 0x824]
push eax
push str.SELECT__FROM_sys.syscolumns_WHERE_tname___s
push edi
call fcn.00480b29
add esp, 0xc
test eax, eax
je 0x4c4e86
mov dword [ebp - 0x35d78], ebx
mov dword [ebp - 0x35d78], ebx
push 2
push 9
push 0x3ff
lea eax, [ebp - 0xc24]
push eax
push edi
call fcn.00480c24
add esp, 0x14
test eax, eax
je 0x4c4e86
cmp dword [ebp - 0x35d78], 0x309
jge 0x4c4e86
lea eax, [ebp - 0xc24]
push eax
push dword [ebp - 0x35d78]
lea eax, [ebp - 0x824]
push eax
push dword [ebp - 0x35d74]
push str.Table__d__s_:_Column__d:___s_
call fcn.0042bd38
add esp, 0x14
inc dword [ebp - 0x35d78]
jmp 0x4c4e2e
inc dword [ebp - 0x35d74]
jmp 0x4c4dd7
push edi
call fcn.0048073c
pop ecx
push str.:2:__________SELECT_ALL_DESCRIPTIONS_ALL_TABLES_
call fcn.0042bd38
pop ecx
push dword [ebp - 0x35d70]
call fcn.0048073c
pop ecx
mov dword [ebp - 4], 0xfffffffe
jmp 0x4c4ed3
mov eax, dword [ebp + 8]
cmp dword [eax + 0xd90], 0x1dcd69b2
jne 0x4c50af
push str.C:TamsInvDB_
call fcn.00432310
pop ecx
test eax, eax
je 0x4c50af
call fcn.004fa8e4
sub eax, dword [0x701614]
cmp eax, 0x6ddd00
jbe 0x4c50af
mov dword [ebp - 4], 1
push str.10.119.168.10
call fcn.00481c76
pop ecx
mov dword [ebp - 0x35d84], eax
cmp eax, ebx
je 0x4c5076
call fcn.004fb8ff
mov dword [ebp - 0x35d80], 7
mov dword [ebp - 0x35d70], eax
cmp dword [ebp - 0x35d80], ebx
jle 0x4c5069
push ebx
push 1
push eax
mov ecx, dword [ebp - 0x35d84]
call fcn.00488887
add esp, 0xc
mov edi, eax
cmp edi, ebx
je 0x4c5044
push 0x35148
push ebx
lea eax, [ebp - 0x35d6c]
push eax
call fcn.005306b0
add esp, 0xc
mov ecx, edi
call fcn.004694fe
push edi
lea ecx, [ebp - 0x35d6c]
call fcn.0048c879
pop ecx
mov esi, eax
cmp esi, ebx
jle 0x4c5025
mov dword [ebp - 0x35d7c], ebx
mov eax, dword [ebp - 0x35d7c]
cmp eax, dword [ebp - 0x35d68]
jge 0x4c4fce
imul eax, eax, 0x90
mov ecx, dword [ebp - 0x35d6c]
mov dword [ebp + eax - 0x35d0e], ecx
inc dword [ebp - 0x35d7c]
jmp 0x4c4fa5
push str.C:TamsInvDB_
call fcn.00432310
pop ecx
test eax, eax
je 0x4c4fe4
mov esi, str.C:TamsInvDBDEN203.dat
jmp 0x4c4ff3
push str.BranchStore1.tmp
push ebx
call fcn.00493154
pop ecx
pop ecx
mov esi, eax
push ebx
push 0x1dcd69b3
xor eax, eax
mov ecx, esi
lea edx, [ebp - 0x35d6c]
call fcn.0048755b
pop ecx
pop ecx
cmp eax, ebx
jle 0x4c503b
push esi
push eax
push dword [ebp - 0x35d68]
push str.:2:LogInvoiceData___logged__d_invoices_to_archive_total_size__d_at__s
call fcn.0042bd38
add esp, 0x10
jmp 0x4c503b
mov eax, edi
call fcn.00469887
push eax
push esi
push str.:5:GetInvDescSA12___FAILED2___d:_ParseSybaseSA12___FAILED:___s_
call fcn.0042b70b
add esp, 0xc
mov eax, edi
call fcn.004692da
jmp 0x4c504f
push str.:7:GetSybaseSA12___FAILED_
call fcn.0042b70b
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x35d70]
call fcn.004f9beb
pop ecx
pop ecx
dec dword [ebp - 0x35d80]
jmp 0x4c4f3e
push dword [ebp - 0x35d84]
call fcn.0048073c
jmp 0x4c5080
push str.:7:CreateTAMSiiODBC__10.119.168.10____FAILED_
call fcn.0042b70b
pop ecx
mov dword [ebp - 4], 0xfffffffe
jmp 0x4c50a5
call fcn.004fa8e4
mov dword [0x701614], eax
call fcn.004935a3
test eax, eax
jle 0x4c516e
call fcn.004fa8e4
sub eax, dword [0x701618]
cmp eax, 0x36ee80
jbe 0x4c5169
mov word [ebp - 0x35d94], bx
xor eax, eax
lea edi, [ebp - 0x35d92]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x14fe
push str..ServerPAULA.c
lea eax, [ebp - 0x35d94]
push eax
call fcn.004fb92f
add esp, 0xc
movzx esi, word [ebp - 0x35d92]
dec esi
cmp esi, ebx
jg 0x4c510e
push 0xc
pop esi
push 1
mov edi, str.J:InetpubLogFilesPortReporter_
push edi
push str.C:WINDOWS_system32LogFilesPortReporter
call fcn.004306e9
add esp, 0xc
push 1
push edi
push esi
movzx eax, word [ebp - 0x35d94]
sub eax, 0x7d0
push eax
push str.C:WINDOWS_system32LogFilesPortReporter__02d__02d_
push ebx
call fcn.004ce595
add esp, 0x10
push eax
call fcn.004306e9
add esp, 0xc
push 1
push str.J:InetpubLogFilesHTTPERR_
push str.C:WINDOWS_system32LogFilesHTTPERR
call fcn.004306e9
add esp, 0xc
call fcn.004fa8e4
mov dword [0x701618], eax
call fcn.00401db7
mov eax, dword [ebp + 8]
cmp dword [eax + 0xd90], 0x1dcd793a
jne 0x4c525e
push ebx
push ebx
call fcn.0046b280
push eax
mov esi, str.10.164.216.100
call fcn.004ccd4e
add esp, 0xc
test eax, eax
je 0x4c525e
cmp dword [0x5f37f0], ebx
je 0x4c525e
mov dword [0x5f37f0], ebx
push ebx
mov esi, 0x558744
push esi
push str.10.164.216.100hctcpaula_s
push ebx
call fcn.004ce595
add esp, 0xc
push eax
push esi
push ebx
call fcn.00493030
pop ecx
pop ecx
push eax
call fcn.00431386
add esp, 0xc
test eax, eax
jne 0x4c51ee
push str._GetLastError_
push str.:5:FAILED_to_fix_that_Dell___Main_copy_failed:__s
call fcn.0042b70b
pop ecx
jmp 0x4c525d
push str.PAULA_Updt.exe
push 0x5587bc
mov esi, str.10.164.216.100hctcpaula_s_s
push esi
push ebx
call fcn.004ce595
add esp, 0x10
mov edi, eax
call fcn.00432263
test eax, eax
jne 0x4c5253
push ebx
push str.PAULA_Updt.exe
push 0x5587bc
push esi
push ebx
call fcn.004ce595
add esp, 0x10
push eax
push 0x558744
push ebx
call fcn.00493030
pop ecx
pop ecx
push eax
call fcn.00431386
add esp, 0xc
test eax, eax
jne 0x4c5253
push str._GetLastError_
push str.:5:FAILED_to_fix_that_Dell___PaulaLGU_copy_failed:__s
call fcn.0042b70b
pop ecx
pop ecx
push str.:5:That_DELL_has_been_successfully_fixed__
call fcn.0042bd38
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.005317e7
leave
ret