Function at 0x1009300
Capabilities:
Delete file
Query or enumerate registry value
Read .ini file
Set file attributes
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x948
mov eax, dword [0x100d0ac]
and dword [ebp - 0x904], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0x900]
mov dword [ebp - 0x914], eax
mov dword [ebp - 0x918], ebx
call fcn.0100a525
push 0x41
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x844]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
and dword [ebp - 0x91c], 0
mov ecx, edx
lea edi, [ebp - 0x10c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x52c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov ecx, edx
mov byte [ebp - 0x634], 0
lea edi, [ebp - 0x633]
rep stosd dword es:[edi], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x634]
push eax
push 0xd2
push dword [ebp - 0x914]
call dword [sym.imp.USER32.dll_LoadStringA]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x10012fc
push 0x10012f0
push 0x10012e8
call edi
test eax, eax
jne 0x10093ca
mov eax, 0x80004005
jmp 0x100982c
push ebx
call fcn.01004a3f
test eax, eax
jl 0x1009818
mov ebx, 0x80000001
lea eax, [ebp - 0x73c]
jne 0x100940a
push 0x1002084
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and dword [ebp - 0x910], 0
mov dword [ebp - 0x908], ebx
mov dword [ebp - 0x924], 0x10
jmp 0x1009434
push 0x1001ee0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x908], 0x80000002
mov dword [ebp - 0x924], 0x19
mov dword [ebp - 0x910], 1
push dword [ebp - 0x918]
lea eax, [ebp - 0x424]
push esi
push eax
push 0x10012fc
push 0x10018a4
push 0x10012e8
call edi
cmp byte [ebp - 0x424], 0
je 0x1009818
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x31c]
push 0x100204c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x928]
push eax
xor edi, edi
lea eax, [ebp - 0x90c]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebp - 0x31c]
push eax
push dword [ebp - 0x908]
mov dword [ebp - 0x928], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1009818
lea eax, [ebp - 0x908]
push eax
push 0x20019
push edi
push 0x1001278
push dword [ebp - 0x908]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100980c
lea eax, [ebp - 0x920]
push eax
lea eax, [ebp - 0x31c]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x908]
mov dword [ebp - 0x920], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100980c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.01009278
push dword [ebp - 0x908]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov dword [ebp - 0x920], eax
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push 0x100203c
push dword [ebp - 0x90c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1009818
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x52c]
push 0x1001b0c
push eax
call esi
add esp, 0x10
push dword [ebp - 0x90c]
call edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x844]
push 0x1002030
push eax
call esi
add esp, 0x10
cmp byte [ebp - 0x10c], 0
je 0x100967a
lea ecx, [ebp - 0x900]
call fcn.0100a67c
test eax, eax
je 0x100962f
lea eax, [ebp - 0x904]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.01003b1a
test eax, eax
je 0x1009614
lea ecx, [ebp - 0x900]
call fcn.0100a67c
neg eax
sbb eax, eax
inc eax
push eax
push dword [ebp - 0x904]
lea eax, [ebp - 0x10c]
push eax
call fcn.01004482
push dword [ebp - 0x904]
call fcn.0100a0a7
cmp dword [ebp - 0x910], 0
je 0x100962f
push dword [ebp - 0x914]
lea eax, [ebp - 0x214]
push eax
call fcn.01003879
push dword [ebp - 0x910]
lea eax, [ebp - 0x904]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.010036ac
test eax, eax
je 0x100966f
lea ecx, [ebp - 0x900]
call fcn.0100a67c
neg eax
sbb eax, eax
inc eax
push eax
push dword [ebp - 0x904]
lea eax, [ebp - 0x10c]
push eax
call fcn.01004482
push dword [ebp - 0x904]
call fcn.0100a0a7
lea eax, [ebp - 0x844]
push eax
push 0
push 0x10018b4
push 0x1001888
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jg 0x10096a3
push dword [ebp - 0x918]
call fcn.01003b9b
push 0
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x73c]
push eax
push dword [ebp - 0x918]
call fcn.0100ac25
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x91c], ecx
lea ecx, [ebp - 0x900]
call fcn.0100a67c
test eax, eax
je 0x10096f2
push dword [ebp - 0x924]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x914]
call fcn.01005227
cmp byte [ebp - 0x52c], 0
je 0x100974c
push 0x80
lea eax, [ebp - 0x52c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x100974c
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x948]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x52c]
mov dword [ebp - 0x940], eax
lea eax, [ebp - 0x948]
push eax
mov dword [ebp - 0x944], 3
mov word [ebp - 0x938], 0x14
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
cmp dword [ebp - 0x910], 0
mov edi, 0x1001f94
je 0x1009783
lea ecx, [ebp - 0x900]
call fcn.0100a67c
test eax, eax
je 0x1009775
lea eax, [ebp - 0x424]
push eax
call fcn.01004f90
lea eax, [ebp - 0x10c]
push eax
push 0x1001fcc
jmp 0x100978b
lea eax, [ebp - 0x10c]
push eax
push edi
lea eax, [ebp - 0x31c]
push 0x1001754
push eax
call esi
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x10097c7
push 1
lea eax, [ebp - 0x31c]
push eax
push ebx
call fcn.0100b077
push 1
push 0x1001fcc
push ebx
call fcn.0100b077
push 1
push edi
push ebx
call fcn.0100b077
push 0
mov esi, 0x1001278
push esi
mov edi, 0x80000002
push edi
call fcn.0100b077
push 0
push esi
push ebx
call fcn.0100b077
push 0x1001ffc
push edi
call fcn.01003c89
push 1
mov esi, 0x1001860
push esi
push edi
call fcn.0100b077
push 1
push esi
push ebx
call fcn.0100b077
call fcn.01003ebd
jmp 0x1009818
push dword [ebp - 0x90c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x91c]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009b9d
leave
ret 0xc