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

Disassembly:
push 0x278
mov eax, 0x423642
call fcn.004231c0
mov edi, ecx
mov dword [ebp - 0x260], edi
mov esi, dword [ebp + 8]
lea eax, [edi + 0x3c]
xor ebx, ebx
mov dword [ebp - 0x270], esi
inc ebx
mov dword [ebp - 0x258], eax
mov ecx, eax
mov dword [edi + 0x38], ebx
call fcn.0040177c
lea eax, [edi + 0x40]
mov ecx, eax
mov dword [ebp - 0x268], eax
call fcn.0040177c
lea ecx, [edi + 0x44]
call fcn.0040177c
lea ecx, [edi + 0x48]
call fcn.0040177c
push 0x208
lea eax, [ebp - 0x250]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x250]
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
lea eax, [ebp - 0x250]
mov ecx, esi
push eax
call fcn.00406313
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, ebx
mov dword [ebp - 0x27c], ecx
and dword [ebp - 4], 0
call fcn.00401b0a
push eax
lea ecx, [ebp - 0x254]
call fcn.00401564
push edi
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], ebx
call fcn.00401528
push edi
push edi
lea ecx, [ebp - 0x254]
call fcn.00401528
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x254]
call fcn.00406678
mov edi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push dword [ebp - 0x254]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x403238
or eax, 0xffffffff
jmp 0x403240
sub eax, dword [ebp - 0x254]
sar eax, 1
push eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x254]
call fcn.004061f7
push 2
pop ecx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x254]
push eax
call fcn.0040650f
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
push 0x5c
push dword [ebp - 0x254]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x40328b
or eax, 0xffffffff
jmp 0x403293
sub eax, dword [ebp - 0x254]
sar eax, 1
push eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x254]
call fcn.004061f7
push 3
pop ecx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x254]
push eax
call fcn.0040650f
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov edi, dword [ebp - 0x254]
mov ecx, esi
push 0
push edi
call fcn.00406313
xor ecx, ecx
cmp eax, 0xffffffff
push esi
cmovne ecx, ebx
mov dword [ebp - 0x280], ecx
mov ecx, dword [ebp - 0x268]
call fcn.0040650f
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00406d2d
lea esi, [eax + 0x10]
mov dword [ebp - 0x274], esi
lea eax, [esi - 0x10]
mov byte [ebp - 4], 4
mov dword [ebp - 0x284], eax
mov eax, dword [eax + 4]
push 0x5c
push esi
mov dword [ebp - 0x25c], eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x403330
or eax, 0xffffffff
jmp 0x403334
sub eax, esi
sar eax, 1
mov ecx, dword [ebp - 0x25c]
sub ecx, eax
lea eax, [ebp - 0x26c]
dec ecx
push ecx
push eax
lea ecx, [ebp - 0x274]
call fcn.0040623c
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x258]
push eax
call fcn.0040650f
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov eax, dword [ebp - 0x270]
push 0
push dword [eax]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4035ac
push esi
call fcn.0042246a
pop ecx
push eax
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x270]
push esi
push 0
push dword [eax]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x403585
and dword [ebp - 0x264], 0
mov byte [ebp - 4], 6
call fcn.00401b0a
push eax
lea ecx, [ebp - 0x258]
call fcn.00401564
push 0xc
pop ecx
mov byte [ebp - 4], 7
lea edi, [ebp - 0x44]
mov esi, str.VarFileInfoTranslation
lea eax, [ebp - 0x26c]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x44]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x268]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x403419
mov eax, dword [ebp - 0x278]
movzx edi, word [eax]
movzx eax, word [eax + 2]
shl edi, 0x10
or edi, eax
jmp 0x40341e
mov edi, 0x3a8
push edi
lea eax, [ebp - 0x258]
push str.StringFileInfo_08xCompanyName
push eax
call fcn.0040731f
add esp, 0xc
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x258]
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x403470
mov esi, dword [ebp - 0x260]
push dword [ebp - 0x264]
add esi, 0x48
mov ecx, esi
call fcn.004014c7
mov dword [ebp - 0x25c], esi
jmp 0x40347f
mov eax, dword [ebp - 0x260]
add eax, 0x48
mov dword [ebp - 0x25c], eax
push edi
lea eax, [ebp - 0x258]
push str.StringFileInfo_08xProductName
push eax
call fcn.0040731f
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x26c]
add esp, 0xc
push eax
lea eax, [ebp - 0x264]
push eax
push esi
push dword [ebp - 0x268]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4034cd
mov ecx, dword [ebp - 0x260]
push dword [ebp - 0x264]
lea ecx, [ecx + 0x44]
call fcn.004014c7
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 0x44]
cmp dword [eax - 0xc], 0
jne 0x403530
push edi
lea eax, [ebp - 0x258]
push str.StringFileInfo_08xFileDescription
push eax
call fcn.0040731f
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x26c]
add esp, 0xc
push eax
lea eax, [ebp - 0x264]
push eax
push esi
push dword [ebp - 0x268]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40352a
mov ecx, dword [ebp - 0x260]
push dword [ebp - 0x264]
lea ecx, [ecx + 0x44]
call fcn.004014c7
mov edx, dword [ebp - 0x260]
cmp dword [ebp - 0x27c], 0
je 0x403551
push 0
push str.Microsoft
lea ecx, [edx + 0x48]
call fcn.00406313
cmp eax, 0xffffffff
push 3
pop eax
cmovne ebx, eax
cmp dword [ebp - 0x280], 0
je 0x403575
mov ecx, dword [ebp - 0x25c]
push 0
push 0x42a9a8
call fcn.00406313
cmp eax, 0xffffffff
push 2
pop eax
cmovne ebx, eax
lea ecx, [esi - 0x10]
call fcn.0040188c
mov edi, dword [ebp - 0x254]
jmp 0x40359e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfo_:_0x_x
push 0x426940
call fcn.00419776
add esp, 0xc
push dword [ebp - 0x268]
call fcn.004224a3
pop ecx
jmp 0x4035c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfoSize_:_0x_x
push 0x426940
call fcn.00419776
add esp, 0xc
mov eax, dword [ebp - 0x270]
push ebx
push dword [eax]
push str.error_module_:__s__estatus:_d
push 0x426940
call fcn.00419776
mov ecx, dword [ebp - 0x284]
add esp, 0x10
call fcn.0040188c
lea ecx, [edi - 0x10]
call fcn.0040188c
mov eax, ebx
call fcn.0042316a
ret 4