Function at 0x402284
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40228b
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.004030f0
mov dword [esp + 4], 1
push dword [0x40b0c4]
call fcn.0040659e
mov eax, dword [0x40b368]
push eax
push eax
push 0x40a012
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00403500
lea ecx, [esp + 0xc]
pop edx
call fcn.00403100
mov edx, dword [esp + 8]
xor ecx, ecx
call fcn.00407c50
jne 0x40233e
mov ebx, dword [esp + 4]
and ebx, 1
and ebx, ebx
jne 0x402315
push dword [esp + 8]
call fcn.004035a0
push eax
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40b160]
shl ebx, 3
add ebp, ebx
pop eax
mov dword [ebp + 4], eax
inc dword [esp + 0xc]
jmp 0x40233c
mov edx, dword [esp + 8]
push dword [0x40b368]
call fcn.00407c80
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40b160]
shl ebx, 3
add ebp, ebx
lea ecx, [ebp]
pop edx
call fcn.00403100
jmp 0x402340
jmp 0x402349
inc dword [esp + 4]
jmp 0x4022b7
mov eax, dword [esp + 0xc]
mov dword [0x40b0cc], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jl 0x40256d
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40b160]
shl ebx, 3
add ebp, ebx
mov edx, dword [ebp]
push dword [0x40b368]
call fcn.00407c80
lea ecx, [esp + 0x18]
pop edx
call fcn.00403100
push dword [0x40b368]
push dword [esp + 0x18]
push dword [0x40b368]
mov edx, str.v2eincfile
call fcn.00407c80
mov eax, dword [0x40b368]
push eax
push eax
mov eax, dword [esp + 0x24]
cdq
push edx
push eax
add dword [esp], 1
adc dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.00403470
pop eax
inc dword [0x40b368]
mov edx, dword [0x40a23c]
add dword [esp], edx
call fcn.00403d09
pop dword [0x40b368]
mov ebx, dword [0x40b0c0]
cmp ebx, 1
je 0x402408
push dword [esp + 0x14]
push 1
call fcn.00406a40
and eax, eax
je 0x402408
mov eax, 1
jmp 0x40240a
xor eax, eax
and eax, eax
je 0x4024aa
push 1
call fcn.004067e0
push dword [0x40b368]
push 0x23
mov edx, dword [0x40b0ec]
push dword [0x40b368]
call fcn.00407c80
mov edx, 0x40a010
call fcn.00407c80
mov edx, dword [esp + 0x20]
call fcn.00407c80
mov edx, 0x40a010
call fcn.00407c80
mov edx, dword [0x40b0f0]
call fcn.00407c80
inc dword [0x40b368]
push dword [0x40b0e8]
mov edx, dword [0x40a23c]
add dword [esp + 4], edx
call fcn.004038d7
pop dword [0x40b368]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
cmp ebx, 7
jne 0x402495
jmp 0x402564
mov ebx, dword [esp + 0x18]
cmp ebx, 2
jne 0x4024aa
call fcn.00402115
xor eax, eax
jmp 0x402667
push dword [esp + 0x14]
push 1
call fcn.00406980
and eax, eax
je 0x402538
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40b160]
shl ebx, 3
add ebp, ebx
mov eax, dword [ebp + 4]
mov dword [esp + 0x1c], eax
push dword [esp + 0x1c]
mov ebx, dword [0x40b0ac]
add ebx, dword [esp + 0x24]
push ebx
push 1
call fcn.00406a60
push 1
call fcn.004067e0
mov ebx, dword [esp + 0x20]
add ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
push dword [0x40b168]
call fcn.0040472c
mov edx, dword [esp + 0x14]
push dword [0x40b368]
call fcn.00407c80
mov ebp, dword [0x40b16c]
lea ecx, [ebp + 8]
pop edx
call fcn.00403100
push dword [esp + 0x14]
call fcn.004070f0
mov dword [ebp + 0xc], eax
jmp 0x402564
mov edx, dword [esp + 0x24]
push dword [0x40b368]
call fcn.00407c80
mov edx, dword [esp + 0x18]
call fcn.00407c80
mov edx, 0x40a132
call fcn.00407c80
lea ecx, [esp + 0x28]
pop edx
call fcn.00403100
inc dword [esp + 0x10]
jmp 0x40235a
mov eax, dword [0x40b368]
push eax
push eax
mov eax, dword [0x40b368]
push eax
push eax
push dword [0x40b368]
push 0x40a132
push dword [esp + 0x3c]
call fcn.004038b0
inc dword [0x40b368]
mov edx, dword [0x40a23c]
add dword [esp], edx
call fcn.00403250
inc dword [0x40b368]
mov edx, dword [0x40a23c]
add dword [esp], edx
call fcn.004031e0
pop dword [0x40b368]
mov ebx, eax
and ebx, ebx
jle 0x40265e
push dword [0x40b368]
push 0x24
mov edx, dword [0x40b0dc]
push dword [0x40b368]
call fcn.00407c80
mov edx, str._r_n_r_n
call fcn.00407c80
mov edx, dword [esp + 0x30]
call fcn.00407c80
mov edx, 0x40a132
call fcn.00407c80
mov edx, dword [0x40b0d4]
call fcn.00407c80
inc dword [0x40b368]
push dword [0x40b0d8]
mov edx, dword [0x40a23c]
add dword [esp + 4], edx
call fcn.004038d7
pop dword [0x40b368]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
cmp ebx, 7
jne 0x40265e
call fcn.00402115
push dword [0x40b110]
call fcn.00406629
push dword [0x40b0c8]
call sub.KERNEL32.DLL_RemoveDirectoryA
push 0
jmp 0x401cef
mov eax, 1
jmp 0x402667
push dword [esp]
call fcn.00407ce0
push dword [esp + 8]
call fcn.00407ce0
push dword [esp + 0x14]
call fcn.00407ce0
push dword [esp + 0x24]
call fcn.00407ce0
add esp, 0x28
pop ebx
pop ebp
ret 4