Function at 0x10041591
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push esi
movzx eax, byte [ebp + 0x30]
test eax, eax
je 0x100415cb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x98], eax
push 0x6b7a
push dword [ebp - 0x98]
push 1
push 0x5364
call fcn.1004181e
add esp, 0x10
jmp 0x10041819
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xa8], eax
lea eax, [ebp + 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x10041665
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10041642
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jl 0x10041660
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1004165e
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10041637
jmp 0x10041819
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x9c], eax
mov eax, 0x6ef6a07e
test eax, eax
je 0x10041805
mov eax, dword [ebp - 0x74]
mov esi, dword [eax]
push 1
mov ecx, dword [ebp - 0x7c]
call fcn.10021541
add esi, dword [eax]
je 0x10041774
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0xffffffff
jne 0x1004171d
mov dword [ebp - 0x20], 1
jmp 0x10041721
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
add eax, 0x56ab6569
mov ecx, dword [ebp - 0x84]
cmp eax, dword [ecx]
jge 0x1004173c
mov dword [ebp - 0x18], 1
jmp 0x10041740
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jge 0x10041756
mov dword [ebp - 0xc], 1
jmp 0x1004175a
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
cmp dword [ebp - 0xc], 0
je 0x10041774
mov dword [ebp - 0x30], 1
jmp 0x10041778
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0xaf33
jle 0x1004178a
mov dword [ebp - 0x28], 1
jmp 0x1004178e
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
je 0x100417a7
mov dword [ebp - 0xa4], 1
jmp 0x100417ae
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
sub ecx, 6
cmp dword [eax], ecx
jl 0x100417d1
mov dword [ebp - 0x1c], 1
jmp 0x100417d5
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0x2f92bf7
jg 0x100417ec
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
jne 0x100417ec
and dword [ebp - 0x2c], 0
jmp 0x100417f3
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 0x92b1
jne 0x10041805
mov dword [ebp - 0x14], 1
jmp 0x10041809
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret