Function at 0x402ad2
Capabilities:
Delete directory
Terminate process

Disassembly:
push ebp
push ebx
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402ad9
mov edx, dword [esp + 0x54]
lea ecx, [esp]
call fcn.00404060
mov dword [esp + 4], 1
push dword [0x4124f4]
call fcn.0040b5b0
push dword [0x412a78]
push dword [0x412a78]
push dword [0x41253c]
push dword [0x412a78]
push dword [0x412a78]
call fcn.0040b5d2
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.004043f0
lea eax, [esp + 0xc]
push eax
call fcn.0040e040
push dword [0x412a78]
push dword [0x412a78]
push 0x411021
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004041b0
lea eax, [esp + 0x10]
push eax
call fcn.0040e040
mov edx, dword [esp + 0xc]
xor ecx, ecx
call fcn.0040e0c0
jne 0x402e10
mov ebx, dword [esp + 4]
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, edx
and ebx, ebx
jne 0x402bb8
push dword [esp + 0xc]
call fcn.00404490
push eax
mov ebx, dword [esp + 0x14]
mov ebp, dword [0x412588]
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 0x402e0e
mov edx, dword [esp + 0xc]
push dword [0x412a78]
call fcn.0040e0f0
mov ebx, dword [esp + 0x14]
mov ebp, dword [0x412588]
shl ebx, 3
add ebp, ebx
lea eax, [ebp]
push eax
call fcn.0040e040
push dword [0x41253c]
push dword [esp + 0x10]
call fcn.004045e0
and eax, eax
je 0x402e0e
mov edx, 0x41101e
lea ecx, [esp + 0x14]
call fcn.00404068
mov edx, 0x41101e
lea ecx, [esp + 0x18]
call fcn.00404068
push dword [0x41253c]
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 0x402e0e
push dword [esp + 0x14]
mov edx, 0x41101e
pop ecx
call fcn.0040e0c0
jne 0x402c66
mov edx, dword [esp + 0x14]
push dword [0x412a78]
call fcn.0040e0f0
lea eax, [esp + 0x1c]
push eax
call fcn.0040e040
push dword [0x412a78]
push dword [0x412a78]
push dword [0x41253c]
mov ebx, dword [esp + 0x2c]
inc ebx
push ebx
push dword [esp + 0x1c]
call fcn.004041b0
lea eax, [esp + 0x28]
push eax
call fcn.0040e040
push dword [0x412a78]
mov edx, dword [esp + 0xc]
push dword [0x412a78]
call fcn.0040e0f0
mov edx, dword [0x41253c]
call fcn.0040e0f0
mov edx, dword [esp + 0x20]
call fcn.0040e0f0
mov edx, dword [esp + 0x2c]
call fcn.0040e0f0
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.0040b4c4
pop dword [0x412a78]
mov edx, dword [esp + 0x14]
push dword [0x412a78]
call fcn.0040e0f0
mov edx, dword [esp + 0x28]
call fcn.0040e0f0
mov edx, dword [0x41253c]
call fcn.0040e0f0
lea eax, [esp + 0x18]
push eax
call fcn.0040e040
mov edx, dword [esp + 8]
push dword [0x412a78]
call fcn.0040e0f0
mov edx, dword [0x41253c]
call fcn.0040e0f0
mov edx, dword [esp + 0x1c]
call fcn.0040e0f0
mov edx, dword [esp + 0x28]
call fcn.0040e0f0
mov edx, dword [esp]
mov dword [0x412a78], edx
mov edx, dword [0x411324]
add dword [esp], edx
push dword [0x4125a0]
call fcn.0040c3a8
mov ebp, eax
mov ebx, dword [ebp]
cmp ebx, 1
jge 0x402e04
mov edx, dword [esp + 8]
push dword [0x412a78]
call fcn.0040e0f0
mov edx, dword [0x41253c]
call fcn.0040e0f0
mov edx, dword [esp + 0x1c]
call fcn.0040e0f0
mov edx, dword [esp + 0x28]
call fcn.0040e0f0
mov edx, dword [esp]
mov dword [0x412a78], edx
mov edx, dword [0x411324]
add dword [esp], edx
push dword [0x4125a0]
call fcn.0040c3a8
mov ebp, eax
mov dword [ebp], 1
push dword [0x412598]
call fcn.004087ad
mov edx, dword [esp + 8]
push dword [0x412a78]
call fcn.0040e0f0
mov edx, dword [0x41253c]
call fcn.0040e0f0
mov edx, dword [esp + 0x1c]
call fcn.0040e0f0
mov edx, dword [esp + 0x28]
call fcn.0040e0f0
mov ebp, dword [0x41259c]
lea eax, [ebp + 0xc]
push eax
call fcn.0040e040
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 0x402c2d
jmp 0x402e12
jmp 0x402e38
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 0x412588
push eax
call fcn.0040de25
jmp 0x402b40
push dword [esp + 0x10]
pop eax
mov dword [0x412478], eax
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x2c]
jl 0x403080
mov ebx, dword [esp + 0x2c]
mov ebp, dword [0x412588]
shl ebx, 3
add ebp, ebx
mov edx, dword [ebp]
push dword [0x412a78]
call fcn.0040e0f0
lea eax, [esp + 0x34]
push eax
call fcn.0040e040
mov ebx, dword [0x41245c]
cmp ebx, 1
je 0x402f14
push dword [esp + 0x30]
push 1
call fcn.0040ba00
and eax, eax
je 0x402f14
push 1
call fcn.0040b710
push dword [0x412a78]
push dword [0x412a78]
push 1
push dword [esp + 0x3c]
call fcn.004046c0
inc dword [0x412a78]
mov edx, 0x411023
pop ecx
mov dword [0x412a78], ecx
add ecx, dword [0x411324]
call fcn.0040e0c0
jne 0x402f0f
mov edx, dword [esp + 0x34]
push dword [0x412a78]
call fcn.0040e0f0
mov edx, dword [esp + 0x34]
call fcn.0040e0f0
mov edx, 0x411050
call fcn.0040e0f0
lea eax, [esp + 0x38]
push eax
call fcn.0040e040
jmp 0x403076
push dword [esp + 0x30]
push 1
call fcn.0040b930
and eax, eax
je 0x403011
push dword [0x412a78]
push dword [esp + 0x34]
mov edx, dword [0x412584]
push dword [0x412a78]
call fcn.0040e0f0
push dword [0x412a78]
push dword [0x412a78]
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 [0x411324]
add dword [esp], edx
call fcn.00407572
pop dword [0x412a78]
mov ebx, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x38], ebx
push dword [esp + 0x38]
pop eax
mov dword [0x412478], eax
mov ebx, dword [esp + 0x2c]
mov ebp, dword [0x412588]
shl ebx, 3
add ebp, ebx
push dword [ebp + 4]
pop eax
mov dword [esp + 0x3c], eax
push dword [esp + 0x3c]
mov ebx, dword [0x41256c]
add ebx, dword [esp + 0x44]
push ebx
push 1
call fcn.0040bab0
push 1
call fcn.0040b710
mov ebx, dword [esp + 0x40]
add ebx, dword [esp + 0x3c]
mov dword [esp + 0x40], ebx
push dword [0x412590]
call fcn.004087ad
mov edx, dword [esp + 0x30]
push dword [0x412a78]
call fcn.0040e0f0
mov ebp, dword [0x412594]
lea eax, [ebp + 8]
push eax
call fcn.0040e040
push dword [esp + 0x30]
call fcn.0040cbb0
push eax
pop eax
mov dword [ebp + 0xc], eax
jmp 0x403076
push dword [0x412a78]
push dword [0x412a78]
push 1
push dword [esp + 0x3c]
call fcn.004046c0
inc dword [0x412a78]
mov edx, 0x411023
pop ecx
mov dword [0x412a78], ecx
add ecx, dword [0x411324]
call fcn.0040e0c0
jne 0x403076
mov edx, dword [esp + 0x34]
push dword [0x412a78]
call fcn.0040e0f0
mov edx, dword [esp + 0x34]
call fcn.0040e0f0
mov edx, 0x411050
call fcn.0040e0f0
lea eax, [esp + 0x38]
push eax
call fcn.0040e040
inc dword [esp + 0x2c]
jno 0x402e4a
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push 0x411050
push dword [esp + 0x4c]
call fcn.00404b10
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.00404190
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.00404300
pop dword [0x412a78]
mov ebx, eax
and ebx, ebx
jle 0x403185
push dword [0x412a78]
push 0x24
mov edx, dword [0x412498]
push dword [0x412a78]
call fcn.0040e0f0
mov edx, str._r_n_r_n
call fcn.0040e0f0
mov edx, dword [esp + 0x40]
call fcn.0040e0f0
mov edx, 0x411050
call fcn.0040e0f0
mov edx, dword [0x41246c]
call fcn.0040e0f0
inc dword [0x412a78]
push dword [0x412564]
mov edx, dword [0x411324]
add dword [esp + 4], edx
call fcn.004070d0
pop dword [0x412a78]
mov dword [esp + 0x44], eax
mov ebx, dword [esp + 0x44]
cmp ebx, 7
jne 0x403185
call fcn.0040394b
push dword [0x412500]
call fcn.0040b4b6
push dword [0x412560]
call sub.i_RemoveDirectoryA
push dword [0x4124ec]
call fcn.0040b4b6
push dword [0x41255c]
call sub.i_RemoveDirectoryA
push 0
jmp 0x401d91
mov eax, 1
jmp 0x40318e
push dword [esp]
call fcn.0040e150
push dword [esp + 0x18]
call fcn.0040e150
push dword [esp + 0x14]
call fcn.0040e150
push dword [esp + 0x34]
call fcn.0040e150
push dword [esp + 0x24]
call fcn.0040e150
push dword [esp + 0x30]
call fcn.0040e150
push dword [esp + 0xc]
call fcn.0040e150
push dword [esp + 8]
call fcn.0040e150
add esp, 0x48
pop ebx
pop ebp
ret 4