Function at 0x40bea0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5c0160
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], 0
call fcn.004c5b8c
push 0x5f510f
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
call fcn.00416b90
push 0x5f5b24
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x68], 2
call fcn.00404c70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 3
call fcn.00404e20
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bf3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x40]
call fcn.004c5c18
test eax, eax
je 0x40c12a
mov bl, 4
lea ecx, [esp + 0x38]
call fcn.004c591d
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
call fcn.004c5b53
test eax, eax
jne 0x40c11f
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
call fcn.004c5e47
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x3c]
call edx
test eax, eax
push 0x5f510f
je 0x40c075
lea ecx, [esp + 0x1c]
call fcn.00416b90
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x68], 5
call fcn.00416e00
add esp, 0xc
push 0x5f5b20
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x68], 6
call fcn.00404c70
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 7
call fcn.00404e20
mov byte [esp + 0x5c], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c015
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c039
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.00405210
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.0040bea0
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40c0ef
lea ecx, [esp + 0x20]
call fcn.00416b90
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x68], 8
call fcn.00416e00
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 9
call fcn.00404e20
mov byte [esp + 0x5c], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c0fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c11f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], 0
jne 0x40bf59
lea ecx, [esp + 0x38]
call fcn.004c584d
mov esi, dword [esp + 0x64]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [esp + 0x5c], 1
test eax, eax
mov eax, dword [esp + 0x14]
mov edx, edi
jne 0x40c195
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c166
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0
call fcn.004c5bb0
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40c191
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40c1db
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0
call fcn.004c5bb0
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40c1d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4