Function at 0x10089310
Capabilities:
Get file version info
Impersonate file version information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cc886
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp + 8]
call fcn.100038a0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0
jne 0x10089370
xor al, al
jmp 0x10089859
push 4
lea ecx, [ebp - 0x414]
call fcn.100163f0
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.1008aa7c
add esp, 4
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x414]
call fcn.10029090
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x458]
push eax
push 0
lea ecx, [ebp - 0x414]
call fcn.10003ca0
push eax
call fcn.1008c730
add esp, 0xc
lea ecx, [ebp - 0x414]
call fcn.10003ca0
push eax
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x424]
push edx
mov ecx, dword [ebp + 8]
call fcn.100038a0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10089418
mov byte [ebp - 0x44d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.10004960
mov al, byte [ebp - 0x44d]
jmp 0x10089859
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x440]
push ecx
push 0x100ceab0
lea ecx, [ebp - 0x414]
call fcn.10003ca0
push eax
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x440], 0
jne 0x1008947d
mov byte [ebp - 0x44e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.10004960
mov al, byte [ebp - 0x44e]
jmp 0x10089859
mov dword [ebp - 0x494], str.Comments
mov dword [ebp - 0x490], 0x100ceaf8
mov dword [ebp - 0x48c], 0x100ceb10
mov dword [ebp - 0x488], 0x100ceb28
mov dword [ebp - 0x484], 0x100ceb44
mov dword [ebp - 0x480], 0x100ceb64
mov dword [ebp - 0x47c], 0x100ceb88
mov dword [ebp - 0x478], 0x100ceba0
mov dword [ebp - 0x470], 8
mov dword [ebp - 0x45c], 0
jmp 0x100894f2
mov edx, dword [ebp - 0x45c]
add edx, 1
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
cmp eax, dword [ebp - 0x470]
jge 0x100895c5
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x41c], 0
push 0x200
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.1008c730
add esp, 0xc
mov edx, dword [ebp - 0x45c]
mov eax, dword [ebp + edx*4 - 0x494]
push eax
mov ecx, dword [ebp - 0x440]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x440]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04x_s
push 0xffffffffffffffff
push 0x100
lea edx, [ebp - 0x210]
push edx
call fcn.10012610
add esp, 0x1c
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x414]
call fcn.10003ca0
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100895c0
cmp dword [ebp - 0x41c], 0
jbe 0x100895c0
cmp dword [ebp - 0x448], 0
je 0x100895c0
mov eax, dword [ebp - 0x41c]
push eax
push 0
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.1008c730
add esp, 0xc
jmp 0x100894e3
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x444], 0
push 0x200
push 0
lea edx, [ebp - 0x410]
push edx
call fcn.1008c730
add esp, 0xc
mov eax, dword [ebp - 0x440]
movzx ecx, word [eax + 2]
push ecx
mov edx, dword [ebp - 0x440]
movzx eax, word [edx]
push eax
push str.StringFileInfo_04x_04xFileDescription
push 0xffffffffffffffff
push 0x100
lea ecx, [ebp - 0x410]
push ecx
call fcn.10012610
add esp, 0x18
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x414]
call fcn.10003ca0
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10089745
mov edx, dword [ebp - 0x418]
push edx
push 0
mov eax, dword [ebp - 0x444]
push eax
call fcn.1008c730
add esp, 0xc
mov ecx, dword [ebp - 0x418]
shr ecx, 1
mov dword [ebp - 0x460], ecx
cmp dword [ebp - 0x460], 5
jbe 0x10089686
mov dword [ebp - 0x460], 5
lea edx, [ebp - 0x43c]
push edx
call fcn.10089940
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x43c]
call fcn.10009880
cmp eax, dword [ebp - 0x460]
jbe 0x100896ea
mov eax, dword [ebp - 0x460]
push eax
push 0
lea ecx, [ebp - 0x4ac]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.10007960
mov dword [ebp - 0x474], eax
mov edx, dword [ebp - 0x474]
push edx
lea ecx, [ebp - 0x43c]
call fcn.10003970
lea ecx, [ebp - 0x4ac]
call fcn.10003910
lea ecx, [ebp - 0x43c]
call fcn.10009880
shl eax, 1
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x468]
cmp eax, dword [ebp - 0x418]
ja 0x10089736
cmp dword [ebp - 0x444], 0
je 0x10089736
mov ecx, dword [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.100038a0
push eax
mov edx, dword [ebp - 0x444]
push edx
call fcn.1008bc30
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.10003910
mov dword [ebp - 0x44c], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x44c]
push ecx
push 0x100cec4c
lea ecx, [ebp - 0x414]
call fcn.10003ca0
push eax
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x44c], 0
je 0x10089794
mov edx, dword [ebp - 0x420]
push edx
push 0
mov eax, dword [ebp - 0x44c]
push eax
call fcn.1008c730
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
call fcn.100038a0
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0
jne 0x100897d8
mov byte [ebp - 0x44f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.10004960
mov al, byte [ebp - 0x44f]
jmp 0x10089859
mov ecx, dword [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x414]
call fcn.10003ca0
push eax
mov edx, dword [ebp - 0x440]
movzx eax, word [edx]
push eax
push 1
push 0x10
mov ecx, dword [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
jne 0x1008982b
mov byte [ebp - 0x450], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.10004960
mov al, byte [ebp - 0x450]
jmp 0x10089859
push 0
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov byte [ebp - 0x451], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.10004960
mov al, byte [ebp - 0x451]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret