Function at 0x10569c6
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], ecx
cmp edi, esi
je 0x1056c95
cmp eax, esi
je 0x1056c95
cmp ecx, esi
je 0x1056c95
lea eax, [ebp - 0xd4]
push eax
push edi
mov dword [ebp - 0xd4], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, esi
jne 0x1056c0e
push edi
call fcn.010561eb
test eax, eax
jne 0x1056a3e
mov eax, 0x80070002
jmp 0x1056c9a
push esi
push 0x80
push 3
push esi
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc8], eax
cmp eax, 0xffffffff
je 0x1056c95
lea ecx, [ebp - 0xdc]
push ecx
push esi
push esi
push eax
mov dword [ebp - 0xc4], 0x80004005
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1056bf7
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1056bf7
push 0xac
lea eax, [ebp - 0xb0]
push esi
push eax
call sub.msvcrt.dll_memset
movzx eax, word [ebp - 0xc0]
mov edi, dword [ebp - 0xd0]
movzx ecx, word [ebp - 0xba]
mov ebx, dword [ebp - 0xcc]
mov dword [edi], eax
movzx eax, word [ebp - 0xbe]
shl eax, 0x10
or eax, ecx
mov dword [ebx], eax
add esp, 0xc
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xc4], esi
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x1056bf7
mov ecx, dword [ebp - 0xb0]
cmp ecx, esi
jle 0x1056b08
movzx eax, cx
jmp 0x1056b0f
mov eax, ecx
neg eax
movzx eax, ax
movzx eax, ax
cdq
push 0x3c
pop esi
idiv esi
cmp ecx, 1
movzx eax, ax
jge 0x1056b29
add word [ebp - 0xb8], ax
jmp 0x1056b4d
cmp word [ebp - 0xb8], ax
jae 0x1056b46
mov ecx, 0xffff
add word [ebp - 0xba], cx
add word [ebp - 0xb8], 0x18
sub word [ebp - 0xb8], ax
cmp word [ebp - 0xb8], 0x17
jbe 0x1056b9d
mov eax, 0xffe8
add word [ebp - 0xb8], ax
inc word [ebp - 0xba]
cmp word [ebp - 0xba], 0x20
jne 0x1056b9d
xor eax, eax
inc eax
inc word [ebp - 0xbe]
cmp word [ebp - 0xbe], 0xd
mov word [ebp - 0xba], ax
jne 0x1056b9d
inc word [ebp - 0xc0]
mov word [ebp - 0xbe], ax
fldz
lea eax, [ebp - 0xe4]
push eax
fstp qword [ebp - 0xe4]
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x1056bf7
fld qword [ebp - 0xe4]
lea eax, [ebp - 0xc0]
push eax
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x1056bf7
movzx eax, word [ebp - 0xc0]
movzx ecx, word [ebp - 0xba]
mov dword [edi], eax
movzx eax, word [ebp - 0xbe]
shl eax, 0x10
or eax, ecx
mov dword [ebx], eax
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc4]
jmp 0x1056c9a
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0xc4], eax
cmp eax, esi
jne 0x1056c26
mov eax, 0x8007000e
jmp 0x1056c9a
push eax
push ebx
push esi
push edi
mov dword [ebp - 0xc8], 0x80004005
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1056c81
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xd8]
push eax
push 0x1005778
push dword [ebp - 0xc4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1056c81
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0xd0]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0xcc]
mov dword [ecx], eax
mov dword [ebp - 0xc8], esi
push dword [ebp - 0xc4]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0xc8]
pop ecx
jmp 0x1056c9a
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 0xc