Function at 0x406720
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d7200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push esi
push 0xfa0
push 0
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x406ae8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4bffb0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x406ae8
push ebx
mov ebx, dword [esi + 0xfa4]
push edi
mov edi, dword [ebp - 0xc]
push 0x12
mov dword [esi + 0xfa8], 0
call fcn.0048a2cb
xor ecx, ecx
mov dword [esi + 0xfa4], eax
add esp, 4
mov word [eax + 0x10], cx
mov eax, dword [esi + 0xfa4]
mov word [eax], cx
test ebx, ebx
je 0x4067ad
push ebx
call fcn.00489f13
add esp, 4
mov ecx, dword [esi + 0xfa4]
test ecx, ecx
setne al
mov byte [esi + 0xfac], al
test ecx, ecx
je 0x406826
test edi, edi
je 0x40681e
xor eax, eax
mov word [ecx], ax
movzx eax, byte [edi + 1]
shr eax, 4
movzx eax, word [eax*2 + 0x4bfcc0]
mov word [ecx], ax
movzx eax, byte [edi + 1]
and eax, 0xf
movzx eax, word [eax*2 + 0x4bfcc0]
mov word [ecx + 2], ax
movzx eax, byte [edi]
shr eax, 4
movzx eax, word [eax*2 + 0x4bfcc0]
mov word [ecx + 4], ax
movzx eax, byte [edi]
and eax, 0xf
movzx eax, word [eax*2 + 0x4bfcc0]
mov word [ecx + 6], ax
xor eax, eax
mov word [ecx + 8], ax
mov al, 1
jmp 0x406820
xor al, al
mov byte [esi + 0xfac], al
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0xfb0]
add edi, 2
push 0x12
mov dword [esi + 0xfb4], 0
call fcn.0048a2cb
xor ecx, ecx
mov dword [esi + 0xfb0], eax
add esp, 4
mov word [eax + 0x10], cx
mov eax, dword [esi + 0xfb0]
mov word [eax], cx
test ebx, ebx
je 0x406868
push ebx
call fcn.00489f13
add esp, 4
mov ecx, dword [esi + 0xfb0]
test ecx, ecx
setne al
mov byte [esi + 0xfb8], al
test ecx, ecx
je 0x4068eb
test edi, edi
je 0x4068df
xor eax, eax
mov word [ecx], ax
movzx eax, byte [edi + 1]
shr eax, 4
movzx eax, word [eax*2 + 0x4bfcc0]
mov word [ecx], ax
movzx eax, byte [edi + 1]
and eax, 0xf
movzx eax, word [eax*2 + 0x4bfcc0]
mov word [ecx + 2], ax
movzx eax, byte [edi]
shr eax, 4
movzx eax, word [eax*2 + 0x4bfcc0]
mov word [ecx + 4], ax
movzx eax, byte [edi]
and eax, 0xf
movzx eax, word [eax*2 + 0x4bfcc0]
mov word [ecx + 6], ax
xor eax, eax
mov word [ecx + 8], ax
mov al, 1
mov ecx, dword [esi + 0xfb0]
jmp 0x4068e1
xor al, al
mov byte [esi + 0xfb8], al
test ecx, ecx
jne 0x406906
push 2
call fcn.0048a2cb
add esp, 4
mov dword [esi + 0xfb0], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0xfb4], ecx
mov edi, dword [esi + 0xfb0]
mov byte [esi + 0xfb8], 1
cmp dword [esi + 0xfa4], 0
jne 0x406937
push 2
call fcn.0048a2cb
add esp, 4
mov dword [esi + 0xfa4], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0xfa8], ecx
mov ebx, dword [esi + 0xfa4]
xor ecx, ecx
mov byte [esi + 0xfac], 1
mov eax, dword [esi + 0xfbc]
mov dword [ebp - 0x20], eax
mov dword [esi + 0xfbc], 0
mov byte [esi + 0xfc4], 0
mov dword [esi + 0xfc0], 0
nop word [eax + eax]
inc ecx
cmp word [ecx*2 + 0x4bffe4], 0
jne 0x406970
xor eax, eax
test ebx, ebx
je 0x40698f
cmp word [ebx], ax
je 0x40698f
inc eax
cmp word [ebx + eax*2], 0
jne 0x406987
add ecx, eax
test edi, edi
je 0x4069aa
xor eax, eax
cmp word [edi], ax
je 0x4069a8
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x4069a0
add ecx, eax
xor eax, eax
nop dword [eax]
inc eax
cmp word [eax*2 + 0x4bfbc8], 0
jne 0x4069b0
add ecx, eax
mov edx, 2
mov dword [ebp - 0x1c], ecx
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a2cb
mov edx, dword [esi + 0xfbc]
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x406a11
movzx edx, word [edx]
test dx, dx
je 0x406a11
mov esi, dword [ebp - 0x18]
sub esi, eax
nop dword [eax]
mov word [ecx], dx
add ecx, 2
movzx eax, word [esi + ecx]
mov edx, eax
test ax, ax
jne 0x406a00
mov esi, 0x4bffe4
mov edx, 0x5c
sub esi, ecx
nop dword [eax]
mov word [ecx], dx
add ecx, 2
movzx eax, word [esi + ecx]
mov edx, eax
test ax, ax
jne 0x406a20
test ebx, ebx
je 0x406a51
movzx eax, word [ebx]
mov edx, eax
test ax, ax
je 0x406a51
nop
mov word [ecx], ax
lea ebx, [ebx + 2]
movzx eax, word [ebx]
add ecx, 2
test ax, ax
jne 0x406a40
test edi, edi
je 0x406a71
movzx eax, word [edi]
mov edx, eax
test ax, ax
je 0x406a71
nop
mov word [ecx], ax
lea edi, [edi + 2]
movzx eax, word [edi]
add ecx, 2
test ax, ax
jne 0x406a60
pop edi
mov eax, 0x5c
mov esi, 0x4bfbc8
pop ebx
nop dword [eax]
mov word [ecx], ax
lea esi, [esi + 2]
movzx eax, word [esi]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406a80
mov esi, dword [ebp - 0x10]
xor eax, eax
mov word [ecx], ax
mov eax, dword [esi + 0xfbc]
test eax, eax
je 0x406aac
push eax
call fcn.00489f13
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xfbc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xfc0], eax
mov eax, dword [ebp - 0x20]
mov byte [esi + 0xfc4], 1
test eax, eax
je 0x406ad5
push eax
call fcn.00489f13
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489f05
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00489f05
mov esp, ebp
pop ebp
ret 4