Function at 0x419480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1598
call fcn.004321a0
push edi
mov ax, word [0x44af28]
mov word [ebp - 0x1590], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x158e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44af30]
mov word [ebp - 0x418], cx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44af38]
mov word [ebp - 0x1388], dx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1386]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44af40]
mov word [ebp - 0x210], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44af48]
mov word [ebp - 0xd7c], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xd7a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44af50]
mov word [ebp - 0x117c], dx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x117a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44af58]
mov word [ebp - 0x81c], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x81a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44af60]
mov word [ebp - 0xc74], cx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xc72]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc7c], 0
mov dword [ebp - 0xc78], 0
mov dword [ebp - 0x1180], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 8], 0
xor edx, edx
mov dx, word [0x44c720]
test edx, edx
je 0x419948
push 0x44c720
lea eax, [ebp - 0x1590]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push 0x2e
lea ecx, [ebp - 0x1590]
push ecx
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x41969a
lea edx, [ebp - 0x1590]
push edx
call dword [sym.imp.MSVCRT.dll__wcsrev]
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0x1590]
cmp ecx, 0x2e
je 0x419643
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov cx, word [ebp + eax*2 - 0x1590]
mov word [ebp + edx*2 - 0xd7c], cx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x419610
lea eax, [ebp - 0xd7c]
push eax
call dword [sym.imp.MSVCRT.dll__wcsrev]
add esp, 4
push 0x2e
lea ecx, [ebp - 0x1590]
push ecx
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
add eax, 2
push eax
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.MSVCRT.dll__wcsrev]
add esp, 4
push eax
lea ecx, [ebp - 0x1590]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea edx, [ebp - 0x1590]
push edx
push str._s.9
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [0x44df4c]
call dword [ecx + 0x4cc]
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SQLUNIRL.dll__DeleteFile_4]
test eax, eax
jne 0x419742
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc7c], eax
cmp dword [ebp - 0xc7c], 2
je 0x419742
cmp dword [ebp - 0xc7c], 3
je 0x419742
push 0x200
lea eax, [ebp - 0x81c]
push eax
push 0xf5
mov ecx, dword [0x44b81c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x400
lea edx, [ebp - 0x117c]
push edx
mov eax, dword [ebp - 0xc7c]
push eax
call fcn.0043002e
add esp, 0xc
lea ecx, [ebp - 0x117c]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 0xc
mov dword [ebp - 0x41c], 0x38
jmp 0x41975d
mov ecx, dword [ebp - 0x41c]
sub ecx, 1
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x41c], 0x30
jle 0x419865
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x1590]
push eax
push 0x4406a4
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0x10
mov eax, dword [ebp - 0x41c]
add eax, 1
push eax
lea ecx, [ebp - 0x1590]
push ecx
push str._s._c
lea edx, [ebp - 0x1388]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4cc]
add esp, 0x10
lea ecx, [ebp - 0x1388]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SQLUNIRL.dll__trename]
add esp, 8
mov dword [ebp - 0x1180], eax
cmp dword [ebp - 0x1180], 0
je 0x419860
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc7c], eax
cmp dword [ebp - 0xc7c], 2
je 0x419860
cmp dword [ebp - 0xc7c], 3
je 0x419860
push 0x200
lea eax, [ebp - 0x81c]
push eax
push 0xf4
mov ecx, dword [0x44b81c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x400
lea edx, [ebp - 0x117c]
push edx
mov eax, dword [ebp - 0xc7c]
push eax
call fcn.0043002e
add esp, 0xc
lea ecx, [ebp - 0x117c]
push ecx
lea edx, [ebp - 0x1388]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x81c]
push ecx
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 0x10
jmp 0x41974e
lea edx, [ebp - 0xd7c]
push edx
lea eax, [ebp - 0x1590]
push eax
push str._s._s
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0x1590]
push eax
push str._s.1
lea ecx, [ebp - 0x1388]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x1388]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SQLUNIRL.dll__trename]
add esp, 8
mov dword [ebp - 0x1180], eax
cmp dword [ebp - 0x1180], 0
je 0x419948
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc7c], eax
cmp dword [ebp - 0xc7c], 2
je 0x419948
push 0x200
lea edx, [ebp - 0x81c]
push edx
push 0xf4
mov eax, dword [0x44b81c]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x400
lea ecx, [ebp - 0x117c]
push ecx
mov edx, dword [ebp - 0xc7c]
push edx
call fcn.0043002e
add esp, 0xc
lea eax, [ebp - 0x117c]
push eax
lea ecx, [ebp - 0x1388]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 0x10
push 0x4406d4
push 0x44da74
push 0x4406d8
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0xa6c]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x170]
mov dword [ebp - 0xc78], eax
cmp dword [ebp - 0xc78], 0xffffffff
je 0x4199f4
lea eax, [ebp - 0xa40]
push eax
push 0x44da74
push 0x440704
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SQLUNIRL.dll__DeleteFile_4]
lea ecx, [ebp - 0xa6c]
push ecx
mov edx, dword [ebp - 0xc78]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x174]
test eax, eax
jne 0x419996
mov ecx, dword [ebp - 0xc78]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov dx, word [0x44c720]
test edx, edx
je 0x419a36
lea eax, [ebp - 0xc7c]
push eax
call fcn.00419c65
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x419a34
push 0x400
lea ecx, [ebp - 0x117c]
push ecx
mov edx, dword [ebp - 0xc7c]
push edx
call fcn.0043002e
add esp, 0xc
jmp 0x419a3d
mov dword [ebp - 4], 1
cmp dword [0x44b08c], 0
jne 0x419ae4
push 0x440710
call fcn.0042fae4
add esp, 4
test eax, eax
je 0x419aa4
push 0x44b4f4
push 0
mov eax, dword [0x44df4c]
call dword [eax + 0x3c4]
mov dword [0x44df48], eax
cmp dword [0x44df48], 0
jne 0x419aa2
push 0x400
lea ecx, [ebp - 0x117c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc7c], eax
mov edx, dword [ebp - 0xc7c]
push edx
call fcn.0043002e
add esp, 0xc
jmp 0x419ae4
push 0x200
lea eax, [ebp - 0x81c]
push eax
push 0x174
mov ecx, dword [0x44b81c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push str.EventLog
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x117c]
push eax
mov ecx, dword [0x44df4c]
call dword [ecx + 0x4cc]
add esp, 0xc
push 0
push 0x440738
push 0
call fcn.004066c0
add esp, 0xc
mov dword [0x44df44], eax
cmp dword [0x44df44], 0
jne 0x419b69
push 0x400
lea edx, [ebp - 0x117c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc7c], eax
mov eax, dword [ebp - 0xc7c]
push eax
call fcn.0043002e
add esp, 0xc
push 0x440754
lea ecx, [ebp - 0x117c]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push str.SQLAGENT.DLL
lea edx, [ebp - 0x117c]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0x440778
lea eax, [ebp - 0x117c]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
cmp dword [ebp + 8], 0
je 0x419b93
mov ecx, dword [ebp - 0x117c]
and ecx, 0xffff
test ecx, ecx
je 0x419b93
lea edx, [ebp - 0x117c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
cmp dword [0x44b08c], 0
je 0x419ba8
mov dword [ebp - 0x1594], 1
jmp 0x419bba
xor ecx, ecx
cmp dword [0x44df48], 0
setne cl
mov dword [ebp - 0x1594], ecx
cmp dword [ebp - 0x1594], 0
je 0x419bde
cmp dword [0x44df44], 0
je 0x419bde
cmp dword [ebp - 4], 0
je 0x419bde
mov dword [ebp - 0x1598], 1
jmp 0x419be8
mov dword [ebp - 0x1598], 0
mov eax, dword [ebp - 0x1598]
pop edi
mov esp, ebp
pop ebp
ret