Function at 0x46cab0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1006
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
push str.OperateFile::CheckFileVersion
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1dc], edi
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46cb94
test byte [ecx + 0x1c], 1
je 0x46cb57
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x3d
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x46cb94
test byte [ecx + 0x1c], 1
je 0x46cb94
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push esi
push ebx
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x3e
call fcn.00456e50
add esp, 0x18
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x1d8]
xor edi, edi
mov dword [ebp - 0x1d8], edi
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x46cc06
mov byte [ebp - 0x1c4], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46cc5f
test byte [ecx + 0x1c], 1
je 0x46cc5f
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0xffffffffffffffff
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [edi + 0x3f]
jmp 0x46cc52
lea eax, [ebx + 0x64]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x46cc67
mov byte [ebp - 0x1c4], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46cc5f
test byte [ecx + 0x1c], 1
je 0x46cc5f
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0xffffffffffffffff
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [esi + 0x40]
mov edx, 0x5cecd4
call fcn.004018a0
add esp, 0x10
or edi, 0xffffffff
jmp 0x46cde1
push esi
push ebx
push 0
push dword [ebp - 0x1d4]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x46cd92
push 0x100
lea eax, [ebp - 0x190]
mov dword [ebp - 0x1d0], edi
push 0
push eax
mov dword [ebp - 0x1cc], edi
call fcn.00571c00
push str.VarFileInfoTranslation
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.005746e6
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x1cc]
add esp, 0x18
push eax
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x90]
push eax
push esi
call ebx
cmp dword [ebp - 0x1cc], 4
jne 0x46cd0b
mov ecx, dword [ebp - 0x1d0]
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx]
push eax
movzx eax, byte [ecx + 1]
push eax
lea eax, [ebp - 0x190]
push str.StringFileInfo_02x_02x_02x_02x_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x46cd1d
push str.StringFileInfo040904e4_
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x1dc], 1
mov ecx, 0x5ceaf8
mov eax, 0x5ceb18
cmovne eax, ecx
push eax
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x190]
push eax
push esi
call ebx
cmp dword [ebp - 0x1cc], edi
je 0x46cd92
lea ecx, [ebp - 0x1d4]
call fcn.00475e00
push dword [ebp - 0x1e0]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d4]
push dword [ebp - 0x1d0]
call fcn.004764e0
lea ecx, [ebp - 0x1d4]
mov edi, eax
call fcn.00475ed0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [ebp - 0x1c4], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46cde1
test byte [ecx + 0x1c], 1
je 0x46cde1
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x41
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x1c8]
call fcn.0040a570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0xc