Function at 0x414130
Capabilities:
Get file version info

Disassembly:
sub esp, 0x218
mov eax, 0x4d6e34
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x414147
xor ebp, ebp
jmp 0x414154
push 0x4d6e34
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov ebx, dword [esp + 0x230]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x414168
cmp ebp, dword [eax - 4]
jle 0x41417b
mov ecx, ebx
call fcn.00402f00
push ebp
mov ecx, ebx
call fcn.00402e70
test eax, eax
je 0x4141a3
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
mov esi, 0x4d6e34
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
mov eax, dword [eax]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x4141d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4141ee
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x234]
xor edi, edi
push edi
mov eax, dword [eax]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41431c
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x463600
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41431c
mov word [esp + 0x20], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
lea eax, [esp + 0x28]
shr edx, 0x10
push ecx
push edx
push str._d._d._d._d
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x3c]
add esp, 0x1c
test ecx, ecx
jne 0x414293
xor ebp, ebp
jmp 0x4142a0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x4142b2
cmp ebp, dword [eax - 4]
jle 0x4142ec
mov edx, dword [0x463294]
add eax, 0xfffffff4
cmp eax, edx
je 0x4142e0
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4142d8
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.0044737a
add esp, 4
mov ecx, dword [0x463290]
mov dword [ebx], ecx
push ebp
mov ecx, ebx
call fcn.00402e70
test eax, eax
je 0x414313
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
lea esi, [esp + 0x20]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
mov ebp, dword [esp + 0x10]
mov edi, 1
push ebp
call fcn.0044737a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret