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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1e0], 0
push 0x1cc
push 0
lea eax, [ebp - 0x1cc]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1cc
push 0
lea ecx, [ebp - 0x3b8]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40d848
cmp dword [ebp + 0xc], 0
je 0x40d848
cmp dword [ebp + 0x10], 0
je 0x40d848
cmp dword [ebp + 0x14], 0
jne 0x40d84f
xor eax, eax
jmp 0x40dae9
push 0x1b8
lea edx, [ebp - 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40d87b
push 0x45290c
lea eax, [ebp - 0x1cc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x40d882
mov byte [ebp - 0x1cc], 0
lea ecx, [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x3b8]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push str.odbc32.dll
lea eax, [ebp - 0x3b8]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
lea ecx, [ebp - 0x1e4]
push ecx
lea edx, [ebp - 0x3b8]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
je 0x40d992
mov eax, dword [ebp - 0x1dc]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x40d992
mov ecx, dword [ebp - 0x1dc]
push ecx
push 0
mov edx, dword [ebp - 0x1e0]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x1e0]
push eax
mov ecx, dword [ebp - 0x1dc]
push ecx
push 0
lea edx, [ebp - 0x3b8]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40d978
mov dword [ebp - 0x3bc], 0
lea eax, [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0x1d8]
push ecx
push 0x45291c
mov edx, dword [ebp - 0x1e0]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d978
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1e8], ecx
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1e0]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0x1e0], 0
lea edx, [ebp - 0x1cc]
push edx
lea eax, [ebp - 0x3b8]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push str.sqlsrv32.dll
lea ecx, [ebp - 0x3b8]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x1e4]
push edx
lea eax, [ebp - 0x3b8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
je 0x40daa2
mov ecx, dword [ebp - 0x1dc]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x40daa2
mov edx, dword [ebp - 0x1dc]
push edx
push 0
mov eax, dword [ebp - 0x1e0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x1e0]
push ecx
mov edx, dword [ebp - 0x1dc]
push edx
push 0
lea eax, [ebp - 0x3b8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40da88
mov dword [ebp - 0x3c0], 0
lea ecx, [ebp - 0x3c0]
push ecx
lea edx, [ebp - 0x1d8]
push edx
push 0x452930
mov eax, dword [ebp - 0x1e0]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40da88
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x1ec], edx
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1d4], ecx
mov edx, dword [ebp - 0x1e0]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0x1e0], 0
cmp dword [ebp - 0x1ec], 0
je 0x40dab4
cmp dword [ebp - 0x1e8], 0
jne 0x40dab8
xor eax, eax
jmp 0x40dae9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1e8]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1d0]
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 - 0x1d4]
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret