Function at 0x1000c8c0
Capabilities:
Get file size
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa84
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x1c], ebx
jmp 0x1000c8e3
mov eax, dword [0x10048d20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
lea edx, [ebp - 8]
push edx
push str.SOFTWARE
push SysReAllocString
lea esi, [ecx + eax + 0x58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1000c933
push 0
push 0
push str.Fail1
call fcn.1002fece
push 0
push 0xffffffffffffffff
call dword [0x10048c3c]
cmp dword [ebx + 0x2bc], 1
jne 0x1000c98c
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x123]
mov byte [ebp - 0x124], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x124]
push eax
push ecx
call fcn.100186a8
mov ecx, dword [ebp - 8]
add esp, 0xc
lea edx, [ebp - 4]
lea eax, [ebp - 0x124]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1000c9ea
push 0
push 0
push str.Fail2
jmp 0x1000c9db
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x123]
mov byte [ebp - 0x124], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x124]
push 0x10
push edx
push eax
call fcn.100186a8
mov eax, dword [ebp - 8]
add esp, 0xc
lea ecx, [ebp - 4]
lea edx, [ebp - 0x124]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1000c9ea
push 0
push 0
push str.Fail3
call fcn.1002fece
push 0
push 0xffffffffffffffff
call dword [0x10048c3c]
push 0
push 0
mov edx, dword [ebp - 4]
push 0
lea ecx, [ebp - 0xc]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000ca28
push 0
push 0
push str.Fail4
call fcn.1002fece
push 0
push 0xffffffffffffffff
call dword [0x10048c3c]
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x1000ca39
mov eax, dword [ebp - 0x14]
push eax
push edx
jmp 0x1000cc57
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x123]
mov byte [ebp - 0x124], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x12b
xor eax, eax
lea edi, [ebp - 0xa83]
mov byte [ebp - 0xa84], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x12b
xor eax, eax
lea edi, [ebp - 0x5d3]
mov byte [ebp - 0x5d4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [ebp - 0x20], 0
test edx, edx
jbe 0x1000cc52
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x5d4]
push ecx
push edx
mov edx, dword [ebp - 4]
push 0
lea eax, [ebp - 0x24]
push 0
lea ecx, [ebp - 0xa84]
push eax
push ecx
push edi
push edx
mov dword [ebp - 0x24], 0x400
mov dword [ebp - 0x18], 0x4b0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1000cb6a
mov eax, dword [0x10044578]
lea ecx, [ebp - 0x5d4]
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.1002c9db
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x3c4]
push edx
push eax
call fcn.10019764
add esp, 8
lea ecx, [ebp - 0x10]
test eax, eax
sete bl
call fcn.1002c896
test bl, bl
je 0x1000cb11
mov dword [ebp - 0x20], 1
mov esi, 0x10043fd0
lea eax, [ebp - 0xa84]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1000cb44
test cl, cl
je 0x1000cb40
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1000cb44
add eax, 2
add esi, 2
test cl, cl
jne 0x1000cb1c
xor eax, eax
jmp 0x1000cb49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000cb67
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x5d4]
push eax
lea edx, [ebp - 0x124]
push ecx
push edx
call fcn.10019400
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
inc edi
cmp edi, edx
jb 0x1000ca94
mov eax, dword [ebp - 0x20]
mov edi, 1
cmp eax, edi
jne 0x1000cc52
mov esi, dword [ebp + 8]
mov al, byte [esi + 3]
test al, al
je 0x1000cc22
mov al, byte [ebp - 0x124]
test al, al
jne 0x1000cbde
push 0
push 0x10
push 0x10043fa4
call fcn.1002fece
cmp dword [0x10048f4c], edi
jne 0x1000cbc8
mov ecx, 0x10048c20
call fcn.10005410
mov ecx, 0x10048c20
call fcn.100055e0
push 0
push 0xffffffffffffffff
call dword [0x10048c3c]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
mov cl, byte [ebp - 0x124]
lea eax, [ebp - 0x124]
dec cl
push edi
push eax
mov byte [ebp - 0x124], cl
mov ecx, dword [ebp - 4]
push edi
push 0
push 0x10043fd0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000cc22
push 0
push 0
push str.RFail
call fcn.1002fece
push 0
push 0xffffffffffffffff
call dword [0x10048c3c]
mov al, byte [esi + 5]
test al, al
je 0x1000cc6a
mov edx, dword [ebp - 8]
push esi
push edx
mov ecx, ebx
call fcn.1000cfc0
cmp eax, 0xfffffffe
jne 0x1000cc6a
push 0
push 0xffffffffffffffff
call dword [0x10048c3c]
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x14]
push eax
push edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.1000cca0
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [ebp - 4]
push edx
call esi
jmp 0x1000cc8c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4