Function at 0x40a1d4
Capabilities:
Delete registry value
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x60], ecx
mov byte [ebp - 1], dl
mov dword [ebp - 8], eax
mov ecx, 0xa
lea eax, [ebp - 0x34]
mov edx, section.CODE
call fcn.00403724
xor eax, eax
push ebp
push 0x40aba3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x61], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0x18], 0
mov byte [ebp - 0x62], 0
xor eax, eax
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dl, 1
mov eax, 0x408468
call fcn.004028d0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x40ab61
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, 0x408468
call fcn.004028d0
mov dword [ebp - 0x68], eax
mov dl, 1
mov eax, 0x408468
call fcn.004028d0
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x60], 0
je 0x40a288
mov dl, 1
mov eax, 0x408468
call fcn.004028d0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x74], eax
mov ecx, eax
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
cmp byte [ebp - 1], 0
je 0x40a422
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x40a422
mov eax, dword [ebp - 0x78]
cmp word [eax + 0x10], 0x80
jne 0x40a410
xor edx, edx
push ebp
push 0x40a3c7
push dword fs:[edx]
mov dword fs:[edx], esp
push ebp
mov eax, dword [ebp - 0x78]
call fcn.0040a180
pop ecx
cmp dword [ebp - 0x28], 0
je 0x40a2fa
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x68]
call fcn.004098a0
inc eax
jne 0x40a3bd
mov ebx, 1
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 8]
test al, 8
je 0x40a310
mov ebx, 7
jmp 0x40a321
test al, 0x10
je 0x40a31b
mov ebx, 3
jmp 0x40a321
test al, 0x40
je 0x40a321
xor ebx, ebx
test al, 4
jne 0x40a379
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 0x20
je 0x40a33a
mov eax, dword [ebp - 0x34]
call fcn.0040705c
test al, al
je 0x40a3ac
mov eax, dword [ebp - 0x78]
mov esi, dword [eax + 8]
test esi, 1
sete al
push eax
test esi, 2
setne al
push eax
push ebx
push 0x409ea4
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.00409098
test al, al
jne 0x40a3ac
mov byte [ebp - 0x61], 0
jmp 0x40a3ac
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 0x20
je 0x40a38e
mov eax, dword [ebp - 0x34]
call fcn.00407084
test al, al
je 0x40a3ac
push ebx
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.00409328
test al, al
jne 0x40a3ac
mov byte [ebp - 0x61], 0
cmp dword [ebp - 0x28], 0
je 0x40a3bd
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x68]
call fcn.004097d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a3ef
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.00409e18
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
jmp 0x40a418
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x40a2bb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x40a56e
mov byte [ebp - 0x79], 0
mov eax, dword [ebp - 0x78]
cmp word [eax + 0x10], 0x82
jne 0x40a535
mov byte [ebp - 0x79], 1
xor eax, eax
push ebp
push 0x40a50d
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x78]
call fcn.0040a180
pop ecx
cmp byte [ebp - 1], 0
jne 0x40a477
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 1
jne 0x40a4ff
cmp byte [ebp - 1], 0
jne 0x40a483
cmp dword [ebp - 0x30], 0
jne 0x40a487
xor ebx, ebx
jmp 0x40a489
mov bl, 1
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 8
je 0x40a4bd
mov eax, dword [ebp - 0x34]
call fcn.00408db4
test al, al
je 0x40a503
test bl, bl
jne 0x40a4bd
mov eax, dword [ebp - 0x34]
call fcn.0040705c
test al, al
je 0x40a4bd
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 4]
test al, al
je 0x40a503
mov byte [ebp - 0x79], 0
test bl, bl
jne 0x40a4e9
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 0x10
je 0x40a4d8
mov dl, 1
mov eax, dword [ebp - 0x34]
call fcn.004095b0
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 0x40
je 0x40a4e9
mov eax, dword [ebp - 0x34]
call fcn.00409904
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 4
je 0x40a503
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
call fcn.00409718
jmp 0x40a503
mov byte [ebp - 0x79], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a535
cmp byte [ebp - 0x79], 0
je 0x40a55c
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.00409e18
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
jmp 0x40a564
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x40a435
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x40aa5e
push ebp
mov eax, dword [ebp - 0x78]
call fcn.0040a180
pop ecx
xor edx, edx
push ebp
push 0x40aa0d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x78]
mov bx, word [eax + 0x10]
movzx eax, bx
cmp eax, 0x86
jg 0x40a5f8
je 0x40a89f
cmp eax, 0x82
jg 0x40a5da
je 0x40a719
dec eax
je 0x40a625
add eax, 0xfffffff1
sub eax, 2
jb case.0x40a606.140
sub eax, 0x6f
je 0x40a672
jmp case.default.0x40a606
sub eax, 0x83
je case.0x40a606.140
dec eax
je 0x40a7e7
dec eax
je 0x40a837
jmp case.default.0x40a606
add eax, 0xffffff79
cmp eax, 5
ja case.default.0x40a606
jmp dword [eax*4 + 0x40a60d]
mov edx, 0x40abbc
lea eax, [ebp - 0x90]
call fcn.00403200
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 0x34]
call fcn.004032e8
mov edx, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
mov al, 0xb3
call fcn.004080a0
mov ecx, dword [ebp - 0x8c]
mov dl, 1
mov eax, 0x404bc8
call fcn.00405f0c
call fcn.00402e88
jmp case.0x40a606.140
cmp byte [ebp - 1], 0
jne 0x40a685
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 1
jne case.0x40a606.140
lea eax, [ebp - 0x8c]
call fcn.00407350
mov eax, dword [ebp - 0x8c]
call fcn.004034a4
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, dword [ebp - 0x78]
mov ebx, dword [eax + 8]
test bl, 8
setne al
push eax
push 0x409e90
lea eax, [ebp - 0x70]
push eax
test bl, 4
setne cl
test bl, 2
setne dl
mov eax, dword [ebp - 0x34]
call fcn.00408b88
test al, al
je case.0x40a606.140
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 8]
test al, 2
je case.0x40a606.140
test al, 0x10
je case.0x40a606.140
push 0
mov eax, dword [ebp - 0x5c]
push eax
push 1
push 0x10
call sub.shell32.dll_SHChangeNotify
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x34]
call fcn.00406d68
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xc]
call fcn.00409800
jmp case.0x40a606.140
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 0x30]
call fcn.00403200
cmp byte [ebp - 1], 0
jne 0x40a730
cmp dword [ebp - 0x80], 0
jne 0x40a73b
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 0x34]
call fcn.00403200
cmp byte [ebp - 1], 0
jne 0x40a74a
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 1
jne 0x40a791
cmp byte [ebp - 1], 0
jne 0x40a75d
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 2
jne case.0x40a606.140
push ebp
mov eax, dword [ebp - 0x78]
mov ebx, dword [eax + 8]
test bh, 1
setne al
push eax
test bl, 0x80
setne cl
test bl, 0x20
setne dl
mov eax, dword [ebp - 0x80]
call fcn.00409fcc
pop ecx
test al, al
jne case.0x40a606.140
mov byte [ebp - 0x61], 0
jmp case.0x40a606.140
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 8
je 0x40a7a2
mov eax, dword [ebp - 0x34]
call fcn.00408db4
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x34]
call fcn.004033f0
je case.0x40a606.140
push ebp
mov eax, dword [ebp - 0x78]
mov ebx, dword [eax + 8]
test bh, 1
setne al
push eax
test bl, 0x80
setne cl
test bl, 0x20
setne dl
mov eax, dword [ebp - 0x80]
call fcn.00409fcc
pop ecx
test al, al
jne case.0x40a606.140
mov byte [ebp - 0x61], 0
jmp case.0x40a606.140
lea eax, [ebp - 0x190]
mov ebx, dword [ebp - 0x5c]
mov edx, ebx
call fcn.00402818
lea eax, [ebp - 0x190]
mov edx, 0x40abcc
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.004026c8
je 0x40a823
push ebx
push 0
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
jmp case.0x40a606.140
push 0
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WriteProfileStringA
jmp case.0x40a606.140
mov eax, dword [ebp - 0x78]
test byte [eax + 8], 1
je 0x40a853
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
call fcn.00409d00
test al, al
je case.0x40a606.140
lea eax, [ebp - 0x190]
mov ebx, dword [ebp - 0x5c]
mov edx, ebx
call fcn.00402818
lea eax, [ebp - 0x190]
mov edx, 0x40abcc
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.004026c8
je 0x40a88d
push ebx
push 0
push 0
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
jmp case.0x40a606.140
push 0
push 0
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WriteProfileStringA
jmp case.0x40a606.140
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 8]
call fcn.00407618
test eax, eax
je case.0x40a606.140
sub eax, 2
je case.0x40a606.140
mov byte [ebp - 0x61], 0
jmp case.0x40a606.140
lea eax, [ebp - 0x88]
push eax
push 2
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne case.0x40a606.140
push 1
push 0x40d26c
push 1
push 0
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x88]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40a90d
mov byte [ebp - 0x61], 0
mov eax, dword [ebp - 0x88]
push eax
call sub.advapi32.dll_RegCloseKey
jmp case.0x40a606.140
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 8]
call fcn.00407718
test eax, eax
je case.0x40a606.140
sub eax, 2
je case.0x40a606.140
sub eax, 0x8f
je case.0x40a606.140
mov byte [ebp - 0x61], 0
jmp case.0x40a606.140
lea eax, [ebp - 0x88]
push eax
push 3
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne case.0x40a606.140
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x88]
call fcn.00407598
test al, al
je case.0x40a606.140
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x88]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
je case.0x40a606.140
mov byte [ebp - 0x61], 0
jmp case.0x40a606.140
mov eax, dword [ebp - 0x34]
call fcn.00408db4
jmp case.0x40a606.140
mov byte [ebp - 0x62], 1
jmp case.0x40a606.140
lea eax, [ebp - 0x90]
push eax
movzx eax, bx
mov dword [ebp - 0x198], eax
mov byte [ebp - 0x194], 0
lea edx, [ebp - 0x198]
xor ecx, ecx
mov eax, 0x40abd8
call fcn.0040581c
mov edx, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
mov al, 0xb3
call fcn.004080a0
mov ecx, dword [ebp - 0x8c]
mov dl, 1
mov eax, 0x404bc8
call fcn.00405f0c
call fcn.00402e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40aa35
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.00409e18
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [ebp - 0x78], 0
jne 0x40a581
cmp byte [ebp - 0x62], 0
je 0x40aa74
push 0
push 0
push 0
push 0x8000000
call sub.shell32.dll_SHChangeNotify
cmp dword [ebp - 0x60], 0
je 0x40aac0
call dword [ebp - 0x60]
mov eax, dword [ebp - 0x6c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x40aac0
inc ebx
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x6c]
call fcn.00409884
mov eax, dword [ebp - 0x8c]
xor ecx, ecx
mov edx, dword [ebp - 0x70]
call fcn.00409b7c
inc dword [ebp - 0x84]
dec ebx
jne 0x40aa93
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab6b
mov eax, dword [ebp - 0x6c]
call fcn.004028f8
mov eax, dword [ebp - 0x70]
call fcn.004028f8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x40ab50
inc ebx
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0xc]
call fcn.00409884
mov eax, dword [ebp - 0x8c]
call fcn.00407070
test al, al
je 0x40ab47
push 0
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0xc]
call fcn.00409884
mov eax, dword [ebp - 0x8c]
call fcn.004034a4
push eax
push 0x1001
push 0x1000
call sub.shell32.dll_SHChangeNotify
inc dword [ebp - 0x84]
dec ebx
jne 0x40aaf3
mov eax, dword [ebp - 0x68]
call fcn.004028f8
mov eax, dword [ebp - 0xc]
call fcn.004028f8
ret