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

Disassembly:
push 0x278
mov eax, 0x421733
call fcn.0041fc5d
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
inc ebx
lea esi, [edi + 0x38]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x26c], ebx
mov dword [edi + 0x34], ebx
mov dword [ebp - 0x260], esi
call fcn.00401597
lea esi, [edi + 0x3c]
mov dword [ebp - 0x258], esi
call fcn.00401597
lea esi, [edi + 0x40]
mov dword [ebp - 0x274], esi
call fcn.00401597
add edi, 0x44
mov esi, edi
mov dword [ebp - 0x270], edi
call fcn.00401597
and dword [ebp - 0x27c], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x250]
push eax
xor ecx, ecx
call fcn.00405559
cmp eax, 0xffffffff
je 0x4025f4
mov dword [ebp - 0x27c], ebx
mov eax, dword [section..data]
and dword [ebp - 0x278], 0
mov ecx, section..data
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x254], ebx
and dword [ebp - 4], 0
mov eax, dword [ebx - 8]
xor ecx, ecx
inc ecx
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x402637
mov eax, edi
lea ecx, [ebp - 0x254]
call fcn.0040143e
mov ebx, dword [ebp - 0x254]
mov eax, dword [ebx - 8]
xor ecx, ecx
inc ecx
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x402659
mov eax, edi
lea ecx, [ebp - 0x254]
call fcn.0040143e
mov ebx, dword [ebp - 0x254]
push edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, 0xffffffff
lea esi, [ebp - 0x254]
call fcn.0040583a
mov esi, dword [sym.imp.MSVCR100.dll_wcsrchr]
push 0x5c
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x402687
or eax, 0xffffffff
jmp 0x40268b
sub eax, ebx
sar eax, 1
mov ecx, eax
lea edx, [ebp - 0x268]
lea eax, [ebp - 0x254]
call fcn.0040569d
lea edi, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.004054f1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00401613
push 0x5c
push dword [ebp - 0x254]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x4026d4
or eax, 0xffffffff
jmp 0x4026dc
sub eax, dword [ebp - 0x254]
sar eax, 1
mov ecx, eax
lea edx, [ebp - 0x268]
lea eax, [ebp - 0x254]
call fcn.0040569d
lea edi, [ebp - 0x254]
mov byte [ebp - 4], 2
call fcn.004054f1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00401613
mov ebx, dword [ebp - 0x25c]
push dword [ebp - 0x254]
xor ecx, ecx
mov esi, ebx
call fcn.00405559
cmp eax, 0xffffffff
je 0x402734
mov dword [ebp - 0x278], 1
mov edi, dword [ebp - 0x258]
mov eax, ebx
call fcn.004054f1
mov eax, dword [ebx]
sub eax, 0x10
call fcn.00405f8b
lea esi, [eax + 0x10]
mov dword [ebp - 0x268], esi
push 0x5c
mov byte [ebp - 4], 3
mov edi, dword [esi - 0xc]
push esi
call dword [sym.imp.MSVCR100.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x40276f
or eax, 0xffffffff
jmp 0x402773
sub eax, esi
sar eax, 1
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x25c]
push eax
dec ecx
lea eax, [ebp - 0x268]
call fcn.0040564f
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x260]
call fcn.004054f1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4029cf
push edi
call fcn.0041f201
pop ecx
mov dword [ebp - 0x258], eax
push dword [ebp - 0x258]
mov eax, dword [ebx]
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4029a9
mov eax, dword [section..data]
and dword [ebp - 0x260], 0
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
push 0xc
pop ecx
mov byte [ebp - 4], 5
mov esi, str.VarFileInfoTranslation
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x258]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
mov dword [ebp - 0x280], 0x3a8
call esi
test eax, eax
je 0x402859
mov eax, dword [ebp - 0x284]
movzx edi, word [eax]
movzx eax, word [eax + 2]
shl edi, 0x10
or edi, eax
jmp 0x40285f
mov edi, dword [ebp - 0x280]
push edi
lea eax, [ebp - 0x264]
push str.StringFileInfo_08xCompanyName
push eax
call fcn.004062b2
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
push dword [ebp - 0x258]
call esi
test eax, eax
je 0x4028a5
push dword [ebp - 0x260]
push dword [ebp - 0x270]
call fcn.004013d5
push edi
lea eax, [ebp - 0x264]
push str.StringFileInfo_08xProductName
push eax
call fcn.004062b2
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
push dword [ebp - 0x258]
call esi
test eax, eax
je 0x4028eb
push dword [ebp - 0x260]
push dword [ebp - 0x274]
call fcn.004013d5
mov eax, dword [ebp - 0x274]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x40293f
push edi
lea eax, [ebp - 0x264]
push str.StringFileInfo_08xFileDescription
push eax
call fcn.004062b2
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
push dword [ebp - 0x258]
call esi
test eax, eax
je 0x40293f
push dword [ebp - 0x260]
push dword [ebp - 0x274]
call fcn.004013d5
cmp dword [ebp - 0x27c], 0
je 0x402969
mov esi, dword [ebp - 0x270]
push str.Microsoft
xor ecx, ecx
call fcn.00405559
cmp eax, 0xffffffff
je 0x402969
mov dword [ebp - 0x26c], 3
cmp dword [ebp - 0x278], 0
je 0x402993
mov esi, dword [ebp - 0x270]
push str.Tencent
xor ecx, ecx
call fcn.00405559
cmp eax, 0xffffffff
je 0x402993
mov dword [ebp - 0x26c], 2
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.00401613
mov esi, dword [ebp - 0x268]
jmp 0x4029c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfo_:_0x_x
mov ecx, 0x42712c
call fcn.00416d9e
pop ecx
pop ecx
push dword [ebp - 0x258]
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
jmp 0x4029e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfoSize_:_0x_x
mov ecx, 0x42712c
call fcn.00416d9e
pop ecx
pop ecx
push dword [ebp - 0x26c]
mov ecx, 0x42712c
push dword [ebx]
push str.error_module_:__s__estatus:_d
call fcn.00416d9e
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.00401613
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [ebp - 0x26c]
call fcn.0041fce0
ret 4