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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bfe36
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x100f101c]
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.10003830
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0
jne 0x1007eb30
xor al, al
jmp 0x1007f019
push 4
lea ecx, [ebp - 0x414]
call fcn.10015240
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.1008023c
add esp, 4
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x414]
call fcn.10025780
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x458]
push eax
push 0
lea ecx, [ebp - 0x414]
call fcn.10003c60
push eax
call fcn.10081e90
add esp, 0xc
lea ecx, [ebp - 0x414]
call fcn.10003c60
push eax
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x424]
push edx
mov ecx, dword [ebp + 8]
call fcn.10003830
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1007ebd8
mov byte [ebp - 0x44d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.10004920
mov al, byte [ebp - 0x44d]
jmp 0x1007f019
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x440]
push ecx
push 0x100c2a78
lea ecx, [ebp - 0x414]
call fcn.10003c60
push eax
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x440], 0
jne 0x1007ec3d
mov byte [ebp - 0x44e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.10004920
mov al, byte [ebp - 0x44e]
jmp 0x1007f019
mov dword [ebp - 0x494], str.Comments
mov dword [ebp - 0x490], 0x100c2ac0
mov dword [ebp - 0x48c], 0x100c2ad8
mov dword [ebp - 0x488], 0x100c2af0
mov dword [ebp - 0x484], 0x100c2b0c
mov dword [ebp - 0x480], 0x100c2b2c
mov dword [ebp - 0x47c], 0x100c2b50
mov dword [ebp - 0x478], 0x100c2b68
mov dword [ebp - 0x470], 8
mov dword [ebp - 0x45c], 0
jmp 0x1007ecb2
mov edx, dword [ebp - 0x45c]
add edx, 1
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
cmp eax, dword [ebp - 0x470]
jge 0x1007ed85
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x41c], 0
push 0x200
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.10081e90
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.100117e0
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.10003c60
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1007ed80
cmp dword [ebp - 0x41c], 0
jbe 0x1007ed80
cmp dword [ebp - 0x448], 0
je 0x1007ed80
mov eax, dword [ebp - 0x41c]
push eax
push 0
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.10081e90
add esp, 0xc
jmp 0x1007eca3
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x444], 0
push 0x200
push 0
lea edx, [ebp - 0x410]
push edx
call fcn.10081e90
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.100117e0
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.10003c60
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1007ef05
mov edx, dword [ebp - 0x418]
push edx
push 0
mov eax, dword [ebp - 0x444]
push eax
call fcn.10081e90
add esp, 0xc
mov ecx, dword [ebp - 0x418]
shr ecx, 1
mov dword [ebp - 0x460], ecx
cmp dword [ebp - 0x460], 5
jbe 0x1007ee46
mov dword [ebp - 0x460], 5
lea edx, [ebp - 0x43c]
push edx
call fcn.1007f100
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x43c]
call fcn.10009510
cmp eax, dword [ebp - 0x460]
jbe 0x1007eeaa
mov eax, dword [ebp - 0x460]
push eax
push 0
lea ecx, [ebp - 0x4ac]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.10007610
mov dword [ebp - 0x474], eax
mov edx, dword [ebp - 0x474]
push edx
lea ecx, [ebp - 0x43c]
call fcn.10003900
lea ecx, [ebp - 0x4ac]
call fcn.100038a0
lea ecx, [ebp - 0x43c]
call fcn.10009510
shl eax, 1
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x468]
cmp eax, dword [ebp - 0x418]
ja 0x1007eef6
cmp dword [ebp - 0x444], 0
je 0x1007eef6
mov ecx, dword [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.10003830
push eax
mov edx, dword [ebp - 0x444]
push edx
call fcn.10081390
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.100038a0
mov dword [ebp - 0x44c], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x44c]
push ecx
push 0x100c2c14
lea ecx, [ebp - 0x414]
call fcn.10003c60
push eax
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x44c], 0
je 0x1007ef54
mov edx, dword [ebp - 0x420]
push edx
push 0
mov eax, dword [ebp - 0x44c]
push eax
call fcn.10081e90
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
call fcn.10003830
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0
jne 0x1007ef98
mov byte [ebp - 0x44f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.10004920
mov al, byte [ebp - 0x44f]
jmp 0x1007f019
mov ecx, dword [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x414]
call fcn.10003c60
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 0x1007efeb
mov byte [ebp - 0x450], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.10004920
mov al, byte [ebp - 0x450]
jmp 0x1007f019
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.10004920
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.1007f947
mov esp, ebp
pop ebp
ret