Function at 0x46ce10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
mov eax, dword [0x608554]
xor eax, esp
mov dword [esp + 0x1e4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ecx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x2c]
mov eax, dword [ebp + 0x10]
push str.OperateFile::GetFileVersion
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
call fcn.0040a480
mov ecx, dword [0x608f30]
mov esi, dword [ebp + 0x14]
cmp ecx, 0x608f30
je 0x46ced9
test byte [ecx + 0x1c], 1
je 0x46ce99
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, 0x42
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x46ced9
test byte [ecx + 0x1c], 1
je 0x46ced9
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
push dword [esp + 0x20]
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push edi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x43
call fcn.00442fd0
add esp, 0x18
xor eax, eax
push 0x40
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x68]
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [esp + 0xa8]
push 0x40
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x46cf39
mov byte [esp + 0x2c], 1
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x46cf96
test byte [esi + 0x1c], 1
je 0x46cf96
lea ecx, [eax + 0x44]
jmp 0x46cf67
add eax, 0x64
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x46cf9d
mov byte [esp + 0x2c], 1
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x46cf96
test byte [esi + 0x1c], 1
je 0x46cf96
lea ecx, [eax + 0x45]
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.004018a0
mov esi, dword [0x608f30]
add esp, 0x10
xor edi, edi
jmp 0x46d278
push edi
push dword [esp + 0x18]
push 0
push dword [esp + 0x1c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x46d155
push 0x100
lea eax, [esp + 0xec]
mov dword [esp + 0x18], 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 + 0x18]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [esp + 0x10], 4
jne 0x46d029
mov ecx, dword [esp + 0x14]
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 + 0xf8]
push str.StringFileInfo_02x_02x_02x_02x_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x46d03c
push str.StringFileInfo040904e4_
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [esp + 0x1c], 1
mov ecx, 0x5ceaf8
mov eax, 0x5ceb18
cmovne eax, ecx
push eax
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46d0a5
test byte [ecx + 0x1c], 4
je 0x46d0a5
cmp dword [0x608f68], 8
lea edx, [esp + 0xe8]
push edx
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x46
call fcn.00405920
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xf0]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [esp + 0x10], 0
je 0x46d0fc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esp + 0x80], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [esp + 0x90], xmm0
jmp 0x46d110
push str.0.0.0.0.0.0.0.0.0.0
lea eax, [esp + 0x64]
push 0x20
push eax
call fcn.005746e6
add esp, 0xc
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46d155
test byte [ecx + 0x1c], 4
je 0x46d155
cmp dword [0x608f68], 8
lea edx, [esp + 0x60]
push edx
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x47
call fcn.00405920
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ecx, ecx
test esi, esi
jle 0x46d1d2
lea edx, [esp + 0x60]
movzx eax, word [edx]
cmp eax, 0x2e
je 0x46d186
cmp eax, 0x2c
je 0x46d186
cmp eax, 0x20
je 0x46d186
test ax, ax
je 0x46d186
mov word [esp + ecx*2 + 0xa8], ax
inc ecx
add edx, 2
cmp ecx, esi
jl 0x46d166
test ecx, ecx
je 0x46d1d2
push 0x40
lea eax, [esp + 0x64]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea edi, [esi - 2]
xor edx, edx
lea ecx, [esp + 0x60]
lea eax, [edx + 0x2e]
nop
cmp edx, edi
jne 0x46d1ba
mov word [ecx], ax
add ecx, 2
mov ax, word [esp + edx*2 + 0xa8]
inc edx
mov word [ecx], ax
add ecx, 2
mov eax, 0x2e
cmp edx, esi
jl 0x46d1b0
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x60]
push eax
push dword [ebp + 0x18]
push edi
call fcn.005746e6
add esp, 0xc
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x46d22e
test byte [esi + 0x1c], 4
je 0x46d22e
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [esi + 0x14]
mov ecx, 0x48
push dword [esi + 0x10]
call fcn.00405920
mov esi, dword [0x608f30]
add esp, 0x10
mov byte [esp + 0x2c], 1
mov edi, dword [esp + 0x18]
cmp esi, 0x608f30
je 0x46d278
test byte [esi + 0x1c], 1
je 0x46d278
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [esi + 0x14]
mov ecx, 0x49
push dword [esi + 0x10]
call fcn.004018a0
mov esi, dword [0x608f30]
add esp, 0x10
cmp byte [esp + 0x2c], 0
mov dword [esp + 0x28], vtable.WppTrace.0
jne 0x46d2d0
cmp esi, 0x608f30
je 0x46d2d0
test byte [esi + 0x1c], 1
je 0x46d2d0
cmp dword [esp + 0x44], 8
lea ecx, [esp + 0x30]
mov eax, 0x608f54
mov edx, 0x5c6f30
cmovae ecx, dword [esp + 0x30]
cmp dword [0x608f68], 8
push ecx
cmovae eax, dword [0x608f54]
mov ecx, 0xa
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00405920
add esp, 0x10
lea ecx, [esp + 0x48]
call fcn.00403570
lea ecx, [esp + 0x30]
call fcn.00403570
mov ecx, dword [esp + 0x1ec]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0x14