Function at 0x403cf0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x404249
call fcn.00401410
mov ecx, dword [esi + 0x3cc]
mov dword [ebp - 8], eax
test ecx, ecx
je 0x403d26
push ecx
call dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [esi + 0x3cc], 0
mov eax, dword [esi + 0x438]
test eax, eax
je 0x403d43
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x438], 0
mov eax, dword [esi + 0x88]
test eax, eax
je 0x403d60
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x88], 0
mov eax, dword [esi + 0x94]
test eax, eax
je 0x403d7d
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x94], 0
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x403d9a
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0xa8], 0
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x403db7
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0x80]
test eax, eax
je 0x403dd4
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x80], 0
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x403df1
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x8c], 0
mov eax, dword [esi + 0x90]
test eax, eax
je 0x403e0e
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x90], 0
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x403e2b
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0xcc], 0
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x403e48
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0xd0], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x403e65
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0xd4], 0
mov eax, dword [esi + 0x41c]
test eax, eax
je 0x403e82
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x41c], 0
mov eax, dword [esi + 0x420]
test eax, eax
je 0x403e9f
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x420], 0
mov eax, dword [esi + 0x26c]
test eax, eax
je 0x403ebc
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x26c], 0
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x403ed9
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x1f4], 0
cmp byte [esi + 0x3ec], 0
je 0x403ef0
push dword [esi + 0x3f0]
call fcn.004652f9
add esp, 4
call fcn.00459f10
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x403f12
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0xc0], 0
call fcn.0040a6a0
call fcn.0040b420
call fcn.0044e2e0
call fcn.0044c480
call fcn.0044bd70
call fcn.0042f6f0
mov eax, dword [esi + 0x3c8]
test eax, eax
je 0x403f4d
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x3c8], 0
mov eax, dword [0x49e5ac]
test eax, eax
je 0x403f9f
test byte [0x49e578], 2
je 0x403f84
test byte [0x49e5bc], 0x40
je 0x403f84
push 0
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_34]
test eax, eax
je 0x403f7f
push 0
mov ecx, eax
call dword [sym.imp.MMFS2.dll_Ordinal_340]
mov eax, dword [0x49e5ac]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_14]
mov dword [0x49e5ac], 0
mov dword [0x49e5b4], 0
mov ecx, 1
mov dword [esi + 0x1d0], 0
mov dword [esi + 0x1d4], 0
call fcn.00404250
mov eax, dword [esi + 0xac]
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
test eax, eax
je 0x403fda
push eax
call edi
mov dword [esi + 0xac], 0
mov eax, dword [esi + 0x1b8]
test eax, eax
je 0x403ff1
push eax
call edi
mov dword [esi + 0x1b8], 0
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x40400e
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0xbc], 0
mov eax, dword [esi + 0x3bc]
test eax, eax
je 0x40402b
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x3bc], 0
mov eax, dword [esi + 0x1a8]
mov dword [ebp - 4], eax
test eax, eax
je 0x40404a
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x40404a
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_419]
mov edi, dword [esi + 0x174]
mov dword [esi + 0x9c], 0xffffffff
test edi, edi
je 0x4040e3
lea edx, [esi + 0x168]
jle 0x4040ca
cmp edi, dword [esi + 0x178]
jge 0x4040ca
mov eax, dword [esi + 0x184]
mov ecx, edi
add ecx, ecx
mov ebx, dword [eax + ecx*8 + 8]
test ebx, ebx
je 0x4040ca
mov eax, dword [ebx + 0x208]
test eax, eax
je 0x4040b6
push eax
call fcn.00465f70
push dword [ebx + 0x208]
call fcn.00464c8a
add esp, 8
mov dword [ebx + 0x208], 0
mov dword [ebx + 0x218], 0
push 0x220
push ebx
call fcn.004611d6
add esp, 8
lea edx, [esi + 0x168]
push edi
mov ecx, edx
call dword [sym.imp.MMFS2.dll_Ordinal_688]
mov edi, dword [esi + 0x174]
lea edx, [esi + 0x168]
test edi, edi
jne 0x404068
mov edi, dword [0x49e5f0]
xor ecx, ecx
test edi, edi
jle 0x40415b
mov ebx, dword [0x49e5f8]
mov edx, ebx
cmp dword [edx], esi
je 0x404105
inc ecx
add edx, 4
cmp ecx, edi
jl 0x4040f7
jmp 0x40415b
lea eax, [edi - 1]
cmp ecx, eax
jge 0x40412f
sub edi, ecx
lea eax, [edi*4 - 4]
push eax
lea eax, [edx + 4]
push eax
push edx
call fcn.00464040
mov ebx, dword [0x49e5f8]
add esp, 0xc
mov edi, dword [0x49e5f0]
sub edi, 1
mov dword [0x49e5f0], edi
jne 0x40415b
mov dword [0x49e5f4], 0
test ebx, ebx
je 0x40415b
push ebx
call fcn.00464c8a
add esp, 4
mov dword [0x49e5f8], 0
mov eax, dword [esi + 0x98]
test eax, eax
je 0x404189
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x404189
push eax
call fcn.00464c8a
add esp, 4
mov dword [esi + 0x98], 0
cmp dword [ebp - 4], 0
jne 0x40419d
cmp dword [0x49e5e8], 0
je 0x40419d
call fcn.00459ad0
mov eax, dword [ebp - 8]
mov dword [0x49e5d4], 0
cmp eax, esi
je 0x4041b5
mov ecx, eax
call fcn.00401410
lea ecx, [esi + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_281]
mov eax, dword [esi + 0x2d4]
test eax, eax
je 0x4041d4
push eax
call fcn.00464c8a
add esp, 4
lea edi, [esi + 0x2d8]
mov ebx, 0x30
nop
mov eax, dword [edi]
test eax, eax
je 0x4041ef
push eax
call fcn.00464c8a
add esp, 4
add edi, 4
sub ebx, 1
jne 0x4041e0
mov edi, dword [esi + 0x424]
test edi, edi
je 0x404225
mov eax, dword [edi]
mov ecx, edi
push eax
push dword [eax]
lea eax, [ebp - 8]
push eax
call fcn.00405400
push 0x2c
push dword [edi]
call fcn.004611d6
push 8
push edi
call fcn.004611d6
add esp, 0x10
mov eax, dword [esi + 0x460]
mov dword [esi + 0x424], 0
test eax, eax
je 0x404240
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.00464c8a
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret