Function at 0x6d5a8ba0
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 0x6d5a8e02
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 0x6d5a8cf3
push str.GetFileVersion_for__
mov dword [esi + 4], ebp
mov dword [esi + 8], 1
call fcn.6d5ca1c9
push ebx
lea ecx, [esp + 0x18]
mov dword [esi], eax
mov dword [esp + 0x14], esi
call fcn.6d592e00
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.6d594760
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x6d5a8c4e
lea edx, [esi + 8]
push edx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5a8c4e
mov eax, dword [esi]
cmp eax, ebp
je 0x6d5a8c35
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x6d5a8c45
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 0x6d5a8cf3
lea edi, [esi + 8]
mov ebx, 1
push str.__FAILED
mov dword [esi + 4], ebp
mov dword [edi], ebx
call fcn.6d5ca1c9
mov dword [esi], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.6d594760
push edi
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5a8cbe
mov eax, dword [esi]
cmp eax, ebp
je 0x6d5a8ca5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x6d5a8cb5
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 0x6d5a8cfd
cmp esi, ebp
je 0x6d5a8cf3
push str.__file_does_not_exist_
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
call fcn.6d5ca1c9
lea ecx, [esp + 0x14]
mov dword [esi], eax
push ecx
jmp 0x6d5a8d93
push 0x8007000e
call fcn.6d5ca1c9
cmp esi, ebp
je 0x6d5a8cf3
push str.__error_code
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
call fcn.6d5ca1c9
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
mov dword [esi], eax
mov dword [esp + 0x18], esi
call fcn.6d594760
lea ecx, [esp + 0x14]
call fcn.6d592330
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.6d5a8310
push eax
lea ecx, [esp + 0x14]
call fcn.6d594760
lea ecx, [esp + 0x18]
call fcn.6d592330
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 0x6d5a8cf3
push 0x6d5d19c0
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
call fcn.6d5ca1c9
mov dword [esi], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.6d594760
lea ecx, [esp + 0x14]
call fcn.6d592330
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x6d5a8db5
mov eax, dword [esi]
jmp 0x6d5a8db7
xor eax, eax
push eax
call fcn.6d5951a0
add esp, 4
cmp esi, ebp
je 0x6d5a8df8
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5a8df8
mov eax, dword [esi]
cmp eax, ebp
je 0x6d5a8ddf
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x6d5a8def
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 0x6d5a8e4b
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0x6d5ce20c
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