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

Disassembly:
push 0xffffffffffffffff
push 0x42804d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x4346e4]
push ebx
push esi
push edi
mov dword [esp + 0x10], eax
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x120], ebx
call fcn.0040dcaa
mov edi, dword [esp + 0x128]
xor esi, esi
mov byte [esp + 0x120], 1
cmp dword [edi + 8], ebx
jle 0x404b0e
mov ecx, dword [edi + 4]
push ebx
mov eax, dword [ecx + esi*4]
lea ecx, [esp + 0x38]
push eax
call fcn.0040dd6d
test eax, eax
jne 0x404afe
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x404adf
jmp 0x404b0e
mov edx, dword [edi + 4]
lea ecx, [esp + 0x10]
lea eax, [edx + esi*4]
push eax
call fcn.0041f08c
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x404d54
push 0x438170
push eax
call fcn.0040ef2e
add esp, 8
test eax, eax
je 0x404d54
mov ecx, dword [0x4346e4]
mov dword [esp + 0x18], ecx
push 0x100
push 0x100
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], 2
call fcn.0041f383
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.0041f3d2
lea edx, [esp + 0x18]
push 0x4322a8
lea eax, [esp + 0x24]
push edx
push eax
call fcn.0041f1e8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x12c], 3
call fcn.0041f182
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 5
call fcn.0041ef53
mov ecx, dword [esp + 0x12c]
lea eax, [esp + 0x14]
push eax
call fcn.0041f08c
mov ecx, dword [0x4346e4]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x14]
push ebx
push edx
mov byte [esp + 0x128], 6
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jne 0x404c37
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 5
call fcn.0041ef53
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 2
call fcn.0041ef53
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 1
call fcn.0041ef53
lea ecx, [esp + 0x34]
mov byte [esp + 0x120], bl
call fcn.0040dce7
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.0041ef53
xor eax, eax
jmp 0x404d7d
push edi
call fcn.0041f4a7
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2c]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x40], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x2c]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x58]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x50]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
call fcn.0041f0dc
lea edx, [esp + 0x28]
push 1
push edx
lea ecx, [esp + 0x14]
call fcn.0041e062
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 7
call fcn.0041f08c
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 6
call fcn.0041ef53
mov eax, dword [esp + 0xc]
push eax
call fcn.0040f664
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x120], 5
call fcn.0041ef53
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 2
call fcn.0041ef53
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 1
call fcn.0041ef53
lea ecx, [esp + 0x34]
mov byte [esp + 0x120], bl
call fcn.0040dce7
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.0041ef53
mov eax, esi
jmp 0x404d7d
lea ecx, [esp + 0x34]
mov byte [esp + 0x120], bl
call fcn.0040dce7
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.0041ef53
mov eax, 0x270f
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret