Function at 0x4d3d88
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2c
push 0
push 0
dec ecx
jne 0x4d3d90
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x30], eax
mov ebx, dword [0x500020]
xor eax, eax
push ebp
push 0x4d44ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
mov eax, 0x4d4504
call fcn.004b6478
mov eax, dword [0x5004f8]
mov eax, dword [eax]
call fcn.0040a80c
lea eax, [ebp - 0x3c]
call fcn.004cc1f4
lea eax, [ebp - 0x3c]
call fcn.004cc280
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x23], 0
mov byte [ebp - 0x22], 0
mov eax, dword [0x4ffe84]
movzx eax, byte [eax]
mov byte [ebp - 9], al
mov byte [ebp - 0x31], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x4cc054]
call fcn.004b8e90
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4d4486
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4d422f
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
mov eax, dword [ebx + 8]
call fcn.004dbe20
cmp dword [ebp - 8], 0
jne 0x4d3e48
mov eax, 0x4d4530
call fcn.004b2440
push 0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [0x4b87ec]
call fcn.004baea8
cmp eax, 0x80
jbe 0x4d3e6a
mov eax, 0x4d4568
call fcn.004b2440
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.004d89d0
mov eax, dword [0x5003bc]
movzx eax, byte [eax]
mov edx, dword [ebp - 4]
mov byte [edx + 0x10], al
mov eax, dword [ebp - 4]
add eax, 0x18
mov edx, dword [0x500490]
mov edx, dword [edx]
call fcn.00404ec4
mov eax, dword [ebp - 4]
add eax, 0x14
mov edx, dword [ebp - 8]
call fcn.00404ec4
mov eax, dword [0x4fff2c]
cmp byte [eax], 0
je 0x4d3eb5
mov eax, dword [ebp - 4]
or byte [eax + 0x1d], 0x20
mov eax, dword [0x50013c]
cmp byte [eax], 0
je 0x4d3ec8
mov eax, dword [ebp - 4]
or byte [eax + 0x1d], 1
jmp 0x4d3ed9
mov eax, dword [0x4ffe84]
cmp byte [eax], 0
je 0x4d3ed9
mov eax, dword [ebp - 4]
or byte [eax + 0x1d], 0x40
mov eax, dword [ebp - 4]
or byte [eax + 0x1d], 4
test byte [ebx + 0x13a], 1
je 0x4d3ef0
mov eax, dword [ebp - 4]
or byte [eax + 0x1d], 8
test byte [ebx + 0x13b], 1
je 0x4d3f00
mov eax, dword [ebp - 4]
or byte [eax + 0x1d], 0x10
push ebp
call fcn.004cc940
pop ecx
push ebp
call fcn.004ccb60
pop ecx
mov dl, 1
mov eax, dword [0x419d64]
call fcn.00404010
mov dword [ebp - 0x18], eax
call fcn.004d3ccc
call fcn.004cc4d0
call fcn.004d3d28
call fcn.004cc4d0
call fcn.004d2d7c
call fcn.004cc4d0
mov eax, dword [0x4ffeb4]
cmp dword [eax], 0
je 0x4d3f62
push 0
push 0
mov eax, dword [0x4ffeb4]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x40]
mov dx, 0x8c
mov eax, dword [ebp - 4]
call fcn.004b8f54
test byte [ebx + 0x137], 0x80
je 0x4d3f83
push 0
push 0
xor eax, eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x40]
mov dx, 0x8b
mov eax, dword [ebp - 4]
call fcn.004b8f54
push ebp
call fcn.004d2e90
pop ecx
call fcn.004cc4d0
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x27c]
call fcn.004cc158
push ebp
call fcn.004cdf20
pop ecx
call fcn.004cc4d0
test byte [ebx + 0x136], 2
je 0x4d3fcb
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x298]
call fcn.004cc158
push ebp
call fcn.004d3598
pop ecx
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x28c]
call fcn.004cc158
push ebp
call fcn.004d0794
pop ecx
call fcn.004cc4d0
mov eax, dword [0x5001c4]
cmp byte [eax], 0
je 0x4d400d
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x280]
call fcn.004cc158
push ebp
call fcn.004d11e4
pop ecx
call fcn.004cc4d0
mov eax, dword [0x4fff44]
mov eax, dword [eax + 0x28]
cmp dword [eax + 8], 0
je 0x4d4037
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x284]
call fcn.004cc158
push ebp
call fcn.004d13f0
pop ecx
call fcn.004cc4d0
mov eax, dword [0x4fff44]
mov eax, dword [eax + 0x2c]
cmp dword [eax + 8], 0
je 0x4d4061
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x288]
call fcn.004cc158
push ebp
call fcn.004d189c
pop ecx
call fcn.004cc4d0
xor eax, eax
call fcn.004cc158
call fcn.004d3b3c
call fcn.004cc4d0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 8], 0
je 0x4d4097
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x290]
call fcn.004cc158
push ebp
call fcn.004d2c80
pop ecx
call fcn.004cc4d0
test byte [ebx + 0x136], 2
je 0x4d4149
call fcn.004d3110
test al, al
je 0x4d4149
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x298]
call fcn.004cc158
push ebp
call fcn.004d3a18
pop ecx
push ebp
call fcn.004d3ab4
pop ecx
mov eax, dword [ebx + 0x64]
call fcn.004d9070
test al, al
je 0x4d40e8
push ebp
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
call fcn.004cd078
pop ecx
push ebp
call fcn.004d2f80
pop ecx
push 0
push 0
lea eax, [ebp - 0x44]
call fcn.004cc918
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x40]
mov dx, 0x11
mov eax, dword [ebp - 4]
call fcn.004b8f54
test byte [ebx + 0x138], 8
setne al
push eax
movzx ecx, byte [ebp - 0x22]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004bafe8
mov eax, dword [0x500398]
cmp byte [eax], 0
je 0x4d420f
mov eax, dword [0x4ffe54]
mov eax, dword [eax]
call fcn.004b5c44
jmp 0x4d420f
cmp dword [ebp - 0x10], 0
je 0x4d4169
mov eax, dword [ebp - 0x10]
call fcn.0040a2cc
test al, al
je 0x4d4169
mov eax, dword [ebp - 0x10]
call fcn.00405300
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x4ffe54]
cmp dword [eax], 0
je 0x4d41a2
mov eax, dword [0x4ffe54]
mov eax, dword [eax]
call fcn.0040a2cc
test al, al
je 0x4d41a2
mov esi, dword [0x4ffe54]
mov esi, dword [esi]
mov dword [ebp - 0x40], esi
mov eax, dword [ebp - 0x40]
call fcn.00405300
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebx + 0x38]
call fcn.004dbe20
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0046f1c8
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
call fcn.004b2c34
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x28]
mov edx, 0x4d459c
call fcn.00405188
mov eax, dword [ebp - 0x50]
call fcn.004b6478
mov edx, dword [ebp - 0x28]
xor eax, eax
call fcn.004b33b8
test al, al
je 0x4d420f
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x28]
mov edx, 0x4d45b0
call fcn.00405188
mov eax, dword [ebp - 0x54]
call fcn.004b6478
mov eax, dword [ebp - 0x28]
call fcn.00405300
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
call fcn.004cc158
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 4]
call fcn.004b919c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d4434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d448d
cmp dword [ebp - 0x18], 0
je 0x4d4476
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 8]
dec ebx
cmp ebx, 0
jl 0x4d446e
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0041c108
mov edx, dword [0x4cc8ec]
call fcn.00405dec
dec ebx
cmp ebx, 0xffffffff
jne 0x4d4453
mov eax, dword [ebp - 0x18]
call fcn.00404040
mov eax, dword [ebp - 4]
call fcn.00404040
xor eax, eax
call fcn.004cc438
ret