Function at 0x404af0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x404fb4
call fcn.004029b0
mov esi, dword [0x4b39ac]
mov dword [ebp - 8], eax
mov ecx, dword [esi + 0x38c]
test ecx, ecx
je 0x404b38
push ecx
call dword [sym.imp.MMFS2.dll_Ordinal_174]
mov ecx, dword [0x4b39ac]
mov dword [ecx + 0x38c], 0
mov esi, dword [0x4b39ac]
mov eax, dword [esi + 0x88]
test eax, eax
je 0x404b5b
push eax
call fcn.0046d1e7
mov dword [esi + 0x88], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0x94]
test eax, eax
je 0x404b7e
push eax
call fcn.0046d1e7
mov dword [esi + 0x94], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x404ba1
push eax
call fcn.0046d1e7
mov dword [esi + 0xa8], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x404bc4
push eax
call fcn.0046d1e7
mov dword [esi + 0xa4], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0x80]
test eax, eax
je 0x404be7
push eax
call fcn.0046d1e7
mov dword [esi + 0x80], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x404c0a
push eax
call fcn.0046d1e7
mov dword [esi + 0x8c], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0x90]
test eax, eax
je 0x404c2d
push eax
call fcn.0046d1e7
mov dword [esi + 0x90], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x404c50
push eax
call fcn.0046d1e7
mov dword [esi + 0xcc], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x404c73
push eax
call fcn.0046d1e7
mov dword [esi + 0xd0], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x404c96
push eax
call fcn.0046d1e7
mov dword [esi + 0xd4], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0x26c]
test eax, eax
je 0x404cb9
push eax
call fcn.0046d1e7
mov dword [esi + 0x26c], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x404cdc
push eax
call fcn.0046d1e7
mov dword [esi + 0x1f4], 0
mov esi, dword [0x4b39ac]
add esp, 4
cmp byte [esi + 0x3ac], 0
je 0x404cf3
push dword [esi + 0x3b0]
call fcn.0046e083
add esp, 4
call fcn.00450ce0
mov esi, dword [0x4b39ac]
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x404d1b
push eax
call fcn.0046d1e7
add esp, 4
mov dword [esi + 0xc0], 0
call fcn.004333d0
call fcn.004340a0
call fcn.00435770
call fcn.004237a0
call fcn.00432ab0
call fcn.004479a0
mov esi, dword [0x4b39ac]
mov eax, dword [esi + 0x388]
test eax, eax
je 0x404d5c
push eax
call fcn.0046d1e7
add esp, 4
mov dword [esi + 0x388], 0
mov eax, dword [0x4b3984]
test eax, eax
je 0x404d80
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_14]
mov dword [0x4b3984], 0
mov dword [0x4b398c], 0
mov eax, dword [0x4b39ac]
mov ecx, 1
mov dword [eax + 0x1d0], 0
mov eax, dword [0x4b39ac]
mov dword [eax + 0x1d4], 0
call fcn.00404fc0
mov eax, dword [ebx + 0xac]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
test eax, eax
je 0x404dc5
push eax
call esi
mov dword [ebx + 0xac], 0
mov eax, dword [ebx + 0x1b8]
test eax, eax
je 0x404ddc
push eax
call esi
mov dword [ebx + 0x1b8], 0
mov esi, dword [0x4b39ac]
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x404e05
push eax
call fcn.0046d1e7
mov dword [esi + 0xbc], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov eax, dword [esi + 0x37c]
test eax, eax
je 0x404e28
push eax
call fcn.0046d1e7
mov dword [esi + 0x37c], 0
mov esi, dword [0x4b39ac]
add esp, 4
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_419]
xor eax, eax
cmp dword [esi + 0x1a8], eax
sete al
mov dword [ebp - 4], eax
test eax, eax
jne 0x404e54
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x404e54
push eax
call edi
mov esi, dword [0x4b39ac]
mov dword [esi + 0x9c], 0xffffffff
mov eax, dword [0x4b39ac]
mov eax, dword [eax + 0x9c]
cmp eax, 0xffffffff
je 0x404e80
push eax
call edi
mov eax, dword [0x4b39ac]
mov dword [eax + 0x9c], 0xffffffff
mov esi, dword [ebx + 0x174]
test esi, esi
je 0x404f00
lea edx, [ebx + 0x168]
jle 0x404ee7
cmp esi, dword [edx + 0x10]
jge 0x404ee7
mov eax, dword [edx + 0x1c]
mov ecx, esi
add ecx, ecx
mov edi, dword [eax + ecx*8 + 8]
test edi, edi
je 0x404ee7
mov eax, dword [edi + 0x208]
test eax, eax
je 0x404ed8
push eax
call fcn.0046ec63
push dword [edi + 0x208]
call fcn.0046d1e7
add esp, 8
mov dword [edi + 0x208], 0
mov dword [edi + 0x214], 0
push edi
call fcn.0046ea4e
add esp, 4
lea edx, [ebx + 0x168]
push esi
mov ecx, edx
call dword [sym.imp.MMFS2.dll_Ordinal_688]
mov esi, dword [ebx + 0x174]
lea edx, [ebx + 0x168]
test esi, esi
jne 0x404e90
mov ecx, ebx
call fcn.00402b00
mov eax, dword [0x4b39ac]
mov eax, dword [eax + 0x98]
test eax, eax
je 0x404f40
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, dword [0x4b39ac]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x404f40
push eax
call fcn.0046d1e7
add esp, 4
mov dword [esi + 0x98], 0
cmp dword [ebp - 4], 0
je 0x404f54
cmp dword [0x4b39c0], 0
je 0x404f54
call fcn.004508f0
mov eax, dword [ebp - 8]
mov dword [0x4b39ac], 0
cmp eax, ebx
je 0x404f6c
mov ecx, eax
call fcn.004029b0
lea ecx, [ebx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_281]
mov eax, dword [ebx + 0x2d4]
test eax, eax
je 0x404f8b
push eax
call fcn.0046d1e7
add esp, 4
lea esi, [ebx + 0x2d8]
mov edi, 0x20
mov eax, dword [esi]
test eax, eax
je 0x404fa5
push eax
call fcn.0046d1e7
add esp, 4
add esi, 4
dec edi
jne 0x404f96
push ebx
call fcn.0046d1e7
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret