Function at 0x403c30
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 0x404189
call fcn.004013f0
mov ecx, dword [esi + 0x3cc]
mov dword [ebp - 8], eax
test ecx, ecx
je 0x403c66
push ecx
call dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [esi + 0x3cc], 0
mov eax, dword [esi + 0x438]
test eax, eax
je 0x403c83
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x438], 0
mov eax, dword [esi + 0x88]
test eax, eax
je 0x403ca0
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x88], 0
mov eax, dword [esi + 0x94]
test eax, eax
je 0x403cbd
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x94], 0
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x403cda
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0xa8], 0
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x403cf7
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0x80]
test eax, eax
je 0x403d14
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x80], 0
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x403d31
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x8c], 0
mov eax, dword [esi + 0x90]
test eax, eax
je 0x403d4e
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x90], 0
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x403d6b
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0xcc], 0
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x403d88
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0xd0], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x403da5
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0xd4], 0
mov eax, dword [esi + 0x41c]
test eax, eax
je 0x403dc2
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x41c], 0
mov eax, dword [esi + 0x420]
test eax, eax
je 0x403ddf
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x420], 0
mov eax, dword [esi + 0x26c]
test eax, eax
je 0x403dfc
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x26c], 0
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x403e19
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x1f4], 0
cmp byte [esi + 0x3ec], 0
je 0x403e30
push dword [esi + 0x3f0]
call fcn.00466ee9
add esp, 4
call fcn.00459530
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x403e52
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0xc0], 0
call fcn.0040a390
call fcn.0040b110
call fcn.0044d8d0
call fcn.0044ba80
call fcn.0044b370
call fcn.0042f340
mov eax, dword [esi + 0x3c8]
test eax, eax
je 0x403e8d
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x3c8], 0
mov eax, dword [0x4a25ac]
test eax, eax
je 0x403edf
test byte [0x4a2578], 2
je 0x403ec4
test byte [0x4a25bc], 0x40
je 0x403ec4
push 0
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_34]
test eax, eax
je 0x403ebf
push 0
mov ecx, eax
call dword [sym.imp.MMFS2.dll_Ordinal_340]
mov eax, dword [0x4a25ac]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_14]
mov dword [0x4a25ac], 0
mov dword [0x4a25b4], 0
mov ecx, 1
mov dword [esi + 0x1d0], 0
mov dword [esi + 0x1d4], 0
call fcn.00404190
mov eax, dword [esi + 0xac]
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
test eax, eax
je 0x403f1a
push eax
call edi
mov dword [esi + 0xac], 0
mov eax, dword [esi + 0x1b8]
test eax, eax
je 0x403f31
push eax
call edi
mov dword [esi + 0x1b8], 0
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x403f4e
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0xbc], 0
mov eax, dword [esi + 0x3bc]
test eax, eax
je 0x403f6b
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x3bc], 0
mov eax, dword [esi + 0x1a8]
mov dword [ebp - 4], eax
test eax, eax
je 0x403f8a
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x403f8a
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_419]
mov edi, dword [esi + 0x174]
mov dword [esi + 0x9c], 0xffffffff
test edi, edi
je 0x404023
lea edx, [esi + 0x168]
jle 0x40400a
cmp edi, dword [esi + 0x178]
jge 0x40400a
mov eax, dword [esi + 0x184]
mov ecx, edi
add ecx, ecx
mov ebx, dword [eax + ecx*8 + 8]
test ebx, ebx
je 0x40400a
mov eax, dword [ebx + 0x208]
test eax, eax
je 0x403ff6
push eax
call fcn.00467b60
push dword [ebx + 0x208]
call fcn.0046687a
add esp, 8
mov dword [ebx + 0x208], 0
mov dword [ebx + 0x218], 0
push 0x220
push ebx
call fcn.00462dce
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 0x403fa8
mov edi, dword [0x4a25f0]
xor ecx, ecx
test edi, edi
jle 0x40409b
mov ebx, dword [0x4a25f8]
mov edx, ebx
cmp dword [edx], esi
je 0x404045
inc ecx
add edx, 4
cmp ecx, edi
jl 0x404037
jmp 0x40409b
lea eax, [edi - 1]
cmp ecx, eax
jge 0x40406f
sub edi, ecx
lea eax, [edi*4 - 4]
push eax
lea eax, [edx + 4]
push eax
push edx
call fcn.00465c30
mov ebx, dword [0x4a25f8]
add esp, 0xc
mov edi, dword [0x4a25f0]
sub edi, 1
mov dword [0x4a25f0], edi
jne 0x40409b
mov dword [0x4a25f4], 0
test ebx, ebx
je 0x40409b
push ebx
call fcn.0046687a
add esp, 4
mov dword [0x4a25f8], 0
mov eax, dword [esi + 0x98]
test eax, eax
je 0x4040c9
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x4040c9
push eax
call fcn.0046687a
add esp, 4
mov dword [esi + 0x98], 0
cmp dword [ebp - 4], 0
jne 0x4040dd
cmp dword [0x4a25e8], 0
je 0x4040dd
call fcn.004590f0
mov eax, dword [ebp - 8]
mov dword [0x4a25d4], 0
cmp eax, esi
je 0x4040f5
mov ecx, eax
call fcn.004013f0
lea ecx, [esi + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_281]
mov eax, dword [esi + 0x2d4]
test eax, eax
je 0x404114
push eax
call fcn.0046687a
add esp, 4
lea edi, [esi + 0x2d8]
mov ebx, 0x30
nop
mov eax, dword [edi]
test eax, eax
je 0x40412f
push eax
call fcn.0046687a
add esp, 4
add edi, 4
sub ebx, 1
jne 0x404120
mov edi, dword [esi + 0x424]
test edi, edi
je 0x404165
mov eax, dword [edi]
mov ecx, edi
push eax
push dword [eax]
lea eax, [ebp - 8]
push eax
call fcn.00405340
push 0x2c
push dword [edi]
call fcn.00462dce
push 8
push edi
call fcn.00462dce
add esp, 0x10
mov eax, dword [esi + 0x460]
mov dword [esi + 0x424], 0
test eax, eax
je 0x404180
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.0046687a
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret