Function at 0x401049
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43cb6f
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x44d104]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x44d104]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x28], ebx
call fcn.00401ad5
lea eax, [esp + 0x30]
push 0x4415ec
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2b0], ebx
call fcn.00401635
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.00401a94
cmp dword [esp + 0x1c], 0xffffffff
jne 0x4010eb
mov dword [esp + 0x20], 1
jmp 0x40135e
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x44], 0x10
je 0x40119d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x4415f0
lea eax, [esp + 0x74]
push eax
call edi
test eax, eax
je 0x401335
push 0x4415f4
lea eax, [esp + 0x74]
push eax
call edi
test eax, eax
je 0x401335
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401635
lea ecx, [esp + 0x30]
push 0x4415e8
push ecx
mov ecx, eax
mov byte [esp + 0x2b8], 1
call fcn.00401635
push dword [ebp + 0x10]
mov byte [esp + 0x2bc], 2
mov eax, dword [eax]
push dword [ebp + 0xc]
push eax
call fcn.00401049
mov edi, eax
mov eax, dword [esp + 0x44]
add esp, 0x1c
add eax, 0xfffffff0
call fcn.00401a94
mov byte [esp + 0x2a8], bl
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.00401a94
cmp edi, ebx
je 0x401354
jmp 0x401335
cmp dword [ebp + 0xc], ebx
je 0x401216
lea eax, [esp + 0x70]
push eax
call fcn.004274a8
cmp eax, 4
pop ecx
jle 0x401216
lea eax, [esp + eax*2 + 0x68]
push str..sys
push eax
call fcn.00427821
test eax, eax
pop ecx
pop ecx
jne 0x401216
lea edi, [esp + 0x24]
call fcn.004013e7
lea eax, [esp + 0x70]
push eax
mov eax, edi
push eax
mov byte [esp + 0x2b0], 3
call fcn.0040153c
mov edi, dword [esp + 0x24]
push ebx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x401207
cmp dword [ebp + 0x10], ebx
je 0x401207
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [edi - 0x10]
mov byte [esp + 0x2a8], bl
call fcn.00401a94
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401635
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call esi
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.00401a94
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401635
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.00401a94
cmp edi, ebx
jne 0x401335
mov eax, dword [0x44fc0c]
mov ecx, 0x44fc0c
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x2a8], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push str._s_s_d__x
call fcn.0040186a
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401635
mov eax, dword [eax]
push dword [esp + 0x30]
push eax
call fcn.00427309
mov edi, eax
mov eax, dword [esp + 0x54]
add esp, 0x20
add eax, 0xfffffff0
call fcn.00401a94
cmp edi, ebx
jne 0x4012f0
push 4
push ebx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x401322
cmp dword [ebp + 0x10], ebx
je 0x401322
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401635
mov eax, dword [eax]
pop ecx
pop ecx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.00401a94
mov byte [esp + 0x2a8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401a94
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4010f1
mov dword [esp + 0x20], 1
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401a94
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.004279c4
mov esp, ebp
pop ebp
ret