Function at 0x100a9cb
Capabilities:
Delete registry key
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100e6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
xor edi, edi
lea eax, [ebp - 0x133]
push edi
push eax
mov byte [ebp - 0x134], 0
call fcn.0100b214
add esp, 0xc
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x310], 0x1008044
mov dword [ebp - 0x30c], 0x100800c
mov dword [ebp - 0x308], 0x1007fd4
mov dword [ebp - 0x304], 0x1007f9c
mov dword [ebp - 0x300], 0x1007f64
mov dword [ebp - 0x2fc], 0x1007f2c
mov dword [ebp - 0x2f8], 0x1007ef4
mov dword [ebp - 0x2f4], 0x1007ebc
mov dword [ebp - 0x2f0], 0x1007e84
mov dword [ebp - 0x2ec], 0x1007e4c
mov dword [ebp - 0x2e8], 0x1007e14
mov dword [ebp - 0x2e4], 0x1007ddc
mov dword [ebp - 0x2e0], 0x1007da4
mov dword [ebp - 0x2dc], 0x1007d6c
mov dword [ebp - 0x2d8], 0x1007d34
mov dword [ebp - 0x2d4], 0x1007cfc
mov dword [ebp - 0x2d0], 0x1007cc4
mov dword [ebp - 0x2cc], 0x1007c8c
mov dword [ebp - 0x2c8], 0x1007c54
mov dword [ebp - 0x2c4], 0x1007c1c
mov dword [ebp - 0x2c0], 0x1007be4
mov dword [ebp - 0x2bc], 0x1007bac
mov dword [ebp - 0x2b8], 0x1007b74
mov dword [ebp - 0x2b4], 0x1007b3c
mov dword [ebp - 0x2b0], 0x1007b04
mov dword [ebp - 0x2ac], 0x1007acc
mov dword [ebp - 0x2a8], 0x1007a94
mov dword [ebp - 0x2a4], 0x1007a5c
mov dword [ebp - 0x2a0], 0x1007a24
mov dword [ebp - 0x29c], 0x10079ec
mov dword [ebp - 0x298], 0x10079b4
mov dword [ebp - 0x294], 0x100797c
mov dword [ebp - 0x290], 0x1007944
mov dword [ebp - 0x28c], 0x100790c
mov dword [ebp - 0x288], 0x10078d4
mov dword [ebp - 0x284], 0x100789c
mov dword [ebp - 0x280], 0x1007864
mov dword [ebp - 0x27c], 0x100782c
mov dword [ebp - 0x278], 0x10077f4
mov dword [ebp - 0x274], 0x10077bc
mov dword [ebp - 0x270], 0x1007784
mov dword [ebp - 0x26c], 0x100774c
mov dword [ebp - 0x268], 0x1007714
mov dword [ebp - 0x264], 0x10076dc
mov dword [ebp - 0x260], 0x10076a4
mov dword [ebp - 0x25c], 0x100766c
mov dword [ebp - 0x258], 0x1007634
mov dword [ebp - 0x254], 0x10075fc
mov dword [ebp - 0x250], 0x10075c4
mov dword [ebp - 0x24c], 0x100758c
mov dword [ebp - 0x248], 0x1007554
call fcn.01008249
test eax, eax
je 0x100ac22
xor esi, esi
push dword [ebp + esi*4 - 0x310]
call fcn.010082e4
inc esi
cmp esi, 0x33
jb 0x100ac10
push 0x20
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [ebp - 0x30]
mov byte [ebp - 0x10], al
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x238]
mov byte [ebp - 0xf], 0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100ac43
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.msvcrt.dll__strdup]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
push 0x14a
push edi
push 0x100e9f0
mov dword [ebp - 0x240], eax
call fcn.0100b214
push 0x186
push edi
push 0x100eb40
call fcn.0100b214
add esp, 0x20
lea eax, [ebp - 0x10]
push eax
call fcn.0100a50f
lea eax, [ebp - 0x10]
push eax
call fcn.0100a6a1
lea eax, [ebp - 0x10]
push eax
call fcn.0100a837
lea eax, [ebp - 0x10]
push eax
call fcn.0100a1e9
lea eax, [ebp - 0x10]
push eax
call fcn.0100a37b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x23c]
push eax
mov ebx, 0xf003f
push ebx
push edi
push 0x100753c
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x100ad0a
push 0x1007520
push dword [ebp - 0x23c]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0x1007508
push dword [ebp - 0x23c]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x100d838]
push dword [ebp - 0x240]
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
je 0x100ad88
lea eax, [ebp - 0x23c]
push eax
push ebx
push 0
push 0x100672c
push edi
call esi
test eax, eax
jne 0x100ad55
push 0x10074e0
push dword [ebp - 0x23c]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x134]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100ad60
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ad73
sub eax, edx
mov byte [ebp + eax - 0x135], cl
jmp 0x100ae0d
push dword [0x100d834]
push dword [ebp - 0x240]
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
je 0x100ae19
call fcn.0100a153
test eax, eax
je 0x100add8
xor esi, esi
cmp dword [0x100ecc8], esi
jle 0x100add3
mov ebx, 0x100e9f0
mov edi, 0x100eb40
push edi
push ebx
call fcn.010090c1
inc esi
add edi, 0x27
add ebx, 0x21
cmp esi, dword [0x100ecc8]
jl 0x100adbd
call fcn.01009221
push 0x10074bc
call fcn.010093e7
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x134]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100aded
lea edi, [ebp - 0x134]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100adfe
mov esi, 0x10074b8
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x134]
push eax
call fcn.01009c6c
xor ebx, ebx
push ebx
push 0x26
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x134]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100ae33
push 0xa
pop ecx
lea eax, [ebp - 0x134]
mov esi, 0x1007490
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.01009c6c
lea edi, [ebp - 0x134]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100ae58
lea eax, [ebp - 0x134]
mov esi, 0x10074b8
push eax
movsw word es:[edi], word [esi]
call fcn.01009c6c
call fcn.01009810
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x244]
push eax
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
call fcn.010094b8
mov edi, dword [ebp - 0x240]
test edi, edi
mov ebx, eax
jle 0x100aeb5
mov esi, ebx
push esi
push 1
push 0
call fcn.01008c4b
add esi, 4
dec edi
jne 0x100aea5
push dword [ebp - 0x244]
push ebx
call fcn.01009725
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100b1ff
leave
ret 0x10