Function at 0x5573d8
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd7c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x15c]
mov edx, dword [0x408d08]
call fcn.00405b34
xor eax, eax
push ebp
push 0x5576d6
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
lea eax, [ebp - 0x160]
mov edx, dword [ebp - 4]
call fcn.0040520c
mov eax, dword [ebp - 0x160]
call fcn.0040a7d0
test al, al
je 0x557697
xor eax, eax
push ebp
push 0x55768a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x168]
mov edx, dword [ebp - 4]
call fcn.0040520c
mov eax, dword [ebp - 0x168]
call fcn.004052d4
push eax
lea eax, [ebp - 0x16c]
mov edx, dword [ebp - 4]
call fcn.0040520c
mov eax, dword [ebp - 0x16c]
mov ecx, 1
pop edx
call fcn.00405534
mov eax, dword [ebp - 0x164]
mov edx, 0x5576f0
call fcn.00405420
je 0x557504
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.00403b7c
lea edx, [ebp - 0x270]
lea eax, [ebp - 0x170]
call fcn.00405278
lea eax, [ebp - 0x170]
mov edx, 0x5576f0
call fcn.004052dc
mov eax, dword [ebp - 0x170]
call fcn.004054d4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 4]
call fcn.0040520c
lea eax, [ebp - 0x274]
mov edx, 0x5576fc
call fcn.004052dc
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x15c]
mov edx, 0x3f
call fcn.0040aa2c
mov ebx, eax
test ebx, ebx
jne 0x55766c
mov eax, dword [ebp - 0x154]
and eax, 0x10
cmp eax, 0x10
jne 0x5575aa
mov eax, dword [ebp - 0x150]
mov edx, 0x557708
call fcn.00405420
je 0x5575aa
mov eax, dword [ebp - 0x150]
mov edx, 0x557714
call fcn.00405420
je 0x5575aa
lea eax, [ebp - 0x278]
mov edx, dword [ebp - 4]
call fcn.0040520c
lea eax, [ebp - 0x278]
mov edx, dword [ebp - 0x150]
call fcn.004052dc
mov eax, dword [ebp - 0x278]
call fcn.004054d4
call fcn.005573d8
inc eax
je 0x55766c
mov esi, dword [ebp - 0x154]
mov eax, esi
and eax, 0x10
cmp eax, 0x10
je 0x557657
and esi, 8
cmp esi, 8
je 0x557657
lea eax, [ebp - 0x27c]
mov edx, dword [ebp - 4]
call fcn.0040520c
lea eax, [ebp - 0x27c]
mov edx, dword [ebp - 0x150]
call fcn.004052dc
mov eax, dword [ebp - 0x27c]
call fcn.0040a984
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x280]
mov edx, dword [ebp - 4]
call fcn.0040520c
lea eax, [ebp - 0x280]
mov edx, dword [ebp - 0x150]
call fcn.004052dc
mov eax, dword [ebp - 0x280]
pop edx
call fcn.0040a998
lea eax, [ebp - 0x284]
mov edx, dword [ebp - 4]
call fcn.0040520c
lea eax, [ebp - 0x284]
mov edx, dword [ebp - 0x150]
call fcn.004052dc
mov eax, dword [ebp - 0x284]
call fcn.004054d4
push eax
call sub.kernel32.dll_DeleteFileA_1
test eax, eax
je 0x55766c
lea eax, [ebp - 0x15c]
call fcn.0040aa7c
mov ebx, eax
test ebx, ebx
je 0x557542
lea eax, [ebp - 0x15c]
call fcn.0040aaa0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x557697
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5576dd
lea eax, [ebp - 0x284]
mov edx, 5
call fcn.00405038
lea eax, [ebp - 0x170]
mov edx, 5
call fcn.00405038
lea eax, [ebp - 0x15c]
mov edx, dword [0x408d08]
call fcn.00405c04
ret