Function at 0x10189d40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x61c], esi
mov dword [ebp - 0x614], ebx
mov dword [ebp - 0x620], edi
test edi, edi
je 0x10189d85
push dword [ebp + 0x14]
mov eax, dword [edi]
push 0x200
push ebx
push esi
push edi
call dword [eax + 0x10]
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 0x628], eax
test eax, eax
je 0x1018a107
push 0x400
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x618], 0
push 0
push eax
call fcn.102134e7
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
lea eax, [ebp - 0x618]
push eax
push 0x200
lea eax, [ebp - 0x60c]
push eax
push esi
call fcn.1001e8b0
add esp, 0x28
test eax, eax
je 0x1018a08f
call fcn.10003980
test eax, eax
je 0x1018a127
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x610]
mov dword [ebp - 0x610], eax
lea eax, [ebp - 0x60c]
push eax
call fcn.10004a70
test al, al
jne 0x10189e52
lea ecx, [ebp - 0x60c]
lea edx, [ecx + 2]
jmp 0x10189e30
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10189e30
sub ecx, edx
lea eax, [ebp - 0x60c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x610]
call fcn.10004050
mov esi, dword [ebp - 0x610]
xor edi, edi
mov ebx, esi
movzx eax, word [esi]
test ax, ax
je 0x10189edd
mov ecx, eax
jmp 0x10189e70
push ecx
push 0x10219e0c
call fcn.10213523
add esp, 8
test eax, eax
je 0x10189e8a
test edi, edi
jne 0x10189e8c
mov edi, ebx
jmp 0x10189e8c
xor edi, edi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x10189e70
test edi, edi
je 0x10189edd
sub edi, esi
sar edi, 1
js 0x1018a11d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x10189ecb
push edi
lea ecx, [ebp - 0x610]
call fcn.10003eb0
mov esi, dword [ebp - 0x610]
cmp edi, dword [esi - 8]
jg 0x1018a11d
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
call fcn.10003980
test eax, eax
je 0x1018a127
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov edi, dword [ebp - 0x614]
lea ecx, [ebp - 0x610]
add eax, 0x10
push edi
mov dword [ebp - 0x610], eax
call fcn.10004a70
test al, al
jne 0x10189f3c
test edi, edi
jne 0x10189f18
xor ecx, ecx
jmp 0x10189f2f
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10189f20
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x610]
call fcn.10004050
mov edi, dword [ebp - 0x610]
mov ebx, edi
movzx eax, word [edi]
test ax, ax
je 0x1018a033
mov ecx, eax
push ecx
push 0x10219e0c
call fcn.10213523
add esp, 8
test eax, eax
je 0x10189f72
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x10189f52
cmp ebx, edi
je 0x1018a033
push dword [edi - 0xc]
sub ebx, edi
lea ecx, [ebp - 0x610]
sar ebx, 1
call fcn.1000a5b0
mov edi, dword [ebp - 0x610]
mov ecx, eax
lea eax, [ecx + ebx*2]
mov dword [ebp - 0x624], eax
mov eax, dword [edi - 0xc]
sub eax, ebx
mov dword [ebp - 0x610], eax
lea edx, [eax*2 + 2]
test edx, edx
je 0x1018a008
test ecx, ecx
jne 0x10189fce
call fcn.102134ed
mov dword [eax], 0x16
call fcn.10200a90
mov eax, 0x16
jmp 0x1018a00a
mov ebx, dword [ebp - 0x624]
test ebx, ebx
je 0x10189fb7
mov eax, dword [edi - 0xc]
lea eax, [eax*2 + 2]
cmp eax, edx
jae 0x10189ffd
call fcn.102134ed
mov dword [eax], 0x22
call fcn.10200a90
mov eax, 0x22
jmp 0x1018a00a
push edx
push ebx
push ecx
call fcn.102134f9
add esp, 0xc
xor eax, eax
push eax
call fcn.100049d0
mov eax, dword [ebp - 0x610]
add esp, 4
test eax, eax
js 0x1018a11d
cmp eax, dword [edi - 8]
jg 0x1018a11d
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
push edi
push esi
push 0x1021b408
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000bd10
lea edx, [edi - 0x10]
add esp, 0x14
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1018a068
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1018a07d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x620]
mov esi, dword [ebp - 0x61c]
mov ebx, dword [ebp - 0x614]
cmp dword [ebp - 0x628], 5
jne 0x1018a0d5
call fcn.10003ae0
cmp dword [eax + 0x140], 2
je 0x1018a0d5
push 0x10219d7c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jle 0x1018a0cb
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x618]
jmp 0x1018a0cd
push ebx
push esi
call fcn.100e7720
add esp, 8
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push edi
push eax
push ebx
push esi
push dword [ebp - 0x618]
call fcn.1018aa90
add esp, 0x18
test eax, eax
je 0x1018a107
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100030c0
push 0x80004005
call fcn.100030c0
int3