Function at 0x30027490
Capabilities:
Delete file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x90
push 0
push 0
dec ecx
jne 0x30027498
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x30027861
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x228]
xor edx, edx
call fcn.30025e74
test al, al
je 0x30027843
lea eax, [ebp - 0x228]
mov dl, 1
call fcn.30026ba0
mov ebx, eax
test bl, bl
jne 0x30027843
mov word [ebp - 0x432], 0x5c
mov word [ebp - 0x430], 0x3f
mov word [ebp - 0x42e], 0x3f
mov word [ebp - 0x42c], 0x5c
mov word [ebp - 0x42a], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x432]
push eax
call sub.KERNEL32.dll_lstrcatW
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x450]
mov eax, 0x3002787c
call fcn.30017d04
push dword [ebp - 0x450]
push 0x300278a8
lea edx, [ebp - 0x454]
mov eax, 0x300278b4
call fcn.30017d04
push dword [ebp - 0x454]
lea eax, [ebp - 0x44c]
mov edx, 3
call fcn.30015808
mov eax, dword [ebp - 0x44c]
call fcn.30015948
push eax
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x300275c3
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x458]
mov eax, 0x300278c8
call fcn.30017d04
mov eax, dword [ebp - 0x458]
call fcn.30015948
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
setne byte [ebp - 0x15]
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x300275c7
mov byte [ebp - 0x15], 1
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x45c]
mov eax, 0x3002787c
call fcn.30017d04
mov eax, dword [ebp - 0x45c]
call fcn.30015948
push eax
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x30027837
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x460]
mov eax, 0x300278b4
call fcn.30017d04
mov eax, dword [ebp - 0x460]
call fcn.30015948
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x30027808
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0x446]
push eax
lea edx, [ebp - 0x464]
mov eax, 0x300278e0
call fcn.30017d04
mov eax, dword [ebp - 0x464]
call fcn.30015948
push eax
call fcn.3001dfb8
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea edx, [ebp - 0x468]
mov eax, 0x300278f4
call fcn.30017d04
mov eax, dword [ebp - 0x468]
call fcn.30015948
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x300277ff
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
lea edx, [ebp - 0x46c]
mov eax, 0x30027904
call fcn.30017d04
mov eax, dword [ebp - 0x46c]
call fcn.30015948
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x300277ff
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
lea edx, [ebp - 0x470]
mov eax, 0x3002791c
call fcn.30017d04
mov eax, dword [ebp - 0x470]
call fcn.30015948
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x300277ff
lea eax, [ebp - 0x432]
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
add eax, 2
push eax
lea eax, [ebp - 0x432]
push eax
push 1
push 0
lea eax, [ebp - 0x446]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegSetValueExW
test eax, eax
jne 0x300277ff
lea eax, [ebp - 0x432]
push eax
push 0x300278a8
lea edx, [ebp - 0x478]
mov eax, 0x3002792c
call fcn.30017d04
push dword [ebp - 0x478]
push 0x300278a8
lea edx, [ebp - 0x47c]
mov eax, 0x3002787c
call fcn.30017d04
push dword [ebp - 0x47c]
push 0x300278a8
lea edx, [ebp - 0x480]
mov eax, 0x300278b4
call fcn.30017d04
push dword [ebp - 0x480]
lea eax, [ebp - 0x474]
mov edx, 6
call fcn.30015808
mov eax, dword [ebp - 0x474]
call fcn.30015948
push eax
call fcn.3001dfb8
lea esi, [ebp - 0x432]
mov dword [ebp - 0x19], esi
push esi
call sub.KERNEL32.dll_lstrlenW
mov edi, eax
add edi, edi
mov word [ebp - 0x1d], di
add di, 2
mov word [ebp - 0x1b], di
xor edx, edx
mov eax, 0x30027948
call fcn.3001b86c
lea edx, [ebp - 0x1d]
push edx
call eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegCloseKey
cmp byte [ebp - 0x15], 0
je 0x3002782e
push ebp
lea edx, [ebp - 0x484]
mov eax, 0x300278b4
call fcn.30017d04
mov edx, dword [ebp - 0x484]
mov eax, dword [ebp - 0x10]
call fcn.300273b4
pop ecx
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegCloseKey
lea eax, [ebp - 0x228]
push eax
call sub.KERNEL32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30027868
lea eax, [ebp - 0x484]
mov edx, 0xf
call fcn.3001550c
ret