Function at 0x402553
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40255a
mov edx, dword [esp + 0x54]
lea ecx, [esp]
call fcn.00404060
mov dword [esp + 4], 1
push dword [0x4102a8]
call fcn.0040a3c5
push dword [0x4105e8]
push dword [0x4105e8]
push str.BDFINOPSe_td
push dword [0x4105e8]
push dword [0x4105e8]
call fcn.0040a385
mov edx, dword [0x40f25c]
add dword [esp], edx
call fcn.00404410
lea eax, [esp + 0xc]
push eax
call fcn.0040ce40
push dword [0x4105e8]
push dword [0x4105e8]
push 0x40f023
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004044b0
lea eax, [esp + 0x10]
push eax
call fcn.0040ce40
mov edx, dword [esp + 0xc]
xor ecx, ecx
call fcn.0040cec0
jne 0x402888
mov ebx, dword [esp + 4]
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, edx
and ebx, ebx
jne 0x402638
push dword [esp + 0xc]
call fcn.004045c0
push eax
mov ebx, dword [esp + 0x14]
mov ebp, dword [0x410304]
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 0x402886
mov edx, dword [esp + 0xc]
push dword [0x4105e8]
call fcn.0040cef0
mov ebx, dword [esp + 0x14]
mov ebp, dword [0x410304]
shl ebx, 3
add ebp, ebx
lea eax, [ebp]
push eax
call fcn.0040ce40
push str.BDFINOPSe_td
push dword [esp + 0x10]
call fcn.00404710
and eax, eax
je 0x402886
mov edx, 0x40f01e
lea ecx, [esp + 0x14]
call fcn.00404068
mov edx, 0x40f01e
lea ecx, [esp + 0x18]
call fcn.00404068
push str.BDFINOPSe_td
push dword [esp + 0x10]
call fcn.00404770
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov ebx, dword [esp + 0x1c]
dec ebx
cmp ebx, dword [esp + 0x20]
jl 0x402886
push dword [esp + 0x14]
mov edx, 0x40f01e
pop ecx
call fcn.0040cec0
jne 0x4026e4
mov edx, dword [esp + 0x14]
push dword [0x4105e8]
call fcn.0040cef0
lea eax, [esp + 0x1c]
push eax
call fcn.0040ce40
push dword [0x4105e8]
push dword [0x4105e8]
push str.BDFINOPSe_td
mov ebx, dword [esp + 0x2c]
inc ebx
push ebx
push dword [esp + 0x1c]
call fcn.004044b0
lea eax, [esp + 0x28]
push eax
call fcn.0040ce40
push dword [0x4105e8]
mov edx, dword [esp + 0xc]
push dword [0x4105e8]
call fcn.0040cef0
mov edx, str.BDFINOPSe_td
call fcn.0040cef0
mov edx, dword [esp + 0x20]
call fcn.0040cef0
mov edx, dword [esp + 0x2c]
call fcn.0040cef0
mov edx, dword [0x40f25c]
add dword [esp], edx
call fcn.0040a5b4
pop dword [0x4105e8]
mov edx, dword [esp + 0x14]
push dword [0x4105e8]
call fcn.0040cef0
mov edx, dword [esp + 0x28]
call fcn.0040cef0
mov edx, str.BDFINOPSe_td
call fcn.0040cef0
lea eax, [esp + 0x18]
push eax
call fcn.0040ce40
mov edx, dword [esp + 8]
push dword [0x4105e8]
call fcn.0040cef0
mov edx, str.BDFINOPSe_td
call fcn.0040cef0
mov edx, dword [esp + 0x1c]
call fcn.0040cef0
mov edx, dword [esp + 0x28]
call fcn.0040cef0
mov edx, dword [esp]
mov dword [0x4105e8], edx
mov edx, dword [0x40f25c]
add dword [esp], edx
push dword [0x41031c]
call fcn.0040b1a8
mov ebp, eax
mov ebx, dword [ebp]
cmp ebx, 1
jge 0x40287c
mov edx, dword [esp + 8]
push dword [0x4105e8]
call fcn.0040cef0
mov edx, str.BDFINOPSe_td
call fcn.0040cef0
mov edx, dword [esp + 0x1c]
call fcn.0040cef0
mov edx, dword [esp + 0x28]
call fcn.0040cef0
mov edx, dword [esp]
mov dword [0x4105e8], edx
mov edx, dword [0x40f25c]
add dword [esp], edx
push dword [0x41031c]
call fcn.0040b1a8
mov ebp, eax
mov dword [ebp], 1
push dword [0x410314]
call fcn.004077fd
mov edx, dword [esp + 8]
push dword [0x4105e8]
call fcn.0040cef0
mov edx, str.BDFINOPSe_td
call fcn.0040cef0
mov edx, dword [esp + 0x1c]
call fcn.0040cef0
mov edx, dword [esp + 0x28]
call fcn.0040cef0
mov ebp, dword [0x410318]
lea eax, [ebp + 0xc]
push eax
call fcn.0040ce40
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 0x4026ab
jmp 0x40288a
jmp 0x4028b0
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 0x410304
push eax
call fcn.0040cc25
jmp 0x4025c0
push dword [esp + 0x10]
pop eax
mov dword [0x41026c], eax
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x2c]
jl 0x402b28
mov ebx, dword [esp + 0x2c]
mov ebp, dword [0x410304]
shl ebx, 3
add ebp, ebx
mov edx, dword [ebp]
push dword [0x4105e8]
call fcn.0040cef0
lea eax, [esp + 0x34]
push eax
call fcn.0040ce40
mov ebx, dword [0x410250]
cmp ebx, 1
je 0x40291b
push dword [esp + 0x30]
push 1
call fcn.0040a960
and eax, eax
je 0x40291b
mov eax, 1
jmp 0x40291d
xor eax, eax
and eax, eax
je 0x4029bd
push 1
call fcn.0040a670
push dword [0x4105e8]
push 0x23
mov edx, dword [0x410264]
push dword [0x4105e8]
call fcn.0040cef0
mov edx, 0x40f021
call fcn.0040cef0
mov edx, dword [esp + 0x3c]
call fcn.0040cef0
mov edx, 0x40f021
call fcn.0040cef0
mov edx, dword [0x410274]
call fcn.0040cef0
inc dword [0x4105e8]
push dword [0x4102bc]
mov edx, dword [0x40f25c]
add dword [esp + 4], edx
call fcn.00406fa0
pop dword [0x4105e8]
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x34]
cmp ebx, 7
jne 0x4029a8
jmp 0x402b1e
mov ebx, dword [esp + 0x34]
cmp ebx, 2
jne 0x4029bd
call fcn.0040302f
xor eax, eax
jmp 0x402c20
push dword [esp + 0x30]
push 1
call fcn.0040a890
and eax, eax
je 0x402ab9
push dword [0x4105e8]
push dword [esp + 0x34]
push dword [0x4105e8]
mov edx, str.v2eincfile
call fcn.0040cef0
push dword [0x4105e8]
push dword [0x4105e8]
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.00404380
pop eax
mov edx, dword [0x40f25c]
add dword [esp], edx
call fcn.0040749d
pop dword [0x4105e8]
mov ebx, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x38], ebx
push dword [esp + 0x38]
pop eax
mov dword [0x41026c], eax
mov ebx, dword [esp + 0x2c]
mov ebp, dword [0x410304]
shl ebx, 3
add ebp, ebx
push dword [ebp + 4]
pop eax
mov dword [esp + 0x3c], eax
push dword [esp + 0x3c]
mov ebx, dword [0x410300]
add ebx, dword [esp + 0x44]
push ebx
push 1
call fcn.0040aa10
push 1
call fcn.0040a670
mov ebx, dword [esp + 0x40]
add ebx, dword [esp + 0x3c]
mov dword [esp + 0x40], ebx
push dword [0x41030c]
call fcn.004077fd
mov edx, dword [esp + 0x30]
push dword [0x4105e8]
call fcn.0040cef0
mov ebp, dword [0x410310]
lea eax, [ebp + 8]
push eax
call fcn.0040ce40
push dword [esp + 0x30]
call fcn.0040b9b0
push eax
pop eax
mov dword [ebp + 0xc], eax
jmp 0x402b1e
push dword [0x4105e8]
push dword [0x4105e8]
push 1
push dword [esp + 0x3c]
call fcn.004047f0
inc dword [0x4105e8]
mov edx, 0x40f030
pop ecx
mov dword [0x4105e8], ecx
add ecx, dword [0x40f25c]
call fcn.0040cec0
jne 0x402b1e
mov edx, dword [esp + 0x44]
push dword [0x4105e8]
call fcn.0040cef0
mov edx, dword [esp + 0x34]
call fcn.0040cef0
mov edx, 0x40f192
call fcn.0040cef0
lea eax, [esp + 0x48]
push eax
call fcn.0040ce40
inc dword [esp + 0x2c]
jno 0x4028c2
push dword [0x4105e8]
push dword [0x4105e8]
push dword [0x4105e8]
push dword [0x4105e8]
push dword [0x4105e8]
push 0x40f192
push dword [esp + 0x5c]
call fcn.00404a40
mov edx, dword [0x40f25c]
add dword [esp], edx
call fcn.004041f0
mov edx, dword [0x40f25c]
add dword [esp], edx
call fcn.004040c0
pop dword [0x4105e8]
mov ebx, eax
and ebx, ebx
jle 0x402c17
push dword [0x4105e8]
push 0x24
mov edx, dword [0x410284]
push dword [0x4105e8]
call fcn.0040cef0
mov edx, str._r_n_r_n
call fcn.0040cef0
mov edx, dword [esp + 0x50]
call fcn.0040cef0
mov edx, 0x40f192
call fcn.0040cef0
mov edx, dword [0x410260]
call fcn.0040cef0
inc dword [0x4105e8]
push dword [0x4102fc]
mov edx, dword [0x40f25c]
add dword [esp + 4], edx
call fcn.00406fa0
pop dword [0x4105e8]
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x34]
cmp ebx, 7
jne 0x402c17
call fcn.0040302f
push dword [0x4102b0]
call fcn.0040a47b
push dword [0x4102f8]
call sub.KERNEL32.dll_RemoveDirectoryA
push 0
jmp 0x401c92
mov eax, 1
jmp 0x402c20
push dword [esp]
call fcn.0040cf50
push dword [esp + 0x18]
call fcn.0040cf50
push dword [esp + 0x14]
call fcn.0040cf50
push dword [esp + 0x44]
call fcn.0040cf50
push dword [esp + 0x24]
call fcn.0040cf50
push dword [esp + 0x30]
call fcn.0040cf50
push dword [esp + 0xc]
call fcn.0040cf50
push dword [esp + 8]
call fcn.0040cf50
add esp, 0x48
pop ebx
pop ebp
ret 4