Function at 0x46ae90
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bad67
mov eax, dword fs:[0]
push eax
mov eax, 0x5e78
call fcn.0059a600
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x5e4c], esi
mov dword [ebp - 0x5e60], eax
call fcn.0046d4f0
xor ebx, ebx
test eax, eax
je 0x46af5a
push ebx
push str.KINIFile::UninstallINIFiles_n
push 0x693cb0
call fcn.00599ee3
mov ecx, dword [str.ENTRY:]
mov edx, dword [0x5ccf7c]
mov eax, 0x693cb0
mov dword [0x693bb0], ecx
add esp, 0xc
mov dword [0x693bb4], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46af10
mov edi, 0x693bb0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46af21
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x693bb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov esi, dword [ebp - 0x5e4c]
push 0x5dc
lea eax, [ebp - 0x2368]
push 0x4b
push eax
mov dword [ebp - 0x5e50], ebx
mov dword [ebp - 0x236c], ebx
call fcn.00599fb0
mov ecx, 0x5dc
xor eax, eax
lea edi, [ebp - 0x1d8c]
add esp, 0xc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
cmp dword [esi + 0x4298], ebx
jne 0x46afdb
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x236c], ebx
jbe 0x46afd4
jmp 0x46afb0
mov eax, dword [ebp + esi*4 - 0x1d8c]
cmp eax, ebx
je 0x46afcb
push eax
call fcn.004a6dca
add esp, 4
mov dword [ebp + esi*4 - 0x1d8c], ebx
inc esi
cmp esi, dword [ebp - 0x236c]
jb 0x46afb0
xor eax, eax
jmp 0x46b7b6
mov eax, dword [ebp - 0x5e60]
add eax, 0x20c
lea edx, [ebp - 0x31c]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46aff0
call fcn.0046d4f0
test eax, eax
je 0x46b02d
lea ecx, [ebp - 0x31c]
push ecx
push str.szUninstallPath___s_n
push 0x693ab0
call fcn.00599ee3
add esp, 0xc
push 0x693ab0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push ebx
lea edx, [ebp - 0x236c]
push edx
lea eax, [ebp - 0x31c]
push eax
mov ecx, esi
call fcn.0045edc0
test eax, eax
je 0x46b6bb
push 2
lea ecx, [ebp - 0x236c]
push ecx
mov ecx, esi
call fcn.0045c0d0
mov ecx, dword [ebp - 0x236c]
cmp ecx, ebx
je 0x46b6ae
mov edx, dword [ebp - 0x5e4c]
mov edi, dword [ebp - 0x5e4c]
add edx, 0x20e8
lea esi, [ebp - 0x2368]
mov dword [ebp - 0x5e58], edx
mov ebx, edx
jmp 0x46b096
mov ecx, dword [ebp - 0x236c]
test esi, esi
je 0x46b0ce
lea eax, [ebp - 0x2368]
sub esi, eax
inc esi
lea eax, [esi - 1]
cmp eax, 0x5db
ja 0x46b0ce
cmp esi, ecx
jae 0x46b0ba
lea esi, [ebp + esi - 0x2368]
jmp 0x46b0bc
xor esi, esi
cmp eax, ecx
jae 0x46b0d0
cmp eax, 0xffffffff
je 0x46b0d0
mov eax, dword [ebp + eax*4 - 0x1d8c]
jmp 0x46b0d2
xor esi, esi
xor eax, eax
lea edx, [ebp - 0x114]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x46b0e0
lea ecx, [ebp - 0x114]
push ecx
mov ecx, ebx
call fcn.0043ce60
push 0x40
lea edx, [ebp - 0x114]
push edx
mov ecx, edi
call fcn.00466e50
test esi, esi
jne 0x46b090
mov edx, dword [ebp - 0x236c]
test edx, edx
je 0x46b6ae
mov ecx, dword [ebp - 0x5e60]
add ecx, 0x108
lea eax, [ebp - 0x2368]
mov dword [ebp - 0x5e68], ecx
xor ebx, ebx
mov edi, eax
jmp 0x46b146
mov edx, dword [ebp - 0x236c]
cmp edi, ebx
je 0x46b187
lea eax, [ebp - 0x2368]
sub edi, eax
lea eax, [edi + 1]
lea ecx, [eax - 1]
cmp ecx, 0x5db
ja 0x46b187
cmp eax, edx
jae 0x46b16d
lea edi, [ebp + eax - 0x2368]
jmp 0x46b16f
xor edi, edi
mov dword [ebp - 0x5e5c], edi
cmp ecx, edx
jae 0x46b18f
cmp ecx, 0xffffffff
je 0x46b18f
mov eax, dword [ebp + ecx*4 - 0x1d8c]
jmp 0x46b191
xor edi, edi
mov dword [ebp - 0x5e5c], edi
xor eax, eax
lea edx, [ebp - 0x114]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x46b1a0
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp - 0x5e58]
call fcn.0043ce60
mov ecx, dword [ebp - 0x5e68]
lea edx, [ebp - 0x5e54]
push edx
lea eax, [ebp - 0x218]
push eax
push ecx
mov ecx, dword [ebp - 0x5e4c]
mov dword [ebp - 0x5e54], ebx
call fcn.00460dd0
test eax, eax
je 0x46b6a6
mov esi, dword [ebp - 0x5e54]
mov ecx, dword [ebp - 0x5e4c]
lea eax, [ebp - 0x114]
mov edx, esi
push eax
and edx, 0x180
or dword [ebp - 0x5e50], edx
push esi
call fcn.00465680
test eax, eax
je 0x46b66e
push 2
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x5e4c]
call fcn.0045d2b0
mov ecx, dword [ebp - 0x5e4c]
lea edx, [ebp - 0x218]
push edx
call fcn.0045cf80
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp - 0x5e4c]
call fcn.0045c850
mov ecx, dword [ebp - 0x5e4c]
or dword [ebp - 0x5e50], esi
push 0x200
lea edx, [ebp - 0x218]
push edx
call fcn.00463590
test eax, eax
je 0x46b6a6
or dword [ebp - 0x5e50], 0x80000000
push 0x5dc
lea eax, [ebp - 0x40b8]
push 0x4b
push eax
mov dword [ebp - 0x40bc], ebx
call fcn.00599fb0
mov ecx, 0x5dc
xor eax, eax
lea edi, [ebp - 0x3adc]
add esp, 0xc
rep stosd dword es:[edi], eax
push 0xa
lea ecx, [ebp - 0x5e84]
mov byte [ebp - 4], 1
call fcn.004a7e5d
mov byte [ebp - 4], 2
call fcn.004a8620
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x46b7d4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x5e54], edi
push ebx
lea ecx, [ebp - 0x40bc]
push ecx
mov ecx, dword [ebp - 0x5e58]
push 3
push str.HKLM
lea edx, [ebp - 0x218]
push edx
mov byte [ebp - 4], 3
call fcn.004382c0
test eax, eax
je 0x46b3eb
lea eax, [ebp - 0x5e84]
push eax
lea ecx, [ebp - 0x40bc]
push ecx
mov ecx, dword [ebp - 0x5e4c]
call fcn.0045b9b0
call fcn.0046d4f0
test eax, eax
je 0x46b36d
mov edx, dword [ebp - 0x5e78]
mov eax, dword [ebp - 0x40bc]
push edx
push eax
push str.HKLM:_klAddRegInfoList.GetCount_____d__cslKeyList.GetCount_____d_n
push 0x6939b0
call fcn.00599ee3
add esp, 0x10
push 0x6939b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov esi, dword [ebp - 0x5e80]
cmp esi, ebx
je 0x46b3eb
jmp 0x46b380
mov eax, esi
cmp esi, ebx
je 0x46b7de
mov esi, dword [esi]
add eax, 8
push eax
lea ecx, [ebp - 0x5e54]
call fcn.00402af0
mov edi, dword [ebp - 0x5e54]
push 1
push reloc.OLEAUT32.dll_SysReAllocString
push edi
lea ecx, [ebp - 0x61c]
mov dword [ebp - 0x424], ebx
call fcn.0047c120
lea ecx, [ebp - 0x618]
push ecx
lea ecx, [ebp - 0x61c]
call fcn.0047ac60
test eax, eax
je 0x46b3e7
push 1
push ebx
push 1
lea edx, [ebp - 0x618]
push edx
lea ecx, [ebp - 0x61c]
call fcn.0047aeb0
cmp esi, ebx
jne 0x46b380
lea ecx, [ebp - 0x40bc]
call fcn.00406630
lea ecx, [ebp - 0x5e84]
call fcn.004a7fe2
push ebx
lea eax, [ebp - 0x40bc]
push eax
push 3
push str.HKCR
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x5e58]
call fcn.004382c0
test eax, eax
je 0x46b4fb
mov ecx, dword [ebp - 0x5e4c]
lea edx, [ebp - 0x5e84]
push edx
lea eax, [ebp - 0x40bc]
push eax
call fcn.0045b9b0
call fcn.0046d4f0
test eax, eax
je 0x46b47d
mov ecx, dword [ebp - 0x5e78]
mov edx, dword [ebp - 0x40bc]
push ecx
push edx
push str.HKCR:_klAddRegInfoList.GetCount_____d__cslKeyList.GetCount_____d_n
push 0x6938b0
call fcn.00599ee3
add esp, 0x10
push 0x6938b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov esi, dword [ebp - 0x5e80]
cmp esi, ebx
je 0x46b4fb
jmp 0x46b490
mov eax, esi
cmp esi, ebx
je 0x46b7de
mov esi, dword [esi]
add eax, 8
push eax
lea ecx, [ebp - 0x5e54]
call fcn.00402af0
mov edi, dword [ebp - 0x5e54]
push 1
push SysReAllocStringLen
push edi
lea ecx, [ebp - 0x61c]
mov dword [ebp - 0x424], ebx
call fcn.0047c120
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x61c]
call fcn.0047ac60
test eax, eax
je 0x46b4f7
push 1
push ebx
push 1
lea ecx, [ebp - 0x618]
push ecx
lea ecx, [ebp - 0x61c]
call fcn.0047aeb0
cmp esi, ebx
jne 0x46b490
test dword [ebp + 8], 0x40000000
je 0x46b5d1
cmp dword [ebp - 0x5e60], ebx
je 0x46b5d1
lea ecx, [ebp - 0x5e48]
call fcn.00406450
push 0x104
lea edx, [ebp - 0x524]
push edx
push ebx
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x5e48]
push eax
push 1
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x5e58]
call fcn.00439a70
test eax, eax
je 0x46b5c2
cmp dword [ebp - 0x5e48], ebx
je 0x46b5c2
mov esi, dword [ebp - 0x5e60]
lea edx, [ebp - 0x5e44]
mov dword [ebp - 0x5e64], edx
nop
lea eax, [ebp - 0x5e64]
push eax
lea ecx, [ebp - 0x5e48]
call fcn.00404b10
mov edx, dword [eax + 0x18]
lea ecx, [ebp - 0x524]
push ecx
push edx
call fcn.00599e8d
add esp, 8
test eax, eax
jne 0x46b5ba
lea eax, [ebp - 0x524]
mov edx, eax
mov ecx, esi
sub ecx, edx
mov dword [esi], 1
lea edx, [ecx + 4]
mov edi, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x46b5b0
cmp dword [ebp - 0x5e64], ebx
jne 0x46b570
lea ecx, [ebp - 0x5e48]
mov byte [ebp - 4], 3
call fcn.004064b0
mov esi, dword [ebp - 0x5e4c]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [esi + 0x416c]
call fcn.00497b60
test eax, eax
je 0x46b5fe
or dword [ebp - 0x5e50], 0x80
lea edx, [ebp - 0x114]
push edx
lea ecx, [esi + 0x416c]
call fcn.00401c50
mov ecx, dword [ebp - 0x5e58]
call fcn.00433d10
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b648
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x5e84]
mov byte [ebp - 4], 1
call fcn.004a8028
lea ecx, [ebp - 0x40bc]
mov byte [ebp - 4], 0
call fcn.004065e0
mov edi, dword [ebp - 0x5e5c]
jmp 0x46b6a6
mov esi, dword [ebp - 0x5e58]
push 1
lea ecx, [ebp - 0x420]
push ecx
push str.REG_OPS_PATH
push 0x5ce228
mov ecx, esi
call fcn.00433f80
test eax, eax
je 0x46b6a6
mov ecx, esi
call fcn.00433d10
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp edi, ebx
jne 0x46b140
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, dword [ebp - 0x5e4c]
lea ecx, [ebp - 0x5e50]
push ecx
lea esi, [edi + 0x42a0]
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov ecx, edi
call fcn.00463700
lea edx, [ebp - 0x5e50]
push edx
push esi
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall
mov ecx, edi
call fcn.00463700
call fcn.0046d4f0
mov ebx, dword [ebp - 0x5e50]
test eax, eax
je 0x46b774
push ebx
push str.KINIFile::UninstallINIFiles_:_dwRetFlags___d_n
push 0x6937b0
call fcn.00599ee3
mov eax, dword [str.EXIT:]
mov ecx, dword [0x5ccefc]
mov dword [0x6936b0], eax
mov eax, 0x6937b0
mov dword [0x6936b4], ecx
add esp, 0xc
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46b730
mov edi, 0x6936b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46b741
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x6936b0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
xor edi, edi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x236c], edi
jbe 0x46b7b4
jmp 0x46b790
mov eax, dword [ebp + esi*4 - 0x1d8c]
cmp eax, edi
je 0x46b7ab
push eax
call fcn.004a6dca
add esp, 4
mov dword [ebp + esi*4 - 0x1d8c], edi
inc esi
cmp esi, dword [ebp - 0x236c]
jb 0x46b790
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00401b60
call fcn.004a6edd
int3