Function at 0x1008700
Capabilities:
Delete registry value
Get common file path
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x100d0ac]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x844], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x83c], ecx
push eax
lea ecx, [ebp - 0x830]
mov dword [ebp - 0x834], 1
call fcn.0100a825
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x1001d68
push edi
lea eax, [ebp - 0x626]
push eax
push eax
lea eax, [ebp - 0x727]
push eax
lea eax, [ebp - 0x72b]
push eax
lea eax, [ebp - 0x214]
push 0x1001ed4
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x214]
push eax
call fcn.0100a023
test eax, eax
mov ebx, 0x104
jne 0x10087cb
push ebx
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x626]
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x214]
push 0x1001d60
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
call fcn.0100a023
test eax, eax
je 0x1008984
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x424]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x424]
push eax
push 0x10012fc
push 0x1001d30
push 0x10012e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x424], 0
je 0x100897e
lea eax, [ebp - 0x424]
push eax
push 0x1001ce0
mov ebx, 0x1001b0c
lea eax, [ebp - 0x10c]
push ebx
push eax
call esi
mov edi, 0x105
add esp, 0x10
cmp eax, edi
jae 0x1008852
lea eax, [ebp - 0x10c]
push eax
push 0x80000002
call fcn.01003c89
xor ecx, ecx
test eax, eax
setge cl
and ecx, 1
mov dword [ebp - 0x834], ecx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x10c]
push 0x1001d54
push eax
call esi
add esp, 0xc
cmp eax, edi
jae 0x100888c
lea eax, [ebp - 0x10c]
push eax
push 0x80000000
call fcn.01003c89
xor ecx, ecx
test eax, eax
setge cl
and dword [ebp - 0x834], ecx
lea eax, [ebp - 0x626]
push eax
push 0x1001ca8
lea eax, [ebp - 0x10c]
push ebx
push eax
call esi
add esp, 0x10
cmp eax, edi
jae 0x1008903
lea eax, [ebp - 0x840]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008903
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x1001d9c
push dword [ebp - 0x840]
call esi
neg eax
sbb eax, eax
push 0x1001da8
push dword [ebp - 0x840]
inc eax
and dword [ebp - 0x834], eax
call esi
neg eax
sbb eax, eax
inc eax
and dword [ebp - 0x834], eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x31c]
push eax
mov byte [ebp - 0x31c], 0
call fcn.01003879
test eax, eax
je 0x100897e
and dword [ebp - 0x838], 0
push 1
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.010036ac
test eax, eax
je 0x1008973
push 0x19
push dword [ebp - 0x83c]
push dword [ebp - 0x844]
call fcn.01005227
push 1
push dword [ebp - 0x838]
push dword [ebp - 0x83c]
call fcn.01004714
xor ecx, ecx
test eax, eax
setge cl
and dword [ebp - 0x834], ecx
push dword [ebp - 0x838]
call fcn.0100a0a7
mov eax, dword [ebp - 0x834]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009b9d
leave
ret 0xc