Function at 0x41aa10
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x15ac
call fcn.00434e00
mov eax, dword [0x44d558]
mov dword [ebp - 4], eax
push edi
mov ax, word [0x44dd28]
mov word [ebp - 0x1180], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x117e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44dd30]
mov word [ebp - 0x1388], cx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1386]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44dd38]
mov word [ebp - 0xc60], dx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xc5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44dd40]
mov word [ebp - 0xe70], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xe6e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44dd48]
mov word [ebp - 0xf78], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xf76]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44dd50]
mov word [ebp - 0xa58], dx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xa56]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44dd58]
mov word [ebp - 0x408], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x406]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44dd60]
mov word [ebp - 0x15a0], cx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x159e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1394], 0
mov dword [ebp - 0x1390], 0
mov dword [ebp - 0x15a4], 0
mov dword [ebp - 0xe74], 0
mov dword [ebp - 0x138c], 0
mov dword [ebp - 0xc64], 0
movzx edx, word [0x44f520]
test edx, edx
je 0x41aef6
push 0x44f520
lea eax, [ebp - 0x1180]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0x2e
lea ecx, [ebp - 0x1180]
push ecx
call dword [sym.imp.MSVCR71.dll_wcschr]
add esp, 8
test eax, eax
je 0x41ac48
lea edx, [ebp - 0x1180]
push edx
call dword [sym.imp.MSVCR71.dll__wcsrev]
add esp, 4
mov dword [ebp - 0xc64], 0
mov eax, dword [ebp - 0xc64]
movzx ecx, word [ebp + eax*2 - 0x1180]
cmp ecx, 0x2e
je 0x41abf1
mov edx, dword [ebp - 0xc64]
mov eax, dword [ebp - 0xc64]
mov cx, word [ebp + eax*2 - 0x1180]
mov word [ebp + edx*2 - 0xf78], cx
mov edx, dword [ebp - 0xc64]
add edx, 1
mov dword [ebp - 0xc64], edx
jmp 0x41abb1
lea eax, [ebp - 0xf78]
push eax
call dword [sym.imp.MSVCR71.dll__wcsrev]
add esp, 4
push 0x2e
lea ecx, [ebp - 0x1180]
push ecx
call dword [sym.imp.MSVCR71.dll_wcschr]
add esp, 8
add eax, 2
push eax
lea edx, [ebp - 0x1388]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x1388]
push eax
call dword [sym.imp.MSVCR71.dll__wcsrev]
add esp, 4
push eax
lea ecx, [ebp - 0x1180]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea edx, [ebp - 0x1180]
push edx
push str._s.9
lea eax, [ebp - 0xe70]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0xc
lea edx, [ebp - 0xe70]
push edx
call dword [sym.imp.SQLUNIRL.dll__DeleteFile_4]
test eax, eax
jne 0x41acf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1390], eax
cmp dword [ebp - 0x1390], 2
je 0x41acf0
cmp dword [ebp - 0x1390], 3
je 0x41acf0
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0xf5
mov ecx, dword [0x44e620]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x400
lea edx, [ebp - 0xa58]
push edx
mov eax, dword [ebp - 0x1390]
push eax
call fcn.00432600
add esp, 0xc
lea ecx, [ebp - 0xa58]
push ecx
lea edx, [ebp - 0xe70]
push edx
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 0xc
mov dword [ebp - 0x138c], 0x38
jmp 0x41ad0b
mov ecx, dword [ebp - 0x138c]
sub ecx, 1
mov dword [ebp - 0x138c], ecx
cmp dword [ebp - 0x138c], 0x30
jle 0x41ae13
mov edx, dword [ebp - 0x138c]
push edx
lea eax, [ebp - 0x1180]
push eax
push 0x4436f4
lea ecx, [ebp - 0xe70]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4cc]
add esp, 0x10
mov eax, dword [ebp - 0x138c]
add eax, 1
push eax
lea ecx, [ebp - 0x1180]
push ecx
push str._s._c
lea edx, [ebp - 0xc60]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0x10
lea ecx, [ebp - 0xc60]
push ecx
lea edx, [ebp - 0xe70]
push edx
call dword [sym.imp.SQLUNIRL.dll__trename]
add esp, 8
mov dword [ebp - 0xe74], eax
cmp dword [ebp - 0xe74], 0
je 0x41ae0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1390], eax
cmp dword [ebp - 0x1390], 2
je 0x41ae0e
cmp dword [ebp - 0x1390], 3
je 0x41ae0e
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0xf4
mov ecx, dword [0x44e620]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x400
lea edx, [ebp - 0xa58]
push edx
mov eax, dword [ebp - 0x1390]
push eax
call fcn.00432600
add esp, 0xc
lea ecx, [ebp - 0xa58]
push ecx
lea edx, [ebp - 0xc60]
push edx
lea eax, [ebp - 0xe70]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 0x10
jmp 0x41acfc
lea edx, [ebp - 0xf78]
push edx
lea eax, [ebp - 0x1180]
push eax
push str._s._s
lea ecx, [ebp - 0xe70]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0x1180]
push eax
push str._s.1
lea ecx, [ebp - 0xc60]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0xc60]
push eax
lea ecx, [ebp - 0xe70]
push ecx
call dword [sym.imp.SQLUNIRL.dll__trename]
add esp, 8
mov dword [ebp - 0xe74], eax
cmp dword [ebp - 0xe74], 0
je 0x41aef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1390], eax
cmp dword [ebp - 0x1390], 2
je 0x41aef6
push 0x200
lea edx, [ebp - 0x408]
push edx
push 0xf4
mov eax, dword [0x44e620]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x400
lea ecx, [ebp - 0xa58]
push ecx
mov edx, dword [ebp - 0x1390]
push edx
call fcn.00432600
add esp, 0xc
lea eax, [ebp - 0xa58]
push eax
lea ecx, [ebp - 0xc60]
push ecx
lea edx, [ebp - 0xe70]
push edx
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 0x10
push 0x443724
push 0x450878
push 0x443728
lea ecx, [ebp - 0xe70]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0x658]
push eax
lea ecx, [ebp - 0xe70]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x170]
mov dword [ebp - 0x15a4], eax
cmp dword [ebp - 0x15a4], 0xffffffff
je 0x41afa2
lea eax, [ebp - 0x62c]
push eax
push 0x450878
push 0x443754
lea ecx, [ebp - 0xe70]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0xe70]
push eax
call dword [sym.imp.SQLUNIRL.dll__DeleteFile_4]
lea ecx, [ebp - 0x658]
push ecx
mov edx, dword [ebp - 0x15a4]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x174]
test eax, eax
jne 0x41af44
mov ecx, dword [ebp - 0x15a4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx edx, word [0x44f520]
test edx, edx
je 0x41afe8
lea eax, [ebp - 0x1390]
push eax
call fcn.0041b240
add esp, 4
mov dword [ebp - 0x1394], eax
cmp dword [ebp - 0x1394], 0
jne 0x41afe6
push 0x400
lea ecx, [ebp - 0xa58]
push ecx
mov edx, dword [ebp - 0x1390]
push edx
call fcn.00432600
add esp, 0xc
jmp 0x41aff2
mov dword [ebp - 0x1394], 1
cmp dword [0x44de90], 0
jne 0x41b099
push 0x443760
call fcn.00432050
add esp, 4
test eax, eax
je 0x41b059
push 0x44e2f8
push 0
mov eax, dword [0x450d4c]
call dword [eax + 0x3c4]
mov dword [0x450d48], eax
cmp dword [0x450d48], 0
jne 0x41b057
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1390], eax
push 0x400
lea ecx, [ebp - 0xa58]
push ecx
mov edx, dword [ebp - 0x1390]
push edx
call fcn.00432600
add esp, 0xc
jmp 0x41b099
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0x174
mov ecx, dword [0x44e620]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push str.EventLog
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0xa58]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0xc
push 0
push 0x443788
push 0
call fcn.00406cf0
add esp, 0xc
mov dword [0x450d44], eax
cmp dword [0x450d44], 0
jne 0x41b11e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1390], eax
push 0x400
lea edx, [ebp - 0xa58]
push edx
mov eax, dword [ebp - 0x1390]
push eax
call fcn.00432600
add esp, 0xc
push 0x4437a4
lea ecx, [ebp - 0xa58]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
push str.SQLAGENT.DLL
lea edx, [ebp - 0xa58]
push edx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
push 0x4437c8
lea eax, [ebp - 0xa58]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp dword [ebp + 8], 0
je 0x41b143
movzx ecx, word [ebp - 0xa58]
test ecx, ecx
je 0x41b143
lea edx, [ebp - 0xa58]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
cmp dword [0x44de90], 0
je 0x41b158
mov dword [ebp - 0x15a8], 1
jmp 0x41b16a
xor ecx, ecx
cmp dword [0x450d48], 0
setne cl
mov dword [ebp - 0x15a8], ecx
cmp dword [ebp - 0x15a8], 0
je 0x41b191
cmp dword [0x450d44], 0
je 0x41b191
cmp dword [ebp - 0x1394], 0
je 0x41b191
mov dword [ebp - 0x15ac], 1
jmp 0x41b19b
mov dword [ebp - 0x15ac], 0
mov eax, dword [ebp - 0x15ac]
mov ecx, dword [ebp - 4]
call fcn.00434de1
pop edi
mov esp, ebp
pop ebp
ret