Function at 0x40c9a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5cf030
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
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.004d463c
push 0x605167
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
call fcn.0041c260
push 0x606230
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x68], 2
call fcn.00404db0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 3
call fcn.00404f90
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 0x40ca3f
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.004d46c8
test eax, eax
je 0x40cc2a
mov bl, 4
lea ecx, [esp + 0x38]
call fcn.004d43cd
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
call fcn.004d4603
test eax, eax
jne 0x40cc1f
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
call fcn.004d48f7
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 0x605167
je 0x40cb75
lea ecx, [esp + 0x1c]
call fcn.0041c260
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.0041c4d0
add esp, 0xc
push 0x60622c
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x68], 6
call fcn.00404db0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 7
call fcn.00404f90
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 0x40cb15
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 0x40cb39
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.004053b0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.0040c9a0
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 0x40cbef
lea ecx, [esp + 0x20]
call fcn.0041c260
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.0041c4d0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 9
call fcn.00404f90
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 0x40cbcd
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 0x40cbfb
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 0x40cc1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], 0
jne 0x40ca59
lea ecx, [esp + 0x38]
call fcn.004d42fd
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 0x40cc95
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc66
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.004d4660
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40cc91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40ccdb
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ccae
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.004d4660
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40ccd9
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