Function at 0x402ac4
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402acb
mov edx, dword [esp + 0x54]
lea ecx, [esp]
call fcn.00404060
mov dword [esp + 4], 1
push dword [0x412568]
call fcn.0040ba90
push dword [0x412af8]
push dword [0x412af8]
push dword [0x4125b4]
push dword [0x412af8]
push dword [0x412af8]
call fcn.0040bab2
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.004043f0
lea eax, [esp + 0xc]
push eax
call fcn.0040e520
push dword [0x412af8]
push dword [0x412af8]
push 0x411021
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004041b0
lea eax, [esp + 0x10]
push eax
call fcn.0040e520
mov edx, dword [esp + 0xc]
xor ecx, ecx
call fcn.0040e5a0
jne 0x402e02
mov ebx, dword [esp + 4]
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, edx
and ebx, ebx
jne 0x402baa
push dword [esp + 0xc]
call fcn.00404490
push eax
mov ebx, dword [esp + 0x14]
mov ebp, dword [0x412600]
shl ebx, 3
add ebp, ebx
pop eax
mov dword [ebp + 4], eax
mov ebx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x402e00
mov edx, dword [esp + 0xc]
push dword [0x412af8]
call fcn.0040e5d0
mov ebx, dword [esp + 0x14]
mov ebp, dword [0x412600]
shl ebx, 3
add ebp, ebx
lea eax, [ebp]
push eax
call fcn.0040e520
push dword [0x4125b4]
push dword [esp + 0x10]
call fcn.004045e0
and eax, eax
je 0x402e00
mov edx, 0x41101e
lea ecx, [esp + 0x14]
call fcn.00404068
mov edx, 0x41101e
lea ecx, [esp + 0x18]
call fcn.00404068
push dword [0x4125b4]
push dword [esp + 0x10]
call fcn.00404640
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov ebx, dword [esp + 0x1c]
dec ebx
cmp ebx, dword [esp + 0x20]
jl 0x402e00
push dword [esp + 0x14]
mov edx, 0x41101e
pop ecx
call fcn.0040e5a0
jne 0x402c58
mov edx, dword [esp + 0x14]
push dword [0x412af8]
call fcn.0040e5d0
lea eax, [esp + 0x1c]
push eax
call fcn.0040e520
push dword [0x412af8]
push dword [0x412af8]
push dword [0x4125b4]
mov ebx, dword [esp + 0x2c]
inc ebx
push ebx
push dword [esp + 0x1c]
call fcn.004041b0
lea eax, [esp + 0x28]
push eax
call fcn.0040e520
push dword [0x412af8]
mov edx, dword [esp + 0xc]
push dword [0x412af8]
call fcn.0040e5d0
mov edx, dword [0x4125b4]
call fcn.0040e5d0
mov edx, dword [esp + 0x20]
call fcn.0040e5d0
mov edx, dword [esp + 0x2c]
call fcn.0040e5d0
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.0040b9a4
pop dword [0x412af8]
mov edx, dword [esp + 0x14]
push dword [0x412af8]
call fcn.0040e5d0
mov edx, dword [esp + 0x28]
call fcn.0040e5d0
mov edx, dword [0x4125b4]
call fcn.0040e5d0
lea eax, [esp + 0x18]
push eax
call fcn.0040e520
mov edx, dword [esp + 8]
push dword [0x412af8]
call fcn.0040e5d0
mov edx, dword [0x4125b4]
call fcn.0040e5d0
mov edx, dword [esp + 0x1c]
call fcn.0040e5d0
mov edx, dword [esp + 0x28]
call fcn.0040e5d0
mov edx, dword [esp]
mov dword [0x412af8], edx
mov edx, dword [0x411320]
add dword [esp], edx
push dword [0x412618]
call fcn.0040c888
mov ebp, eax
mov ebx, dword [ebp]
cmp ebx, 1
jge 0x402df6
mov edx, dword [esp + 8]
push dword [0x412af8]
call fcn.0040e5d0
mov edx, dword [0x4125b4]
call fcn.0040e5d0
mov edx, dword [esp + 0x1c]
call fcn.0040e5d0
mov edx, dword [esp + 0x28]
call fcn.0040e5d0
mov edx, dword [esp]
mov dword [0x412af8], edx
mov edx, dword [0x411320]
add dword [esp], edx
push dword [0x412618]
call fcn.0040c888
mov ebp, eax
mov dword [ebp], 1
push dword [0x412610]
call fcn.00408cad
mov edx, dword [esp + 8]
push dword [0x412af8]
call fcn.0040e5d0
mov edx, dword [0x4125b4]
call fcn.0040e5d0
mov edx, dword [esp + 0x1c]
call fcn.0040e5d0
mov edx, dword [esp + 0x28]
call fcn.0040e5d0
mov ebp, dword [0x412614]
lea eax, [ebp + 0xc]
push eax
call fcn.0040e520
push dword [esp + 0x28]
pop eax
mov dword [ebp + 8], eax
mov ebx, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x28], ebx
inc dword [esp + 0x20]
jno 0x402c1f
jmp 0x402e04
jmp 0x402e2a
mov ebx, dword [esp + 4]
inc ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp + 4]
add ebx, 0x400
mov eax, ebx
inc eax
push 0x412600
push eax
call fcn.0040e305
jmp 0x402b32
push dword [esp + 0x10]
pop eax
mov dword [0x4124ec], eax
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x2c]
jl 0x403072
mov ebx, dword [esp + 0x2c]
mov ebp, dword [0x412600]
shl ebx, 3
add ebp, ebx
mov edx, dword [ebp]
push dword [0x412af8]
call fcn.0040e5d0
lea eax, [esp + 0x34]
push eax
call fcn.0040e520
mov ebx, dword [0x4124d0]
cmp ebx, 1
je 0x402f06
push dword [esp + 0x30]
push 1
call fcn.0040bee0
and eax, eax
je 0x402f06
push 1
call fcn.0040bbf0
push dword [0x412af8]
push dword [0x412af8]
push 1
push dword [esp + 0x3c]
call fcn.004046c0
inc dword [0x412af8]
mov edx, 0x411023
pop ecx
mov dword [0x412af8], ecx
add ecx, dword [0x411320]
call fcn.0040e5a0
jne 0x402f01
mov edx, dword [esp + 0x34]
push dword [0x412af8]
call fcn.0040e5d0
mov edx, dword [esp + 0x34]
call fcn.0040e5d0
mov edx, 0x41104b
call fcn.0040e5d0
lea eax, [esp + 0x38]
push eax
call fcn.0040e520
jmp 0x403068
push dword [esp + 0x30]
push 1
call fcn.0040be10
and eax, eax
je 0x403003
push dword [0x412af8]
push dword [esp + 0x34]
mov edx, dword [0x4125fc]
push dword [0x412af8]
call fcn.0040e5d0
push dword [0x412af8]
push dword [0x412af8]
mov eax, dword [esp + 0x4c]
cdq
push edx
push eax
add dword [esp], 1
adc dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.004048a0
pop eax
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.00407572
pop dword [0x412af8]
mov ebx, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x38], ebx
push dword [esp + 0x38]
pop eax
mov dword [0x4124ec], eax
mov ebx, dword [esp + 0x2c]
mov ebp, dword [0x412600]
shl ebx, 3
add ebp, ebx
push dword [ebp + 4]
pop eax
mov dword [esp + 0x3c], eax
push dword [esp + 0x3c]
mov ebx, dword [0x4125e4]
add ebx, dword [esp + 0x44]
push ebx
push 1
call fcn.0040bf90
push 1
call fcn.0040bbf0
mov ebx, dword [esp + 0x40]
add ebx, dword [esp + 0x3c]
mov dword [esp + 0x40], ebx
push dword [0x412608]
call fcn.00408cad
mov edx, dword [esp + 0x30]
push dword [0x412af8]
call fcn.0040e5d0
mov ebp, dword [0x41260c]
lea eax, [ebp + 8]
push eax
call fcn.0040e520
push dword [esp + 0x30]
call fcn.0040d090
push eax
pop eax
mov dword [ebp + 0xc], eax
jmp 0x403068
push dword [0x412af8]
push dword [0x412af8]
push 1
push dword [esp + 0x3c]
call fcn.004046c0
inc dword [0x412af8]
mov edx, 0x411023
pop ecx
mov dword [0x412af8], ecx
add ecx, dword [0x411320]
call fcn.0040e5a0
jne 0x403068
mov edx, dword [esp + 0x34]
push dword [0x412af8]
call fcn.0040e5d0
mov edx, dword [esp + 0x34]
call fcn.0040e5d0
mov edx, 0x41104b
call fcn.0040e5d0
lea eax, [esp + 0x38]
push eax
call fcn.0040e520
inc dword [esp + 0x2c]
jno 0x402e3c
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push 0x41104b
push dword [esp + 0x4c]
call fcn.00404b10
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.00404190
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.00404300
pop dword [0x412af8]
mov ebx, eax
and ebx, ebx
jle 0x403177
push dword [0x412af8]
push 0x24
mov edx, dword [0x41250c]
push dword [0x412af8]
call fcn.0040e5d0
mov edx, str._r_n_r_n
call fcn.0040e5d0
mov edx, dword [esp + 0x40]
call fcn.0040e5d0
mov edx, 0x41104b
call fcn.0040e5d0
mov edx, dword [0x4124e0]
call fcn.0040e5d0
inc dword [0x412af8]
push dword [0x4125dc]
mov edx, dword [0x411320]
add dword [esp + 4], edx
call fcn.004070d0
pop dword [0x412af8]
mov dword [esp + 0x44], eax
mov ebx, dword [esp + 0x44]
cmp ebx, 7
jne 0x403177
call fcn.0040393d
push dword [0x412574]
call fcn.0040b996
push dword [0x4125d8]
call sub.KERNEL32.dll_RemoveDirectoryA
push dword [0x412560]
call fcn.0040b996
push dword [0x4125d4]
call sub.KERNEL32.dll_RemoveDirectoryA
push 0
jmp 0x401dde
mov eax, 1
jmp 0x403180
push dword [esp]
call fcn.0040e630
push dword [esp + 0x18]
call fcn.0040e630
push dword [esp + 0x14]
call fcn.0040e630
push dword [esp + 0x34]
call fcn.0040e630
push dword [esp + 0x24]
call fcn.0040e630
push dword [esp + 0x30]
call fcn.0040e630
push dword [esp + 0xc]
call fcn.0040e630
push dword [esp + 8]
call fcn.0040e630
add esp, 0x48
pop ebx
pop ebp
ret 4