Function at 0x412a70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bfb6
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x49f008]
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 esi, ecx
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412aa5
sub edx, ecx
sar edx, 1
je 0x412b00
mov ecx, esi
call fcn.00411360
test al, al
je 0x412b00
lea eax, [ebp - 0xe0]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x412b00
push ebx
call fcn.0046be9e
mov edi, eax
add esp, 4
test edi, edi
je 0x412b00
push edi
push ebx
push dword [ebp - 0xe0]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x412b07
push edi
call fcn.0046be99
add esp, 4
xor eax, eax
jmp 0x412e72
lea ecx, [ebp - 0x124]
call fcn.0040b9d0
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x138]
push eax
push 0x487e80
push edi
movups xmmword [ebp - 0x124], xmm0
call esi
test eax, eax
je 0x412b71
mov ecx, dword [ebp - 0x138]
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x124], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x120], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x11c], eax
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x118], eax
push 1
push 0
sub esp, 0x2c
lea eax, [ebp - 0x124]
mov ecx, esp
push eax
call fcn.00412ea0
mov edx, 0x3d
lea ecx, [edx - 0x3c]
call fcn.00411730
add esp, 0x34
mov dword [ebp - 0x130], 0
test eax, eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0xe8], 0
setg bl
mov dword [ebp - 0xe4], 7
xor eax, eax
mov word [ebp - 0xf8], ax
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x134]
push eax
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
je 0x412d46
mov eax, dword [ebp - 0xdc]
xor esi, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x412d46
nop word [eax + eax]
mov eax, dword [ebp - 0x134]
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0xd8]
push str.StringFileInfo_04x_04xProductName
push eax
call fcn.0040a410
add esp, 0x10
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xd8]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x412d46
push dword [ebp - 0x12c]
xor eax, eax
mov dword [ebp - 0x144], 0
push dword [ebp - 0x130]
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x140], 7
mov word [ebp - 0x154], ax
call fcn.00402380
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0040a240
mov edx, dword [ebp - 0x140]
cmp edx, 8
jb 0x412ce0
mov ecx, dword [ebp - 0x154]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412cd6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e8e
push edx
push ecx
call fcn.004632e1
add esp, 8
push ecx
push 0x489ac4
lea ecx, [ebp - 0xf8]
call fcn.0040a140
cmp eax, 0xffffffff
jne 0x412d9f
push ecx
push str.Professional
lea ecx, [ebp - 0xf8]
call fcn.0040a140
cmp eax, 0xffffffff
jne 0x412d98
test bl, bl
je 0x412d2e
push ecx
push str.Tool
lea ecx, [ebp - 0xf8]
call fcn.0040a140
cmp eax, 0xffffffff
jne 0x412d91
mov eax, dword [ebp - 0xdc]
inc esi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp esi, eax
jl 0x412c10
xor ebx, ebx
push edi
call fcn.0046be99
mov edx, dword [ebp - 0xe4]
add esp, 4
cmp edx, 8
jb 0x412e17
mov ecx, dword [ebp - 0xf8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412e0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e8e
jmp 0x412e0d
mov ebx, 1
jmp 0x412d48
mov ebx, 2
jmp 0x412da4
mov ebx, 3
mov eax, dword [ebp - 0x124]
push 0
push 0
sub esp, 0x2c
mov esi, esp
mov dword [ebp - 0x13c], esi
mov dword [esi], eax
lea ecx, [esi + 0x10]
mov eax, dword [ebp - 0x120]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x11c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x118]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x114]
push eax
call fcn.00402240
mov eax, dword [ebp - 0xfc]
mov edx, 0x3f
mov dword [esi + 0x28], eax
lea ecx, [edx - 0x3e]
call fcn.00411730
add esp, 0x34
mov ecx, 4
test eax, eax
cmovns ebx, ecx
jmp 0x412d48
push edx
push ecx
call fcn.004632e1
add esp, 8
mov edx, dword [ebp - 0x100]
xor eax, eax
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 7
mov word [ebp - 0xf8], ax
cmp edx, 8
jb 0x412e70
mov ecx, dword [ebp - 0x114]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412e66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e93
push edx
push ecx
call fcn.004632e1
add esp, 8
mov eax, ebx
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.004632a0
mov esp, ebp
pop ebp
ret
call fcn.0046851b
call fcn.0046851b
int3