Function at 0x402cc3
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402cca
mov edx, dword [esp + 0x40]
lea ecx, [esp]
call fcn.00404060
mov dword [esp + 4], 1
push dword [0x4123d0]
call fcn.0040b8bb
push dword [0x412940]
push dword [0x412940]
push dword [0x412410]
push dword [0x412940]
push dword [0x412940]
call fcn.0040b87b
mov edx, dword [0x411264]
add dword [esp], edx
call fcn.00404510
lea eax, [esp + 0xc]
push eax
call fcn.0040e2b0
push dword [esp + 8]
push dword [esp + 4]
call fcn.004024e7
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
pop eax
mov dword [0x412384], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jl 0x402f8d
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x41244c]
shl ebx, 3
add ebp, ebx
mov edx, dword [ebp]
push dword [0x412940]
call fcn.0040e330
lea eax, [esp + 0x18]
push eax
call fcn.0040e2b0
mov ebx, dword [0x412364]
cmp ebx, 1
je 0x402e1e
push dword [esp + 0x14]
push 1
call fcn.0040bdd0
and eax, eax
je 0x402e1e
push 1
call fcn.0040bae0
push dword [0x412940]
push dword [0x412940]
push 1
push dword [esp + 0x20]
call fcn.004045b0
inc dword [0x412940]
mov edx, 0x411023
pop ecx
mov dword [0x412940], ecx
add ecx, dword [0x411264]
call fcn.0040e390
jne 0x402e19
mov edx, dword [esp + 0x18]
push dword [0x412940]
call fcn.0040e330
mov edx, dword [esp + 0x18]
call fcn.0040e330
mov edx, 0x411035
call fcn.0040e330
lea eax, [esp + 0x1c]
push eax
call fcn.0040e2b0
jmp 0x402f83
push dword [esp + 0x14]
push 1
call fcn.0040bd00
and eax, eax
je 0x402f1e
push dword [0x412940]
push dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push dword [0x412940]
call fcn.0040e330
push dword [0x412940]
push dword [0x412940]
mov eax, dword [esp + 0x34]
cdq
push edx
push eax
add dword [esp], 1
adc dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.00404790
pop eax
mov edx, dword [0x411264]
add dword [esp], edx
call fcn.004074fd
pop dword [0x412940]
mov ebx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x20], ebx
push dword [esp + 0x20]
pop eax
mov dword [0x412384], eax
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x41244c]
shl ebx, 3
add ebp, ebx
push dword [ebp + 4]
pop eax
mov dword [0x412380], eax
push dword [0x412380]
mov ebx, dword [0x41243c]
add ebx, dword [esp + 0x28]
push ebx
push 1
call fcn.0040be80
push 1
call fcn.0040bae0
mov ebx, dword [esp + 0x24]
add ebx, dword [0x412380]
mov dword [esp + 0x24], ebx
push dword [0x412454]
call fcn.00408bcd
mov edx, dword [esp + 0x14]
push dword [0x412940]
call fcn.0040e330
mov ebp, dword [0x412458]
lea eax, [ebp + 8]
push eax
call fcn.0040e2b0
push dword [esp + 0x14]
call fcn.0040ce20
push eax
pop eax
mov dword [ebp + 0xc], eax
jmp 0x402f83
push dword [0x412940]
push dword [0x412940]
push 1
push dword [esp + 0x20]
call fcn.004045b0
inc dword [0x412940]
mov edx, 0x411023
pop ecx
mov dword [0x412940], ecx
add ecx, dword [0x411264]
call fcn.0040e390
jne 0x402f83
mov edx, dword [esp + 0x18]
push dword [0x412940]
call fcn.0040e330
mov edx, dword [esp + 0x18]
call fcn.0040e330
mov edx, 0x411035
call fcn.0040e330
lea eax, [esp + 0x1c]
push eax
call fcn.0040e2b0
inc dword [esp + 0x10]
jno 0x402d54
push dword [0x412940]
push dword [0x412940]
push dword [0x412940]
push dword [0x412940]
push dword [0x412940]
push 0x411035
push dword [esp + 0x30]
call fcn.00404a00
mov edx, dword [0x411264]
add dword [esp], edx
call fcn.00404180
mov edx, dword [0x411264]
add dword [esp], edx
call fcn.004042b0
pop dword [0x412940]
mov ebx, eax
and ebx, ebx
jle 0x40308e
push dword [0x412940]
push 0x24
mov edx, dword [0x41239c]
push dword [0x412940]
call fcn.0040e330
mov edx, str._r_n_r_n
call fcn.0040e330
mov edx, dword [esp + 0x24]
call fcn.0040e330
mov edx, 0x411035
call fcn.0040e330
mov edx, dword [0x41237c]
call fcn.0040e330
inc dword [0x412940]
push dword [0x412434]
mov edx, dword [0x411264]
add dword [esp + 4], edx
call fcn.00407000
pop dword [0x412940]
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x28]
cmp ebx, 7
jne 0x40308e
call fcn.00403759
push dword [0x4123d8]
call fcn.0040b971
push dword [0x412424]
call sub.KERNEL32.dll_RemoveDirectoryA
push dword [esp + 0x2c]
call fcn.0040b971
push dword [esp + 0x30]
call sub.KERNEL32.dll_RemoveDirectoryA
push 0
jmp fcn.00401771
mov eax, 1
jmp 0x403097
push dword [esp]
call fcn.0040e3c0
push dword [esp + 0x2c]
call fcn.0040e3c0
push dword [esp + 0x30]
call fcn.0040e3c0
push dword [esp + 0x18]
call fcn.0040e3c0
push dword [esp + 0x14]
call fcn.0040e3c0
push dword [esp + 0x1c]
call fcn.0040e3c0
push dword [esp + 8]
call fcn.0040e3c0
add esp, 0x34
pop ebx
pop ebp
ret 4