Function at 0x40bc00
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5bf930
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.004c530c
push 0x5f50ef
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
call fcn.00416360
push 0x5f5b04
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x68], 2
call fcn.00404c80
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 3
call fcn.00404e30
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 0x40bc9f
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.004c5398
test eax, eax
je 0x40be8a
mov bl, 4
lea ecx, [esp + 0x38]
call fcn.004c509d
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
call fcn.004c52d3
test eax, eax
jne 0x40be7f
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
call fcn.004c55c7
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 0x5f50ef
je 0x40bdd5
lea ecx, [esp + 0x1c]
call fcn.00416360
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.004165d0
add esp, 0xc
push 0x5f5b00
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x68], 6
call fcn.00404c80
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 7
call fcn.00404e30
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 0x40bd75
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 0x40bd99
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.00405220
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.0040bc00
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 0x40be4f
lea ecx, [esp + 0x20]
call fcn.00416360
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.004165d0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 9
call fcn.00404e30
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 0x40be2d
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 0x40be5b
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 0x40be7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], 0
jne 0x40bcb9
lea ecx, [esp + 0x38]
call fcn.004c4fcd
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 0x40bef5
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bec6
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.004c5330
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40bef1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40bf3b
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf0e
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.004c5330
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40bf39
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