Function at 0x40d93d
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 0x40d9da
cmp dword [ebp + 0xc], 0
je 0x40d9da
cmp dword [ebp + 0x10], 0
je 0x40d9da
cmp dword [ebp + 0x14], 0
jne 0x40d9e1
xor eax, eax
jmp 0x40dc7b
push 0x1b8
lea edx, [ebp - 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40da0d
push 0x452918
lea eax, [ebp - 0x1cc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x40da14
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 0x40db24
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 0x40db24
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 0x40db0a
mov dword [ebp - 0x3bc], 0
lea eax, [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0x1d8]
push ecx
push 0x452928
mov edx, dword [ebp - 0x1e0]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40db0a
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 0x40dc34
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 0x40dc34
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 0x40dc1a
mov dword [ebp - 0x3c0], 0
lea ecx, [ebp - 0x3c0]
push ecx
lea edx, [ebp - 0x1d8]
push edx
push 0x45293c
mov eax, dword [ebp - 0x1e0]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40dc1a
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 0x40dc46
cmp dword [ebp - 0x1e8], 0
jne 0x40dc4a
xor eax, eax
jmp 0x40dc7b
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