Function at 0x40ed40
Capabilities:
Get common file path
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3d0
mov eax, dword [0x462454]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x1cc
push 0
lea eax, [ebp - 0x1e8]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x1cc
push 0
lea ecx, [ebp - 0x3c8]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40edd8
cmp dword [ebp + 0xc], 0
je 0x40edd8
cmp dword [ebp + 0x10], 0
je 0x40edd8
cmp dword [ebp + 0x14], 0
jne 0x40eddf
xor eax, eax
jmp 0x40f01f
push 0x1b8
lea edx, [ebp - 0x1e8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40ee0b
push 0x45557c
lea eax, [ebp - 0x1e8]
push eax
call sub.MSVCR71.dll_strcat
add esp, 8
jmp 0x40ee12
mov byte [ebp - 0x1e8], 0
lea ecx, [ebp - 0x1e8]
push ecx
lea edx, [ebp - 0x3c8]
push edx
call sub.MSVCR71.dll_strcpy
add esp, 8
push str.odbc32.dll
lea eax, [ebp - 0x3c8]
push eax
call sub.MSVCR71.dll_strcat
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x3c8]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40eef8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40eef8
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x3c8]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40eee4
mov dword [ebp - 0x3cc], 0
lea eax, [ebp - 0x3cc]
push eax
lea ecx, [ebp - 0x1f0]
push ecx
push 0x45558c
mov edx, dword [ebp - 8]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40eee4
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1f4], ecx
mov edx, dword [ebp - 0x1f0]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov dword [ebp - 8], 0
lea edx, [ebp - 0x1e8]
push edx
lea eax, [ebp - 0x3c8]
push eax
call sub.MSVCR71.dll_strcpy
add esp, 8
push str.sqlsrv32.dll
lea ecx, [ebp - 0x3c8]
push ecx
call sub.MSVCR71.dll_strcat
add esp, 8
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x3c8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40efde
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40efde
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
lea eax, [ebp - 0x3c8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40efca
mov dword [ebp - 0x3d0], 0
lea ecx, [ebp - 0x3d0]
push ecx
lea edx, [ebp - 0x1f0]
push edx
push 0x4555a0
mov eax, dword [ebp - 8]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40efca
mov ecx, dword [ebp - 0x1f0]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x1ec], edx
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0x1ec], 0
je 0x40eff0
cmp dword [ebp - 0x1f4], 0
jne 0x40eff4
xor eax, eax
jmp 0x40f01f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1f4]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1ec]
mov dword [ecx], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, 1
mov ecx, dword [ebp - 0x18]
call fcn.0044fa3b
mov esp, ebp
pop ebp
ret