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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8016
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x100fb03c]
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.10004780
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0
jne 0x100873a0
xor al, al
jmp 0x10087889
push 4
lea ecx, [ebp - 0x414]
call fcn.10020920
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.1008855c
add esp, 4
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x414]
call fcn.10032e70
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x458]
push eax
push 0
lea ecx, [ebp - 0x414]
call fcn.10004c90
push eax
call fcn.1008ac40
add esp, 0xc
lea ecx, [ebp - 0x414]
call fcn.10004c90
push eax
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x424]
push edx
mov ecx, dword [ebp + 8]
call fcn.10004780
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10087448
mov byte [ebp - 0x44d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.100099c0
mov al, byte [ebp - 0x44d]
jmp 0x10087889
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x440]
push ecx
push 0x100cae10
lea ecx, [ebp - 0x414]
call fcn.10004c90
push eax
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x440], 0
jne 0x100874ad
mov byte [ebp - 0x44e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.100099c0
mov al, byte [ebp - 0x44e]
jmp 0x10087889
mov dword [ebp - 0x494], str.Comments
mov dword [ebp - 0x490], 0x100cae58
mov dword [ebp - 0x48c], 0x100cae70
mov dword [ebp - 0x488], 0x100cae88
mov dword [ebp - 0x484], 0x100caea4
mov dword [ebp - 0x480], 0x100caec4
mov dword [ebp - 0x47c], 0x100caee8
mov dword [ebp - 0x478], 0x100caf00
mov dword [ebp - 0x470], 8
mov dword [ebp - 0x45c], 0
jmp 0x10087522
mov edx, dword [ebp - 0x45c]
add edx, 1
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
cmp eax, dword [ebp - 0x470]
jge 0x100875f5
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x41c], 0
push 0x200
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.1008ac40
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.1001cc70
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.10004c90
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100875f0
cmp dword [ebp - 0x41c], 0
jbe 0x100875f0
cmp dword [ebp - 0x448], 0
je 0x100875f0
mov eax, dword [ebp - 0x41c]
push eax
push 0
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.1008ac40
add esp, 0xc
jmp 0x10087513
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x444], 0
push 0x200
push 0
lea edx, [ebp - 0x410]
push edx
call fcn.1008ac40
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.1001cc70
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.10004c90
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10087775
mov edx, dword [ebp - 0x418]
push edx
push 0
mov eax, dword [ebp - 0x444]
push eax
call fcn.1008ac40
add esp, 0xc
mov ecx, dword [ebp - 0x418]
shr ecx, 1
mov dword [ebp - 0x460], ecx
cmp dword [ebp - 0x460], 5
jbe 0x100876b6
mov dword [ebp - 0x460], 5
lea edx, [ebp - 0x43c]
push edx
call fcn.10087970
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x43c]
call fcn.1000ef10
cmp eax, dword [ebp - 0x460]
jbe 0x1008771a
mov eax, dword [ebp - 0x460]
push eax
push 0
lea ecx, [ebp - 0x4ac]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.1000bf00
mov dword [ebp - 0x474], eax
mov edx, dword [ebp - 0x474]
push edx
lea ecx, [ebp - 0x43c]
call fcn.100048a0
lea ecx, [ebp - 0x4ac]
call fcn.10004840
lea ecx, [ebp - 0x43c]
call fcn.1000ef10
shl eax, 1
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x468]
cmp eax, dword [ebp - 0x418]
ja 0x10087766
cmp dword [ebp - 0x444], 0
je 0x10087766
mov ecx, dword [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.10004780
push eax
mov edx, dword [ebp - 0x444]
push edx
call fcn.1008a140
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.10004840
mov dword [ebp - 0x44c], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x44c]
push ecx
push 0x100cafac
lea ecx, [ebp - 0x414]
call fcn.10004c90
push eax
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x44c], 0
je 0x100877c4
mov edx, dword [ebp - 0x420]
push edx
push 0
mov eax, dword [ebp - 0x44c]
push eax
call fcn.1008ac40
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
call fcn.10004780
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0
jne 0x10087808
mov byte [ebp - 0x44f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.100099c0
mov al, byte [ebp - 0x44f]
jmp 0x10087889
mov ecx, dword [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x414]
call fcn.10004c90
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 0x1008785b
mov byte [ebp - 0x450], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.100099c0
mov al, byte [ebp - 0x450]
jmp 0x10087889
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.100099c0
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.100881a5
mov esp, ebp
pop ebp
ret