Function at 0x10012fb6
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c02e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push esi
push edi
and dword [ebp - 0x54], 0
mov eax, dword [0x1066deb8]
and eax, 1
jne 0x1001300e
mov eax, dword [0x1066deb8]
or eax, 1
mov dword [0x1066deb8], eax
and dword [ebp - 4], 0
mov ecx, 0x1066de70
call fcn.10016ddc
push 0x1007d5f0
call fcn.10064bc6
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x60], 0
jmp 0x10013025
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 3
jge 0x1001303b
mov eax, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0x15c], 0xfffffffe
jmp 0x1001301e
mov byte [ebp - 0x1c], 0
movzx eax, byte [ebp - 0x1c]
test eax, eax
je 0x10013055
push 0x3989
push 0
call fcn.10014b7e
pop ecx
pop ecx
mov dword [ebp - 0x2c], 0
jmp 0x10013065
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
jge 0x1001307b
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x15c], 0xfffffff6
jmp 0x1001305e
mov ecx, dword [ebp + 0xc]
call fcn.10012945
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x40], 0x9e57ad95
mov dword [ebp - 0x50], 0
jmp 0x1001309d
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 2
jge 0x100130b3
mov eax, dword [ebp - 0x50]
mov dword [ebp + eax*4 - 0x178], 0
jmp 0x10013096
mov dword [ebp - 0x40], 1
jmp 0x100130c3
mov eax, dword [ebp - 0x40]
dec eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x100130d3
push 0
call fcn.10013852
pop ecx
jmp 0x100130bc
mov byte [ebp - 0x1b], 0
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x100130e7
push 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x68], 3
jae 0x100131e0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x100]
push eax
mov ecx, 0x1066de70
call fcn.10016e93
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xf4]
push eax
mov ecx, 0x1066de70
call fcn.10016ea1
mov ecx, eax
call fcn.10016eb6
movzx eax, al
test eax, eax
je 0x100131e0
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x64], 0
jmp 0x1001314d
mov eax, dword [ebp - 0x64]
dec eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffe2
jge 0x1001319b
mov dword [ebp - 0xb8], 0x29bf39
mov dword [ebp - 0xdc], 0x290b
lea eax, [ebp - 0xdc]
push eax
push 0
lea eax, [ebp - 0xb8]
push eax
call fcn.10013fd2
add esp, 0xc
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x10013199
push 0x5e5f
push 0
call fcn.10013891
pop ecx
pop ecx
jmp 0x10013146
mov byte [ebp - 0x1f], 0
push 0
lea eax, [ebp - 0x1f]
push eax
call fcn.10015ecb
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd4]
push eax
mov ecx, 0x1066de70
call fcn.10016e30
push eax
mov ecx, dword [ebp + 8]
call fcn.10016cae
mov eax, dword [ebp - 0x54]
or eax, 1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
jmp 0x10013842
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 0xf8], 0xebb6
mov dword [ebp - 0x48], 0
jmp 0x10013204
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jge 0x1001321a
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x120], 0xffffffff
jmp 0x100131fd
push 0x286e
push 0x22ae
push 0
call fcn.10014010
add esp, 0xc
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x120]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x184]
push eax
call fcn.1000953e
pop ecx
mov esi, eax
lea edi, [ebp - 0x168]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x168]
lea edi, [ebp - 0x138]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
call fcn.100129f8
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0x10], 0
jmp 0x10013290
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x100132a6
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0xd8], 0x55683450
jmp 0x10013289
mov dword [ebp - 0x10], 0
jmp 0x100132b6
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x100132cc
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0xa8], 4
jmp 0x100132af
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0xa8], 0
jmp 0x100132fa
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xa8]
inc eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0xa8], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0xa8], 0
jg 0x10013320
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x1001331e
push 0
call fcn.10013f07
pop ecx
jmp 0x100132df
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xd8], 0
je 0x100133a0
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x70]
push eax
push 0
call fcn.10012ef7
pop ecx
pop ecx
cmp dword [ebp - 0x70], 6
jge 0x10013356
mov dword [ebp - 0x9c], 1
jmp 0x1001335d
and dword [ebp - 0x9c], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xa8]
mov dword [ebp - 0x78], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp + eax - 0xa8], ecx
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x9c]
jg 0x10013391
mov dword [ebp - 0x74], 1
jmp 0x10013395
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xc0], eax
jmp 0x100133ba
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x100133ba
push 0x63a6
push 1
call fcn.10012ef7
pop ecx
pop ecx
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0xd0]
push dword [ebp - 0x68]
lea eax, [ebp - 0x150]
push eax
call fcn.10012b4c
add esp, 0x10
mov dword [ebp - 4], 1
mov dword [ebp - 0x38], 0xa5d6c05b
mov dword [ebp - 0xc8], 0xfffffffd
mov dword [ebp - 0x34], 0
jmp 0x10013401
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jge 0x10013417
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x12c], 0xd1d25bb0
jmp 0x100133fa
mov dword [ebp - 0x38], 0x15
jmp 0x10013427
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 6
je 0x1001348e
mov dword [ebp - 0x104], 0x31d1
mov dword [ebp - 0x3c], 0
jmp 0x10013447
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jge 0x1001345d
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x170], 0xffffffff
jmp 0x10013440
cmp dword [ebp - 0xc8], 1
jl 0x10013472
mov dword [ebp - 0x98], 1
jmp 0x10013479
and dword [ebp - 0x98], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x98]
mov dword [ebp + eax - 0x12c], ecx
jmp 0x10013420
cmp dword [ebp - 0x68], 3
jae 0x10013669
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x14], 0
jmp 0x100134af
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x100134c2
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x5c], 0x2c03342e
jmp 0x100134a8
mov dword [ebp - 0x14], 0
jmp 0x100134d2
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jge 0x100134e8
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x114], 1
jmp 0x100134cb
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x5c], 0xf
jmp 0x1001350d
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x5c]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x5c], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x5c], 0x1b
jne 0x100135b6
mov dword [ebp - 0x80], 0x23b1a956
mov dword [ebp - 0x88], 0xba7b7e80
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x5c]
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x28]
je 0x1001354d
mov dword [ebp - 0xb0], 1
jmp 0x10013554
and dword [ebp - 0xb0], 0
xor eax, eax
inc eax
imul eax, eax, 0xffff
mov dword [ebp - 0x28], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x5c]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xfc], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x5c]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xf985589b
je 0x1001359e
mov dword [ebp - 0x90], 1
jmp 0x100135a5
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x88], eax
jmp 0x100134f8
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x5c], 0
jg 0x100135cc
mov dword [ebp - 0x6c], 1
jmp 0x100135d0
and dword [ebp - 0x6c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x5c]
cmp dword [ebp - 0x6c], eax
jle 0x100135eb
mov dword [ebp - 0x84], 1
jmp 0x100135f2
and dword [ebp - 0x84], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x28]
cmp dword [ebp + eax - 0x114], ecx
jge 0x1001360d
mov dword [ebp - 0x7c], 1
jmp 0x10013611
and dword [ebp - 0x7c], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x7c]
sub ecx, dword [ebp + eax - 0x114]
cmp dword [ebp - 0x84], ecx
jg 0x10013635
mov dword [ebp - 0x8c], 1
jmp 0x1001363c
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x28], eax
push 0xed4
lea eax, [ebp + 0xc]
push eax
push 0x1066de70
push 0x6bcb
lea eax, [ebp - 0x150]
push eax
push 0
call fcn.10013f32
add esp, 0x18
mov dword [ebp - 0x18], 0x16df251d
mov dword [ebp - 0xcc], 0x7110e6b6
mov dword [ebp - 0x44], 0
jmp 0x1001368a
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jge 0x100136a0
mov eax, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x94], 0x4a8c6a53
jmp 0x10013683
mov dword [ebp - 0x18], 0
jmp 0x100136b0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x100137a4
mov dword [ebp - 0xac], 0xffffffff
mov dword [ebp - 0x4c], 0
jmp 0x100136d4
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 4
jge 0x100136ea
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0xec], 0xfffffffb
jmp 0x100136cd
mov byte [ebp - 0x20], 0
movzx eax, byte [ebp - 0x20]
test eax, eax
je 0x100136fe
push 0
call fcn.10013fb0
pop ecx
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0xec], 0
jmp 0x1001372c
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xec]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0xec], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xec], 0
jl 0x1001379f
mov dword [ebp - 0x24], 0xb283066c
mov dword [ebp - 0x24], 0
jmp 0x10013753
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x1001379a
mov dword [ebp - 0xc4], 0x17be9fb1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + eax*4 - 0x94]
mov dword [ebp + ecx*4 - 0x94], eax
push 0x78f4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xc4]
push eax
push 1
call fcn.10012f32
add esp, 0x14
jmp 0x1001374c
jmp 0x10013711
jmp 0x100136a9
mov dword [ebp - 0x18], 0
jmp 0x100137b4
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffffc
jle 0x10013818
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x30], 0
jmp 0x100137d1
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x17
jg 0x10013816
lea eax, [ebp - 0xcc]
push eax
push 0x169b
push 0x6fd2
push 0
push 0x169a
lea eax, [ebp - 0x30]
push eax
push 0x275d
call fcn.10016a96
add esp, 0x1c
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x10013814
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x100137ca
jmp 0x100137ad
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp + 8]
call fcn.10016ce5
mov eax, dword [ebp - 0x54]
or eax, 1
mov dword [ebp - 0x54], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10016d3e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret