Function at 0x100208a0
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x100a80a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x220], eax
mov esi, ecx
mov dword [ebp - 0x224], edi
cmp dword [0x100a959c], edi
je 0x10020978
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x23c], esi
mov esi, dword [0x100a951c]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x234], eax
mov ecx, esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x238], 1
push eax
mov dword [ebp - 0x230], 0x20c
mov dword [ebp - 0x210], edi
call dword [0x100ae518]
call esi
test eax, eax
jns 0x1002094f
push 0x10004358
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
xor eax, eax
push eax
push eax
push 0x200
push ebx
push 0xffffffffffffffff
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x10020ab2
lea ecx, [eax + 0x128]
xor esi, esi
mov eax, ecx
test eax, eax
je 0x10020a15
mov dl, byte [eax]
test dl, dl
je 0x10020a15
cmp dl, 0x5c
jne 0x1002099b
mov esi, eax
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10020994
test esi, esi
je 0x10020a15
mov al, byte [esi]
mov byte [esi], dl
xor edx, edx
mov byte [ebp - 0x211], al
mov al, byte [ecx]
test al, al
je 0x10020a0d
lea esp, [esp]
cmp al, 0x5c
jne 0x100209c6
mov edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x100209c0
test edx, edx
je 0x10020a0d
mov eax, esi
mov edx, 0x200
sub eax, ebx
mov ecx, ebx
inc eax
mov dword [ebp - 0x21c], eax
lea eax, [edx + 0x7ffffdfe]
test eax, eax
je 0x10020a0a
mov eax, dword [ebp - 0x21c]
mov al, byte [eax + ecx]
test al, al
je 0x10020a05
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100209e4
jmp 0x10020a09
test edx, edx
jne 0x10020a0a
dec ecx
mov byte [ecx], 0
mov al, byte [ebp - 0x211]
mov byte [esi], al
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x220]
push 1
push 0
add eax, 0x13a
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10020ab2
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x200
push eax
push ebx
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], edi
push eax
push 0
push 0x100050a4
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10020aa6
mov ecx, 0x200
mov eax, ebx
cmp byte [eax], 0
je 0x10020a83
inc eax
sub ecx, 1
jne 0x10020a78
test ecx, ecx
je 0x10020aa6
mov edx, 0x200
mov eax, edx
sub eax, ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 0x100050bc
push ecx
sub edx, ecx
add ecx, ebx
call fcn.10020650
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10004f40
mov dword [ebx + 0x404], edi
mov dword [ebx + 0x400], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp dword [0x100a959c], edi
jne 0x10020b2f
push 0x100050c4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x10020b2f
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 0x218]
push eax
call dword [0x100ae518]
call dword [ebp - 0x218]
cmp dword [ebp - 0x224], edi
je 0x10020b2f
push 0x100050d4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10020b2f
push 0
mov ecx, edi
call dword [0x100ae518]
call edi
push 0
push ebx
push 1
call dword [sym.imp.api_ms_win_core_versionansi_l1_1_0.dll_GetFileVersionInfoSizeExA]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x10020bd2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10020bd2
push esi
push dword [ebp - 0x21c]
push 0
push ebx
push 3
call dword [sym.imp.api_ms_win_core_versionansi_l1_1_0.dll_GetFileVersionInfoExA]
test eax, eax
je 0x10020b8b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x100050f4
push esi
call dword [sym.imp.api_ms_win_core_versionansi_l1_1_0.dll_VerQueryValueA]
test eax, eax
jne 0x10020bb3
test edi, edi
je 0x10020b9b
push 1
mov ecx, edi
call dword [0x100ae518]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a1500
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x22c]
push esi
mov eax, dword [ecx + 8]
mov dword [ebx + 0x404], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x400], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x10020be2
push 1
mov ecx, edi
call dword [0x100ae518]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a1500
mov esp, ebp
pop ebp
ret