Function at 0x10050a9
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x100a1c4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x10052eb
push esi
push 2
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x20c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x224]
push dword [ebp - 0x208]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x100285c
push ebx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x234]
mov si, word [eax + 0x16]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
movzx eax, word [eax + 0x14]
push eax
movzx eax, si
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
push 0x1002844
add edi, 4
push edi
call esi
add esp, 0x18
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x1002840
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x10051b9
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x10052f1
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x100280c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10051ed
cmp dword [ebp - 0x228], 4
jb 0x10051ed
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax]
mov dword [ebp - 0x214], eax
test ebx, ebx
je 0x10052d3
and word [ebp - 0x204], 0
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x202]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x212]
movzx ecx, word [ebp - 0x214]
push 0x1001da4
push eax
push ecx
mov edi, 0x10027d4
lea eax, [ebp - 0x204]
push edi
push eax
mov dword [ebp - 0x208], ecx
call esi
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100526e
push dword [ebp - 0x210]
mov eax, dword [ebp - 0x218]
add eax, 0x20c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx eax, word [ebp - 0x212]
push 0x10027b0
push eax
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10052c5
push dword [ebp - 0x210]
mov eax, dword [ebp - 0x218]
add eax, 0x414
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x208]
mov ecx, dword [ebp - 0x218]
mov dword [ecx], eax
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007a24
leave
ret 8