Function at 0x420348
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp - 0xe0]
xor esi, esi
mov dword [ebp - 0xdc], ebx
push eax
mov ecx, esi
mov dword [ebp - 0xe0], esi
push ebx
mov dword [ebp - 0xd0], ecx
mov edi, esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0xd8], eax
test eax, eax
jne 0x420542
mov ecx, ebx
call fcn.0041f21e
test eax, eax
je 0x4205fb
push esi
push 0x80
push 3
push esi
xor eax, eax
inc eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd8], eax
cmp eax, 0xffffffff
je 0x4205fb
lea ecx, [ebp - 0xf0]
push ecx
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42052f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x42052f
push 0xac
lea eax, [ebp - 0xc8]
push esi
push eax
call sub.msvcrt.dll_memset
movzx edi, word [ebp - 0x12]
add esp, 0xc
movzx eax, word [ebp - 0xe]
mov ebx, esi
movzx ecx, word [ebp - 0x14]
shl edi, 0x10
or edi, eax
mov dword [ebp - 0xd0], ecx
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x420534
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
jle 0x42044d
movzx eax, cx
jmp 0x420454
mov eax, ecx
neg eax
movzx eax, ax
xor edx, edx
movzx eax, ax
mov dword [ebp - 0xcc], 0x3c
div dword [ebp - 0xcc]
cmp ecx, 1
mov cx, word [ebp - 0xe]
movzx edx, ax
mov ax, word [ebp - 0xc]
jge 0x42047e
add ax, dx
jmp 0x42049f
cmp ax, dx
jae 0x42049c
mov dword [ebp - 0xcc], 0xffff
add cx, word [ebp - 0xcc]
add ax, 0x18
mov word [ebp - 0xe], cx
sub ax, dx
mov word [ebp - 0xc], ax
cmp ax, 0x17
jbe 0x4204e0
mov edx, 0xffe8
add ax, dx
inc cx
mov word [ebp - 0xc], ax
mov word [ebp - 0xe], cx
cmp cx, 0x20
jne 0x4204e0
mov ax, word [ebp - 0x12]
xor ecx, ecx
inc ecx
inc ax
mov word [ebp - 0xe], cx
mov word [ebp - 0x12], ax
cmp ax, 0xd
jne 0x4204e0
inc word [ebp - 0x14]
mov word [ebp - 0x12], cx
fldz
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x14]
push eax
fstp qword [ebp - 0xe8]
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x420534
fld qword [ebp - 0xe8]
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x420534
movzx edi, word [ebp - 0x12]
movzx ecx, word [ebp - 0x14]
movzx eax, word [ebp - 0xe]
shl edi, 0x10
mov dword [ebp - 0xd0], ecx
or edi, eax
jmp 0x420534
mov ebx, 0x80004005
push dword [ebp - 0xd8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4205b8
push eax
call fcn.00440dea
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4205fb
push ebx
push dword [ebp - 0xd8]
mov dword [ebp - 0xcc], 0x80004005
push esi
push dword [ebp - 0xdc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4205ab
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xdc]
push eax
push 0x4043f0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4205ab
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xcc], esi
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0xd0], ecx
push ebx
call fcn.00440db7
mov ebx, dword [ebp - 0xcc]
pop ecx
test ebx, ebx
js 0x4205fb
mov eax, dword [ebp - 0xd0]
xor ebx, ebx
mov ecx, eax
movzx eax, ax
shr ecx, 0x10
shld ebx, ecx, 0x10
cdq
shl ecx, 0x10
or ebx, edx
or ecx, eax
mov eax, edi
shld ebx, ecx, 0x10
shr eax, 0x10
shl ecx, 0x10
or ebx, esi
or ecx, eax
movzx eax, di
mov esi, ecx
cdq
shld ebx, esi, 0x10
shl esi, 0x10
or esi, eax
or ebx, edx
jmp 0x4205fd
mov ebx, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
mov edx, ebx
xor ecx, ebp
pop ebx
call fcn.00441130
leave