Function at 0x46d300
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x608554]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push ecx
push str.OperateFile::GetFileVersionEx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], esi
call fcn.0040a480
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46d3bf
test byte [ecx + 0x1c], 1
je 0x46d383
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, 0x4a
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x46d3bf
test byte [ecx + 0x1c], 1
je 0x46d3bf
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push ebx
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x4b
call fcn.004300c0
add esp, 0x14
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x46d42d
mov byte [esp + 0x24], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46d484
test byte [ecx + 0x1c], 1
je 0x46d484
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [edi + 0x4c]
call fcn.004018a0
add esp, 0x10
xor esi, esi
jmp 0x46d6a9
lea eax, [edi + 0x64]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x46d48b
mov byte [esp + 0x24], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46d484
test byte [ecx + 0x1c], 1
je 0x46d484
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [esi + 0x4d]
call fcn.004018a0
add esp, 0x10
xor esi, esi
jmp 0x46d6a9
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x46d611
push 0x100
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], 0
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00571c00
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [esp + 0x10], 4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jne 0x46d511
mov ecx, dword [esp + 0xc]
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, [esp + 0x68]
push str.StringFileInfo_02x_02x_02x_02x_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x46d51d
push str.StringFileInfo040904e4_
lea eax, [esp + 0x5c]
push eax
call ebx
mov edi, dword [esp + 0x1c]
mov ecx, 0x5ceaf8
cmp edi, 1
mov eax, 0x5ceb18
cmovne eax, ecx
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46d582
test byte [ecx + 0x1c], 4
je 0x46d582
cmp dword [0x608f68], 8
lea edx, [esp + 0x58]
push edx
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x4e
call fcn.00405920
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46d5dc
test byte [ecx + 0x1c], 4
je 0x46d5dc
cmp dword [0x608f68], 8
mov eax, 0x608f54
push dword [esp + 0x10]
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x4f
call fcn.004018a0
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x46d611
push dword [esp + 0xc]
cmp edi, 1
jne 0x46d5f5
mov edi, dword [esp + 0x18]
push edi
call ebx
jmp 0x46d615
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 0x14]
add eax, eax
push eax
push dword [esp + 0x10]
push edi
call fcn.00571100
add esp, 0xc
jmp 0x46d615
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46d663
test byte [ecx + 0x1c], 4
je 0x46d663
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, 0x50
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
mov byte [esp + 0x24], 1
cmp ecx, 0x608f30
je 0x46d6a4
test byte [ecx + 0x1c], 1
je 0x46d6a4
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x51
call fcn.004018a0
add esp, 0x10
mov esi, 1
lea ecx, [esp + 0x20]
call fcn.0040a570
mov ecx, dword [esp + 0x15c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0xc