Function at 0x4476a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4b4bc8]
sub esp, 0x30
push esi
mov esi, dword [0x4b4bcc]
push edi
test eax, eax
je 0x4476f1
xor edi, edi
test eax, eax
jle 0x4476f1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
test eax, eax
je 0x4476df
push eax
call fcn.00478e8f
add esp, 4
mov dword [esi + 4], 0
inc edi
add esi, 0xc
cmp edi, dword [0x4b4bc8]
jl 0x4476c0
mov esi, dword [0x4b4bcc]
test esi, esi
je 0x447712
push esi
call fcn.00478e8f
add esp, 4
mov dword [0x4b4bcc], 0
mov dword [0x4b4bc8], 0
mov eax, dword [0x4b4bc4]
test eax, eax
je 0x447787
xor esi, esi
cmp dword [0x4b4bbc], esi
jle 0x44775c
push dword [eax + esi*4]
call fcn.0047a07a
mov eax, dword [0x4b4bc4]
add esp, 4
mov ecx, dword [eax + esi*4]
lea edi, [eax + esi*4]
test ecx, ecx
je 0x447753
push ecx
call fcn.00478e8f
mov dword [edi], 0
add esp, 4
mov eax, dword [0x4b4bc4]
inc esi
cmp esi, dword [0x4b4bbc]
jl 0x447725
test eax, eax
je 0x447773
push eax
call fcn.00478e8f
add esp, 4
mov dword [0x4b4bc4], 0
mov dword [0x4b4bbc], 0
mov dword [0x4b4bc0], 0
mov eax, dword [0x4b4cf8]
test eax, eax
je 0x4477b4
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_191]
push 0
push 2
push eax
call esi
cmp dword [0x4b4b90], 0
je 0x4477ec
push 0
push 1
push dword [0x4b4cf8]
call esi
jmp 0x4477c9
cmp dword [0x4b4b90], 0
je 0x4477ec
push 0
push 1
push 0
call dword [sym.imp.MMFS2.dll_Ordinal_191]
mov ecx, dword [0x4b4b90]
push 1
call dword [sym.imp.MMFS2.dll_Ordinal_755]
mov ecx, dword [0x4b4b90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [0x4b4b90], 0
mov ecx, dword [0x4b4b8c]
test ecx, ecx
je 0x447810
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x4b4b8c]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [0x4b4b8c], 0
mov ecx, dword [0x4b4b88]
test ecx, ecx
je 0x447834
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x4b4b88]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [0x4b4b88], 0
mov eax, dword [0x4b4b70]
mov dword [0x4b4d74], 1
test eax, eax
je 0x44791a
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
mov dword [0x4b4b70], 0
mov dword [0x4b4b68], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 8]
call fcn.00402810
mov ecx, dword [esp + 8]
sub ecx, dword [0x4b4f78]
mov eax, dword [esp + 0xc]
sbb eax, dword [0x4b4f7c]
push 0
push 0xf4240
push eax
push ecx
call fcn.00491750
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push 0
push eax
call edi
test eax, eax
je 0x44791a
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
nop dword [eax]
lea ecx, [esp + 0x10]
call fcn.00402810
mov ecx, dword [esp + 0x10]
sub ecx, dword [0x4b4f78]
mov eax, dword [esp + 0x14]
sbb eax, dword [0x4b4f7c]
push 0
push 0xf4240
push eax
push ecx
call fcn.00491750
sub eax, dword [esp + 8]
cmp eax, 0xbb8
ja 0x44791a
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
je 0x44791a
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call edi
test eax, eax
jne 0x4478c0
mov eax, dword [0x4b4b68]
test eax, eax
je 0x447934
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_14]
mov dword [0x4b4b68], 0
mov eax, dword [0x4b4cf8]
test eax, eax
je 0x44794e
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_4]
mov dword [0x4b4cf8], 0
mov eax, dword [0x4b4b78]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x44796a
push eax
call edi
mov dword [0x4b4b78], 0
mov eax, dword [0x4b4bb8]
test eax, eax
je 0x44799a
push eax
mov dword [0x4b4bb0], 0
mov dword [0x4b4bb4], 0
call fcn.00478e8f
add esp, 4
mov dword [0x4b4bb8], 0
movzx eax, word [0x4b4d68]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
push eax
call esi
movzx eax, word [0x4b4d64]
push eax
mov dword [0x4b4d68], 0
call esi
movzx eax, word [0x4b4d60]
push eax
call esi
movzx eax, word [0x4b4d6c]
push eax
call esi
mov eax, dword [0x4b4d00]
mov dword [0x4b4d6c], 0
mov dword [0x4b4d60], 0
mov dword [0x4b4d64], 0
test eax, eax
je 0x447a0c
push eax
call fcn.00478e8f
add esp, 4
mov dword [0x4b4d00], 0
mov eax, dword [0x4b4b5c]
test eax, eax
je 0x447a41
cmp dword [0x4b4d24], 0
je 0x447a2a
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [0x4b4b5c]
test eax, eax
je 0x447a41
push eax
call fcn.00478e8f
add esp, 4
mov dword [0x4b4b5c], 0
mov eax, dword [0x4b4bac]
test eax, eax
je 0x447a5d
push eax
call fcn.00478e8f
add esp, 4
mov dword [0x4b4bac], 0
mov eax, dword [0x4b4d38]
test eax, eax
je 0x447a69
push eax
call edi
mov eax, dword [0x4b4d3c]
test eax, eax
je 0x447a75
push eax
call edi
push dword [0x4b4d20]
call fcn.00478e8f
add esp, 4
mov dword [0x4b4d20], 0
call dword [sym.imp.MMFS2.dll_Ordinal_1037]
call dword [sym.imp.MMFS2.dll_Ordinal_984]
pop edi
pop esi
mov esp, ebp
pop ebp
ret