Function at 0x4601b3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
mov esi, ecx
call fcn.00437e65
pop ecx
push 5
lea ecx, [ebp - 8]
call fcn.0043dd9c
push 0x14
lea ecx, [ebp - 0x18]
call fcn.0043dd9c
xor ebx, ebx
mov dword [ebp - 0x10], 0x80000002
mov byte [ebp - 1], bl
mov byte [ebp - 0xc], 0xff
mov byte [ebp - 2], bl
mov byte [ebp - 3], bl
jmp 0x4602f4
push 8
lea eax, [ebp + 8]
push eax
push 0x4afdec
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x460217
mov byte [ebp - 0xc], 1
jmp 0x4602f4
push 6
lea eax, [ebp + 8]
push eax
push 0x4afaa4
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x460236
mov byte [ebp - 0xc], bl
jmp 0x4602f4
push 6
lea eax, [ebp + 8]
push eax
push 0x4afde4
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x460256
mov byte [ebp - 0xc], 0xff
jmp 0x4602f4
push 2
lea eax, [ebp + 8]
push eax
push 0x4ac014
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x460276
mov dword [ebp - 0x10], 0x80000003
jmp 0x4602f4
push 2
lea eax, [ebp + 8]
push eax
push 0x4afde0
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x460293
mov byte [ebp - 2], 1
jmp 0x4602f4
push 3
lea eax, [ebp + 8]
push eax
push 0x4afddc
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x4602b0
mov byte [ebp - 3], 1
jmp 0x4602f4
push 4
lea eax, [ebp + 8]
push eax
push 0x4afdd4
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x4602cd
mov byte [ebp - 3], 1
jmp 0x46028d
push 3
lea eax, [ebp + 8]
push eax
push 0x4af214
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x4602ea
mov byte [ebp - 1], 1
jmp 0x46028d
lea eax, [ebp + 8]
push eax
call fcn.00405196
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x4601f7
cmp word [eax], 0x2a
jne 0x46031a
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 1], 1
call fcn.00437e65
pop ecx
push ebx
push 0x2c
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0043359b
push ebx
push 0x2c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0043359b
push dword [ebp - 0x18]
call fcn.0041161a
cmp byte [ebp - 1], bl
pop ecx
mov edi, eax
je 0x4603d6
cmp word [edi], bx
jne 0x460361
mov esi, 0x80070057
jmp 0x4604ea
movzx eax, word [0x4c0bc8]
push 4
mov esi, 0x20019
or eax, esi
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
push dword [ebp - 0x10]
call fcn.00438f4b
add esp, 0x14
cmp eax, ebx
je 0x4603b1
lea eax, [ebp - 0xc]
push eax
movzx eax, word [0x4c0bc8]
or eax, esi
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4604e7
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 4
push ebx
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegSaveKeyExW]
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
jmp 0x460474
test byte [0x4c1bf0], 2
jne 0x460410
or byte [0x4c1bf0], 0x12
push ebx
push 2
push 0x4a6ff0
call fcn.004119f4
push ebx
push 2
push 0x4a6fc8
call fcn.004119f4
push ebx
push 2
push 0x4a6f94
call fcn.004119f4
add esp, 0x24
push ebx
push 2
mov esi, 0x4ad650
push esi
call fcn.004119f4
push 1
push 2
push esi
call fcn.004119f4
add esp, 0x18
cmp word [edi], bx
je 0x460461
cmp byte [ebp - 3], bl
jne 0x460461
push edi
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.DLL_RegLoadKeyW]
cmp byte [ebp - 0xc], bl
mov dword [ebp - 0x14], eax
jl 0x4604e7
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00460084
pop ecx
pop ecx
jmp 0x4604e7
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.DLL_RegUnLoadKeyW]
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], 0x10
cmp byte [ebp - 1], bl
je 0x4604e7
cmp dword [ebp - 0x14], ebx
jne 0x4604e7
cmp byte [ebp - 2], bl
je 0x4604e7
cmp word [edi], bx
je 0x4604e7
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov esi, 0x80000000
push ebx
push 0x2000000
push 3
push ebx
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.004051d2
cmp dword [ebp - 0x10], ebx
jne 0x4604df
push ebx
push ebx
push 3
push ebx
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.004051d2
cmp dword [ebp - 0x10], ebx
jne 0x4604df
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x20
je 0x4604d5
cmp eax, 0x21
jne 0x4604df
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x460497
lea ecx, [ebp - 0x10]
call fcn.00402b5a
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00437e1a
lea ecx, [ebp - 8]
call fcn.00437e1a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8