Function at 0x412fb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485026
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4ab00c]
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 0x412fe5
sub edx, ecx
sar edx, 1
je 0x413040
mov ecx, esi
call fcn.004118b0
test al, al
je 0x413040
lea eax, [ebp - 0xe0]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x413040
push ebx
call fcn.00474e96
mov edi, eax
add esp, 4
test edi, edi
je 0x413040
push edi
push ebx
push dword [ebp - 0xe0]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x413047
push edi
call fcn.00474e91
add esp, 4
xor eax, eax
jmp 0x4133b2
lea ecx, [ebp - 0x124]
call fcn.0040be30
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 0x491f40
push edi
movups xmmword [ebp - 0x124], xmm0
call esi
test eax, eax
je 0x4130b1
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.004133e0
mov edx, 0x3d
lea ecx, [edx - 0x3c]
call fcn.00411c80
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 0x413286
mov eax, dword [ebp - 0xdc]
xor esi, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x413286
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.0040a810
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 0x413286
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.00402430
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0040a5e0
mov edx, dword [ebp - 0x140]
cmp edx, 8
jb 0x413220
mov ecx, dword [ebp - 0x154]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413216
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4133ce
push edx
push ecx
call fcn.0046ba31
add esp, 8
push ecx
push 0x493cbc
lea ecx, [ebp - 0xf8]
call fcn.0040a4e0
cmp eax, 0xffffffff
jne 0x4132df
push ecx
push str.Professional
lea ecx, [ebp - 0xf8]
call fcn.0040a4e0
cmp eax, 0xffffffff
jne 0x4132d8
test bl, bl
je 0x41326e
push ecx
push str.Tool
lea ecx, [ebp - 0xf8]
call fcn.0040a4e0
cmp eax, 0xffffffff
jne 0x4132d1
mov eax, dword [ebp - 0xdc]
inc esi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp esi, eax
jl 0x413150
xor ebx, ebx
push edi
call fcn.00474e91
mov edx, dword [ebp - 0xe4]
add esp, 4
cmp edx, 8
jb 0x413357
mov ecx, dword [ebp - 0xf8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41334d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4133ce
jmp 0x41334d
mov ebx, 1
jmp 0x413288
mov ebx, 2
jmp 0x4132e4
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.004022e0
mov eax, dword [ebp - 0xfc]
mov edx, 0x3f
mov dword [esi + 0x28], eax
lea ecx, [edx - 0x3e]
call fcn.00411c80
add esp, 0x34
mov ecx, 4
test eax, eax
cmovns ebx, ecx
jmp 0x413288
push edx
push ecx
call fcn.0046ba31
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 0x4133b0
mov ecx, dword [ebp - 0x114]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4133a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4133d3
push edx
push ecx
call fcn.0046ba31
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.0046b9f0
mov esp, ebp
pop ebp
ret
call fcn.00471513
call fcn.00471513
int3