Function at 0x1001fd50
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 [0x100a20a4]
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 [0x100a357c], edi
je 0x1001fe28
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 [0x100a350c]
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 [0x100a8504]
call esi
test eax, eax
jns 0x1001fdff
push 0x1000436c
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 0x1001ff65
lea ecx, [eax + 0x128]
xor esi, esi
mov eax, ecx
test eax, eax
je 0x1001fec5
mov dl, byte [eax]
test dl, dl
je 0x1001fec5
cmp dl, 0x5c
jne 0x1001fe4b
mov esi, eax
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1001fe44
test esi, esi
je 0x1001fec5
mov dl, byte [esi]
mov byte [ebp - 0x211], dl
xor edx, edx
mov byte [esi], 0
test ecx, ecx
je 0x1001febd
mov al, byte [ecx]
test al, al
je 0x1001febd
mov edi, edi
cmp al, 0x5c
jne 0x1001fe76
mov edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1001fe70
test edx, edx
je 0x1001febd
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 0x1001feb5
mov eax, dword [ebp - 0x21c]
mov al, byte [eax + ecx]
test al, al
je 0x1001feb5
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1001fe94
jmp 0x1001feb9
test edx, edx
jne 0x1001feba
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 0x1001ff65
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 0x100050bc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001ff59
mov ecx, 0x200
mov eax, ebx
cmp byte [eax], 0
je 0x1001ff33
inc eax
sub ecx, 1
jne 0x1001ff28
mov edx, 0x200
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x1001ff59
push ecx
push 0x100050d4
push ecx
sub edx, esi
lea ecx, [esi + ebx]
call fcn.1001fb00
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10004f58
mov dword [ebx + 0x404], edi
mov dword [ebx + 0x400], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp dword [0x100a357c], edi
jne 0x1001ffe2
push 0x100050dc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x1001ffe2
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 0x218]
push eax
call dword [0x100a8504]
call dword [ebp - 0x218]
cmp dword [ebp - 0x224], edi
je 0x1001ffe2
push 0x100050ec
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1001ffe2
push 0
mov ecx, edi
call dword [0x100a8504]
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 0x10020085
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10020085
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 0x1002003e
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x1000510c
push esi
call dword [sym.imp.api_ms_win_core_versionansi_l1_1_0.dll_VerQueryValueA]
test eax, eax
jne 0x10020066
test edi, edi
je 0x1002004e
push 1
mov ecx, edi
call dword [0x100a8504]
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.1009b610
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 0x10020095
push 1
mov ecx, edi
call dword [0x100a8504]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009b610
mov esp, ebp
pop ebp
ret