Function at 0x100203b0
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 [0x100a60a4]
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 [0x100a75a4], edi
je 0x10020488
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 [0x100a7524]
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 [0x100ac510]
call esi
test eax, eax
jns 0x1002045f
push 0x10004398
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 0x100205c5
lea ecx, [eax + 0x128]
xor esi, esi
mov eax, ecx
test eax, eax
je 0x10020525
mov dl, byte [eax]
test dl, dl
je 0x10020525
cmp dl, 0x5c
jne 0x100204ab
mov esi, eax
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100204a4
test esi, esi
je 0x10020525
mov al, byte [esi]
mov byte [esi], dl
xor edx, edx
mov byte [ebp - 0x211], al
mov al, byte [ecx]
test al, al
je 0x1002051d
lea esp, [esp]
cmp al, 0x5c
jne 0x100204d6
mov edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x100204d0
test edx, edx
je 0x1002051d
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 0x10020515
mov eax, dword [ebp - 0x21c]
mov al, byte [eax + ecx]
test al, al
je 0x10020515
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100204f4
jmp 0x10020519
test edx, edx
jne 0x1002051a
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 0x100205c5
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 0x100050ec
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100205b9
mov ecx, 0x200
mov eax, ebx
cmp byte [eax], 0
je 0x10020593
inc eax
sub ecx, 1
jne 0x10020588
mov edx, 0x200
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x100205b9
push ecx
push 0x10005104
push ecx
sub edx, esi
lea ecx, [esi + ebx]
call fcn.10020160
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10004f88
mov dword [ebx + 0x404], edi
mov dword [ebx + 0x400], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp dword [0x100a75a4], edi
jne 0x10020642
push 0x1000510c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x10020642
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 0x218]
push eax
call dword [0x100ac510]
call dword [ebp - 0x218]
cmp dword [ebp - 0x224], edi
je 0x10020642
push 0x1000511c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10020642
push 0
mov ecx, edi
call dword [0x100ac510]
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 0x100206e5
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x100206e5
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 0x1002069e
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x1000513c
push esi
call dword [sym.imp.api_ms_win_core_versionansi_l1_1_0.dll_VerQueryValueA]
test eax, eax
jne 0x100206c6
test edi, edi
je 0x100206ae
push 1
mov ecx, edi
call dword [0x100ac510]
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.1009ebb0
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 0x100206f5
push 1
mov ecx, edi
call dword [0x100ac510]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009ebb0
mov esp, ebp
pop ebp
ret