Function at 0x1001f8d0
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 [0x100a70b4]
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 [0x100a8564], edi
je 0x1001f991
push 0x20c
lea eax, [ebp - 0x210]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x23c], esi
mov esi, dword [0x100a8500]
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 [0x100ad4e8]
call esi
test eax, eax
js 0x1001fad5
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 edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1001fad5
lea ecx, [eax + 0x128]
xor esi, esi
mov eax, ecx
test eax, eax
je 0x1001fa35
mov dl, byte [eax]
test dl, dl
je 0x1001fa35
lea ecx, [ecx]
cmp dl, 0x5c
jne 0x1001f9b7
mov esi, eax
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1001f9b0
test esi, esi
je 0x1001fa35
mov dl, byte [esi]
mov byte [ebp - 0x211], dl
xor edx, edx
mov byte [esi], 0
test ecx, ecx
je 0x1001fa2d
mov al, byte [ecx]
test al, al
je 0x1001fa2d
lea ebx, [ebx]
cmp al, 0x5c
jne 0x1001f9e6
mov edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1001f9e0
test edx, edx
je 0x1001fa2d
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 0x1001fa25
mov eax, dword [ebp - 0x21c]
mov al, byte [eax + ecx]
test al, al
je 0x1001fa25
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1001fa04
jmp 0x1001fa29
test edx, edx
jne 0x1001fa2a
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 0x1001fad5
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 0x100050c0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001fac9
mov ecx, 0x200
mov eax, ebx
cmp byte [eax], 0
je 0x1001faa3
inc eax
sub ecx, 1
jne 0x1001fa98
mov edx, 0x200
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x1001fac9
push ecx
push 0x100050d8
push ecx
sub edx, esi
lea ecx, [esi + ebx]
call fcn.1001f680
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10004f5c
mov dword [ebx + 0x404], edi
mov dword [ebx + 0x400], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp dword [0x100a8564], edi
jne 0x1001fb52
push 0x100050e0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x1001fb52
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 0x218]
push eax
call dword [0x100ad4e8]
call dword [ebp - 0x218]
cmp dword [ebp - 0x224], edi
je 0x1001fb52
push 0x100050f0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1001fb52
push 0
mov ecx, edi
call dword [0x100ad4e8]
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 0x1001fbf5
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001fbf5
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
jne 0x1001fbb8
test edi, edi
je 0x1001fba0
push 1
mov ecx, edi
call dword [0x100ad4e8]
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.1009fbf0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x10005110
push esi
call dword [sym.imp.api_ms_win_core_versionansi_l1_1_0.dll_VerQueryValueA]
test eax, eax
je 0x1001fb90
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 0x1001fc05
push 1
mov ecx, edi
call dword [0x100ad4e8]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret