Function at 0x10016670
Capabilities:
Get file version info

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x100168d2
call dword [sym.imp.kernel32.dll_GetLastError]
push 0xc
mov dword [esp + 0x1c], eax
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x100167c3
push str.GetFileVersion_for__
mov dword [esi + 4], ebp
mov dword [esi + 8], 1
call fcn.10030c90
push ebx
lea ecx, [esp + 0x18]
mov dword [esi], eax
mov dword [esp + 0x14], esi
call fcn.10002e00
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.10004760
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x1001671e
lea edx, [esi + 8]
push edx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x1001671e
mov eax, dword [esi]
cmp eax, ebp
je 0x10016705
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x10016715
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x100167c3
lea edi, [esi + 8]
mov ebx, 1
push str.__FAILED
mov dword [esi + 4], ebp
mov dword [edi], ebx
call fcn.10030c90
mov dword [esi], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.10004760
push edi
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x1001678e
mov eax, dword [esi]
cmp eax, ebp
je 0x10016775
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x10016785
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esp + 0x18]
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
cmp edi, 2
jne 0x100167cd
cmp esi, ebp
je 0x100167c3
push str.__file_does_not_exist_
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
call fcn.10030c90
lea ecx, [esp + 0x14]
mov dword [esi], eax
push ecx
jmp 0x10016863
push 0x8007000e
call fcn.10030c90
cmp esi, ebp
je 0x100167c3
push str.__error_code
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
call fcn.10030c90
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
mov dword [esi], eax
mov dword [esp + 0x18], esi
call fcn.10004760
lea ecx, [esp + 0x14]
call fcn.10002330
lea ecx, [esp + 0x28]
mov eax, 0x13
push ecx
lea ecx, [esp + 0x1c]
mov word [esp + 0x2c], ax
mov dword [esp + 0x34], edi
call fcn.10015dd0
push eax
lea ecx, [esp + 0x14]
call fcn.10004760
lea ecx, [esp + 0x18]
call fcn.10002330
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x100167c3
push 0x1003e66c
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
call fcn.10030c90
mov dword [esi], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.10004760
lea ecx, [esp + 0x14]
call fcn.10002330
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x10016885
mov eax, dword [esi]
jmp 0x10016887
xor eax, eax
push eax
call fcn.10004ff0
add esp, 4
cmp esi, ebp
je 0x100168c8
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x100168c8
mov eax, dword [esi]
cmp eax, ebp
je 0x100168af
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x100168bf
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
push esi
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov edi, eax
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1001691b
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0x1003b0cc
push edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + 0xa]
mov ecx, dword [esp + 0x40]
mov dword [ecx], edx
movzx edx, word [eax + 8]
mov dword [ecx + 4], edx
movzx eax, word [eax + 0xe]
mov dword [ecx + 8], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret