Function at 0x4033c5
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4033cc
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00404060
mov dword [esp + 4], 1
push dword [0x40e468]
call fcn.004083b5
push dword [0x40e7c8]
push dword [0x40e7c8]
push 0x40d023
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00404730
lea eax, [esp + 0xc]
push eax
call fcn.0040aeb0
mov edx, dword [esp + 8]
xor ecx, ecx
call fcn.0040af30
jne 0x403492
mov ebx, dword [esp + 4]
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, edx
and ebx, ebx
jne 0x403469
push dword [esp + 8]
call fcn.00404840
push eax
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40e4e4]
shl ebx, 3
add ebp, ebx
pop eax
mov dword [ebp + 4], eax
mov ebx, dword [esp + 0xc]
inc ebx
mov dword [esp + 0xc], ebx
jmp 0x403490
mov edx, dword [esp + 8]
push dword [0x40e7c8]
call fcn.0040af60
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40e4e4]
shl ebx, 3
add ebp, ebx
lea eax, [ebp]
push eax
call fcn.0040aeb0
jmp 0x403494
jmp 0x4034a2
mov ebx, dword [esp + 4]
inc ebx
mov dword [esp + 4], ebx
jmp 0x4033f8
push dword [esp + 0xc]
pop eax
mov dword [0x40e418], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jl 0x4036ce
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40e4e4]
shl ebx, 3
add ebp, ebx
mov edx, dword [ebp]
push dword [0x40e7c8]
call fcn.0040af60
lea eax, [esp + 0x18]
push eax
call fcn.0040aeb0
push dword [0x40e7c8]
push dword [esp + 0x18]
push dword [0x40e7c8]
mov edx, str.b2eincfile
call fcn.0040af60
push dword [0x40e7c8]
push dword [0x40e7c8]
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.004046a0
pop eax
mov edx, dword [0x40d344]
add dword [esp], edx
call fcn.004050c1
pop dword [0x40e7c8]
mov ebx, dword [0x40e3fc]
cmp ebx, 1
je 0x403561
push dword [esp + 0x14]
push 1
call fcn.00408950
and eax, eax
je 0x403561
mov eax, 1
jmp 0x403563
xor eax, eax
and eax, eax
je 0x403603
push 1
call fcn.00408660
push dword [0x40e7c8]
push 0x23
mov edx, dword [0x40e410]
push dword [0x40e7c8]
call fcn.0040af60
mov edx, 0x40d021
call fcn.0040af60
mov edx, dword [esp + 0x20]
call fcn.0040af60
mov edx, 0x40d021
call fcn.0040af60
mov edx, dword [0x40e424]
call fcn.0040af60
inc dword [0x40e7c8]
push dword [0x40e480]
mov edx, dword [0x40d344]
add dword [esp + 4], edx
call fcn.00404bc4
pop dword [0x40e7c8]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
cmp ebx, 7
jne 0x4035ee
jmp 0x4036c4
mov ebx, dword [esp + 0x18]
cmp ebx, 2
jne 0x403603
call fcn.00403b05
xor eax, eax
jmp 0x4037c6
push dword [esp + 0x14]
push 1
call fcn.00408880
and eax, eax
je 0x403698
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40e4e4]
shl ebx, 3
add ebp, ebx
push dword [ebp + 4]
pop eax
mov dword [esp + 0x1c], eax
push dword [esp + 0x1c]
mov ebx, dword [0x40e4d4]
add ebx, dword [esp + 0x24]
push ebx
push 1
call fcn.00408a80
push 1
call fcn.00408660
mov ebx, dword [esp + 0x20]
add ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
push dword [0x40e4ec]
call fcn.004058d0
mov edx, dword [esp + 0x14]
push dword [0x40e7c8]
call fcn.0040af60
mov ebp, dword [0x40e4f0]
lea eax, [ebp + 8]
push eax
call fcn.0040aeb0
push dword [esp + 0x14]
call fcn.00409ae0
push eax
pop eax
mov dword [ebp + 0xc], eax
jmp 0x4036c4
mov edx, dword [esp + 0x24]
push dword [0x40e7c8]
call fcn.0040af60
mov edx, dword [esp + 0x18]
call fcn.0040af60
mov edx, 0x40d159
call fcn.0040af60
lea eax, [esp + 0x28]
push eax
call fcn.0040aeb0
inc dword [esp + 0x10]
jno 0x4034b4
push dword [0x40e7c8]
push dword [0x40e7c8]
push dword [0x40e7c8]
push dword [0x40e7c8]
push dword [0x40e7c8]
push 0x40d159
push dword [esp + 0x3c]
call fcn.00404b70
mov edx, dword [0x40d344]
add dword [esp], edx
call fcn.00404510
mov edx, dword [0x40d344]
add dword [esp], edx
call fcn.004040c0
pop dword [0x40e7c8]
mov ebx, eax
and ebx, ebx
jle 0x4037bd
push dword [0x40e7c8]
push 0x24
mov edx, dword [0x40e438]
push dword [0x40e7c8]
call fcn.0040af60
mov edx, str._r_n_r_n
call fcn.0040af60
mov edx, dword [esp + 0x30]
call fcn.0040af60
mov edx, 0x40d159
call fcn.0040af60
mov edx, dword [0x40e40c]
call fcn.0040af60
inc dword [0x40e7c8]
push dword [0x40e4d0]
mov edx, dword [0x40d344]
add dword [esp + 4], edx
call fcn.00404bc4
pop dword [0x40e7c8]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
cmp ebx, 7
jne 0x4037bd
call fcn.00403b05
push dword [0x40e474]
call fcn.004084cc
push dword [0x40e4cc]
call sub.KERNEL32.dll_RemoveDirectoryA
push 0
jmp 0x401ffc
mov eax, 1
jmp 0x4037c6
push dword [esp]
call fcn.0040afc0
push dword [esp + 0x24]
call fcn.0040afc0
push dword [esp + 0x14]
call fcn.0040afc0
push dword [esp + 8]
call fcn.0040afc0
add esp, 0x28
pop ebx
pop ebp
ret 4