Function at 0x547f40
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push edi
mov eax, 0x5d6384
call fcn.005ae2c8
mov dword [ebp - 0x298], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.005bbcf4
inc dword [ebp - 0x298]
mov word [ebp - 0x2a4], 0xc
mov word [ebp - 0x2a4], 0x18
lea edi, [ebp - 0x270]
xor eax, eax
mov ecx, 0x270
rep stosb byte es:[edi], al
lea eax, [ebp - 0x270]
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2b8]
add eax, 0x14
call fcn.0040555c
inc dword [ebp - 0x298]
inc dword [ebp - 0x298]
mov word [ebp - 0x2a4], 0xc
mov word [ebp - 0x2a4], 0x24
xor edx, edx
mov dword [ebp - 0x274], edx
lea edx, [ebp - 0x274]
inc dword [ebp - 0x298]
mov eax, dword [ebp + 8]
call fcn.0046f098
lea edx, [ebp - 0x274]
lea eax, [ebp + 8]
call fcn.005bbe6c
dec dword [ebp - 0x298]
lea eax, [ebp - 0x274]
mov edx, 2
call fcn.005bbe44
mov word [ebp - 0x2a4], 0x30
mov edx, 0x5d5f9f
lea eax, [ebp - 0x278]
call fcn.005bbcb4
inc dword [ebp - 0x298]
lea edx, [ebp - 0x278]
xor eax, eax
mov dword [ebp - 0x27c], eax
lea ecx, [ebp - 0x27c]
inc dword [ebp - 0x298]
lea eax, [ebp + 8]
call fcn.005bbe94
lea eax, [ebp - 0x27c]
mov eax, dword [eax]
lea ecx, [ebp - 0x270]
mov edx, 0x10
call fcn.00468f30
test eax, eax
sete al
and eax, 1
push eax
dec dword [ebp - 0x298]
lea eax, [ebp - 0x27c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x298]
lea eax, [ebp - 0x278]
mov edx, 2
call fcn.005bbe44
pop ecx
test cl, cl
je 0x548222
test byte [ebp - 0x260], 0x10
je 0x548204
mov word [ebp - 0x2a4], 0x3c
mov edx, 0x5d5fa3
lea eax, [ebp - 0x280]
call fcn.005bbcb4
inc dword [ebp - 0x298]
lea edx, [ebp - 0x280]
lea eax, [ebp - 0x25c]
call fcn.005bbf24
push eax
dec dword [ebp - 0x298]
lea eax, [ebp - 0x280]
mov edx, 2
call fcn.005bbe44
pop ecx
test cl, cl
je 0x548204
mov word [ebp - 0x2a4], 0x48
mov edx, 0x5d5fa5
lea eax, [ebp - 0x284]
call fcn.005bbcb4
inc dword [ebp - 0x298]
lea edx, [ebp - 0x284]
lea eax, [ebp - 0x25c]
call fcn.005bbf24
push eax
dec dword [ebp - 0x298]
lea eax, [ebp - 0x284]
mov edx, 2
call fcn.005bbe44
pop ecx
test cl, cl
je 0x548204
mov word [ebp - 0x2a4], 0x54
xor eax, eax
mov dword [ebp - 0x288], eax
lea ecx, [ebp - 0x288]
inc dword [ebp - 0x298]
lea edx, [ebp - 0x25c]
lea eax, [ebp + 8]
call fcn.005bbe94
lea edx, [ebp - 0x288]
push edx
mov edx, 0x5d5fa8
lea eax, [ebp - 0x28c]
call fcn.005bbcb4
inc dword [ebp - 0x298]
lea edx, [ebp - 0x28c]
xor eax, eax
mov dword [ebp - 0x290], eax
lea ecx, [ebp - 0x290]
inc dword [ebp - 0x298]
pop eax
call fcn.005bbe94
lea edx, [ebp - 0x290]
push dword [edx]
call fcn.00547f40
pop ecx
dec dword [ebp - 0x298]
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x298]
lea eax, [ebp - 0x28c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x298]
lea eax, [ebp - 0x288]
mov edx, 2
call fcn.005bbe44
lea eax, [ebp - 0x270]
call fcn.00468f80
test eax, eax
je 0x54809f
lea eax, [ebp - 0x270]
call fcn.00468fa4
cmp dword [ebp + 8], 0
je 0x54822d
mov edx, dword [ebp + 8]
jmp 0x548232
mov edx, 0x5d5faa
push edx
call sub.KERNEL32.DLL_RemoveDirectoryW
dec dword [ebp - 0x298]
dec dword [ebp - 0x298]
lea eax, [ebp - 0x25c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x298]
lea eax, [ebp + 8]
mov edx, 2
call fcn.005bbe44
mov eax, dword [ebp - 0x2b4]
mov dword fs:[0], eax
pop edi
mov esp, ebp
pop ebp
ret