Function at 0x1002ad60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100a11a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.100034b0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x1002afe4
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.10036cc5
add esp, 4
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x1002afe4
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.100034b0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1002afb6
call fcn.1002b2b0
movzx eax, al
test eax, eax
je 0x1002af1b
call fcn.1002b1e0
movzx ecx, al
test ecx, ecx
jne 0x1002af1b
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x2c]
push eax
push str.VarFileInfoTranslation
mov ecx, dword [ebp - 0x38]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1002af1b
mov dword [ebp - 0x3c], 0
jmp 0x1002ae4d
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x1c]
shr eax, 2
cmp dword [ebp - 0x3c], eax
jae 0x1002af1b
push 4
lea ecx, [ebp - 0x14]
call fcn.100062d0
lea ecx, [ebp - 0x14]
call fcn.10002d70
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
movzx eax, word [edx + ecx*4 + 2]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
movzx eax, word [edx + ecx*4]
push eax
push str.StringFileInfo_04x_04xFileVersion
lea ecx, [ebp - 0x14]
push ecx
call fcn.100046a0
add esp, 0x10
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
call fcn.100034b0
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1002af07
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100058d0
push 0x2e
push 0x2c
mov ecx, dword [ebp + 0xc]
call fcn.1002b890
push 0x20
mov ecx, dword [ebp + 0xc]
call fcn.1002b390
mov dword [ebp - 0x40], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10003140
jmp 0x1002af1b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10003140
jmp 0x1002ae44
cmp dword [ebp - 0x40], 0
je 0x1002af34
mov ecx, dword [ebp + 0xc]
call fcn.10004f60
movzx ecx, al
test ecx, ecx
je 0x1002afb6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
push 0x10086c88
mov ecx, dword [ebp - 0x38]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1002afb6
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push str._d._d._d._d
mov edx, dword [ebp + 0xc]
push edx
call fcn.100046a0
add esp, 0x18
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10036cce
add esp, 4
cmp dword [ebp - 0x48], 0
jne 0x1002afd7
mov dword [ebp - 0x50], 0
jmp 0x1002afe4
mov dword [ebp - 0x38], 0x8123
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x40], 0
je 0x1002aff0
mov byte [ebp - 0x31], 1
jmp 0x1002aff4
mov byte [ebp - 0x31], 0
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036c51
mov esp, ebp
pop ebp
ret