Function at 0x419030
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1598
call fcn.00430730
push edi
mov ax, word [0x4489b0]
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 [0x4489b8]
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 [0x4489c0]
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 [0x4489c8]
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 [0x4489d0]
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 [0x4489d8]
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 [0x4489e0]
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 [0x4489e8]
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 [0x44a17c]
test edx, edx
je 0x4194f8
push 0x44a17c
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 0x41924a
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 0x4191f3
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 0x4191c0
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 [0x449ba0]
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 0x4192f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc7c], eax
cmp dword [ebp - 0xc7c], 2
je 0x4192f2
cmp dword [ebp - 0xc7c], 3
je 0x4192f2
push 0x200
lea eax, [ebp - 0x81c]
push eax
push 0xf5
mov ecx, dword [0x4492ac]
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.0042f8f7
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 0x41930d
mov ecx, dword [ebp - 0x41c]
sub ecx, 1
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x41c], 0x30
jle 0x419415
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x1590]
push eax
push 0x43d874
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [0x449ba0]
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 [0x449ba0]
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 0x419410
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc7c], eax
cmp dword [ebp - 0xc7c], 2
je 0x419410
cmp dword [ebp - 0xc7c], 3
je 0x419410
push 0x200
lea eax, [ebp - 0x81c]
push eax
push 0xf4
mov ecx, dword [0x4492ac]
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.0042f8f7
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 0x4192fe
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 [0x449ba0]
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 [0x449ba0]
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 0x4194f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc7c], eax
cmp dword [ebp - 0xc7c], 2
je 0x4194f8
push 0x200
lea edx, [ebp - 0x81c]
push edx
push 0xf4
mov eax, dword [0x4492ac]
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.0042f8f7
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 0x43d8a4
push 0x44b4d0
push 0x43d8a8
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [0x449ba0]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0xa6c]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [0x449ba0]
call dword [edx + 0x170]
mov dword [ebp - 0xc78], eax
cmp dword [ebp - 0xc78], 0xffffffff
je 0x4195a4
lea eax, [ebp - 0xa40]
push eax
push 0x44b4d0
push 0x43d8d4
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [0x449ba0]
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 [0x449ba0]
call dword [eax + 0x174]
test eax, eax
jne 0x419546
mov ecx, dword [ebp - 0xc78]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov dx, word [0x44a17c]
test edx, edx
je 0x4195e6
lea eax, [ebp - 0xc7c]
push eax
call fcn.00419809
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4195e4
push 0x400
lea ecx, [ebp - 0x117c]
push ecx
mov edx, dword [ebp - 0xc7c]
push edx
call fcn.0042f8f7
add esp, 0xc
jmp 0x4195ed
mov dword [ebp - 4], 1
cmp dword [0x448b1c], 0
jne 0x419694
push 0x43d8e0
call fcn.0042f3c4
add esp, 4
test eax, eax
je 0x419654
push 0x448f84
push 0
mov eax, dword [0x449ba0]
call dword [eax + 0x3c4]
mov dword [0x44b988], eax
cmp dword [0x44b988], 0
jne 0x419652
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.0042f8f7
add esp, 0xc
jmp 0x419694
push 0x200
lea eax, [ebp - 0x81c]
push eax
push 0x174
mov ecx, dword [0x4492ac]
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 [0x449ba0]
call dword [ecx + 0x4cc]
add esp, 0xc
push 0x43d908
call dword [sym.imp.SQLUNIRL.dll__LoadLibrary_4]
mov dword [0x44b984], eax
cmp dword [0x44b984], 0
jne 0x419713
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.0042f8f7
add esp, 0xc
push 0x43d924
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 0x43d948
lea eax, [ebp - 0x117c]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
cmp dword [ebp + 8], 0
je 0x41973d
mov ecx, dword [ebp - 0x117c]
and ecx, 0xffff
test ecx, ecx
je 0x41973d
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 [0x448b1c], 0
je 0x419752
mov dword [ebp - 0x1594], 1
jmp 0x41975e
mov ecx, dword [0x44b988]
mov dword [ebp - 0x1594], ecx
cmp dword [ebp - 0x1594], 0
je 0x419782
cmp dword [0x44b984], 0
je 0x419782
cmp dword [ebp - 4], 0
je 0x419782
mov dword [ebp - 0x1598], 1
jmp 0x41978c
mov dword [ebp - 0x1598], 0
mov eax, dword [ebp - 0x1598]
pop edi
mov esp, ebp
pop ebp
ret