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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476bc2
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [esi + 0x84]
mov ecx, eax
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x278], 1
mov dword [esi + 0x80], 1
mov dword [ebp - 0x26c], eax
call fcn.004086d0
lea eax, [esi + 0x88]
mov ecx, eax
mov dword [ebp - 0x270], eax
call fcn.004086d0
lea eax, [esi + 0x8c]
mov ecx, eax
mov dword [ebp - 0x27c], eax
call fcn.004086d0
lea eax, [esi + 0x90]
mov ecx, eax
mov dword [ebp - 0x260], eax
call fcn.004086d0
push 0x208
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00451eb0
add esp, 0xc
lea eax, [ebp - 0x254]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jge 0x40bf75
mov dword [ebp - 0x280], 0xffffffff
jmp 0x40bfa1
lea ecx, [ebp - 0x254]
push ecx
push eax
call fcn.0045142b
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40bf97
mov dword [ebp - 0x280], 0xffffffff
jmp 0x40bfa1
sub ebx, dword [edi]
sar ebx, 1
mov dword [ebp - 0x280], ebx
call fcn.004067b0
mov ecx, eax
test ecx, ecx
jne 0x40bfb6
push 0x80004005
call fcn.004064f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x25c], esi
mov dword [ebp - 4], 0
mov ebx, 1
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40bff7
push 0x104
lea ecx, [ebp - 0x25c]
call fcn.004080e0
mov esi, dword [ebp - 0x25c]
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, 0x104
or eax, ebx
jge 0x40c01c
push 0x104
lea ecx, [ebp - 0x25c]
call fcn.004080e0
mov esi, dword [ebp - 0x25c]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [esi - 8]
push esi
call fcn.0045ffc5
add esp, 8
test eax, eax
js 0x40c557
cmp eax, dword [esi - 8]
jg 0x40c557
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x5c
push esi
mov word [esi + eax*2], cx
call fcn.004516ae
add esp, 8
test eax, eax
jne 0x40c064
or eax, 0xffffffff
jmp 0x40c068
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00412580
push eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.004137d0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x258]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c0af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x25c]
push 0x5c
push esi
call fcn.004516ae
add esp, 8
test eax, eax
jne 0x40c0c9
or eax, 0xffffffff
jmp 0x40c0cd
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00412580
push eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 2
call fcn.004137d0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c111
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x25c]
test ebx, ebx
jne 0x40c127
mov dword [ebp - 0x274], 0xffffffff
jmp 0x40c161
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jge 0x40c13b
mov dword [ebp - 0x274], 0xffffffff
jmp 0x40c161
push ebx
push eax
call fcn.0045142b
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c157
mov dword [ebp - 0x274], 0xffffffff
jmp 0x40c161
sub esi, dword [edi]
sar esi, 1
mov dword [ebp - 0x274], esi
mov ecx, dword [ebp - 0x270]
push edi
call fcn.004137d0
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.004087c0
lea edi, [eax + 0x10]
mov dword [ebp - 0x288], edi
push 0x5c
mov byte [ebp - 4], 3
mov esi, dword [edi - 0xc]
push edi
call fcn.004516ae
add esp, 8
test eax, eax
jne 0x40c19b
or eax, 0xffffffff
jmp 0x40c19f
sub eax, edi
sar eax, 1
sub esi, eax
lea ecx, [ebp - 0x288]
dec esi
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.004125f0
mov ecx, dword [ebp - 0x26c]
push eax
mov byte [ebp - 4], 4
call fcn.004137d0
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c1e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x284]
push 0
push dword [eax]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x40c4c3
push 0x47c6a0
push eax
call fcn.0044e428
mov esi, eax
add esp, 8
mov dword [ebp - 0x26c], esi
test esi, esi
jne 0x40c227
lea esi, [eax + 1]
jmp 0x40c4fd
mov eax, dword [ebp - 0x284]
push esi
push dword [ebp - 0x258]
push 0
push dword [eax]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40c49f
mov dword [ebp - 0x268], 0
call fcn.004067b0
mov ecx, eax
test ecx, ecx
jne 0x40c265
push 0x80004005
call fcn.004064f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 5
movups xmm0, xmmword [str.VarFileInfoTranslation]
mov ax, word [0x48f570]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x258]
push eax
movups xmmword [ebp - 0x48], xmm0
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x270], 0x3a8
movups xmm0, xmmword [0x48f550]
push eax
lea eax, [ebp - 0x48]
movups xmmword [ebp - 0x38], xmm0
push eax
movups xmm0, xmmword [0x48f560]
push esi
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c2e3
mov eax, dword [ebp - 0x28c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x270], ecx
jmp 0x40c2e8
mov ecx, 0x3a8
push ecx
lea eax, [ebp - 0x264]
push str.StringFileInfo_08xCompanyName
push eax
call fcn.00415030
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x264]
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c32d
push dword [ebp - 0x268]
mov ecx, dword [ebp - 0x260]
call fcn.004076d0
push dword [ebp - 0x270]
lea eax, [ebp - 0x264]
push str.StringFileInfo_08xProductName
push eax
call fcn.00415030
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
add esp, 0xc
push eax
lea eax, [ebp - 0x268]
push eax
push esi
push dword [ebp - 0x26c]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c37d
push dword [ebp - 0x268]
mov ecx, dword [ebp - 0x27c]
call fcn.004076d0
mov eax, dword [ebp - 0x27c]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x40c3db
push dword [ebp - 0x270]
lea eax, [ebp - 0x264]
push str.StringFileInfo_08xFileDescription
push eax
call fcn.00415030
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
add esp, 0xc
push eax
lea eax, [ebp - 0x268]
push eax
push esi
push dword [ebp - 0x26c]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c3db
push dword [ebp - 0x268]
mov ecx, dword [ebp - 0x27c]
call fcn.004076d0
cmp dword [ebp - 0x280], 0xffffffff
mov ecx, dword [ebp - 0x260]
je 0x40c42c
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jl 0x40c42c
push str.Microsoft
push eax
call fcn.0045142b
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40c426
mov eax, dword [ebp - 0x260]
mov edx, 3
sub ecx, dword [eax]
mov eax, 1
sar ecx, 1
cmp ecx, 0xffffffff
cmovne eax, edx
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x260]
cmp dword [ebp - 0x274], 0xffffffff
je 0x40c472
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jl 0x40c472
push str.Tencent
push eax
call fcn.0045142b
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40c472
mov eax, dword [ebp - 0x260]
mov edx, 2
sub ecx, dword [eax]
mov eax, dword [ebp - 0x278]
sar ecx, 1
cmp ecx, 0xffffffff
cmovne eax, edx
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c48e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x26c]
push esi
call fcn.0044e423
add esp, 4
jmp 0x40c4dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfo_:_0x_x
push 0x48b2e8
call fcn.00430910
add esp, 0xc
push esi
call fcn.0044e423
add esp, 4
jmp 0x40c4dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfoSize_:_0x_x
push 0x48b2e8
call fcn.00430910
add esp, 0xc
mov eax, dword [ebp - 0x284]
mov esi, dword [ebp - 0x278]
push esi
push dword [eax]
push str.error_module_:__s__estatus:_d
push 0x48b2e8
call fcn.00430910
add esp, 0x10
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c51b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x40c537
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004064f0
int3