Function at 0x4827a0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b55e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4d5104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x4d8390]
test esi, esi
je 0x4827e5
mov ecx, dword [0x4d5104]
xor esi, dword [0x4d5104]
and ecx, 0x1f
ror esi, cl
jmp 0x48282b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x482806
push str.SetFileInformationByHandle
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x48280b
mov esi, 0x4821a0
mov eax, dword [0x4d5104]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
mov eax, esi
ror eax, cl
mov ecx, 0x4d8390
xor eax, dword [0x4d5104]
xchg dword [ecx], eax
cmp esi, 0x4821a0
jne 0x4828a5
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x48285e
mov byte [ebp - 0x20], 1
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x10b
jne 0x48287a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x482841
call esi
mov byte [ebp - 0x18], 0
call esi
mov edx, 1
lea ecx, [eax - 2]
cmp edx, ecx
sbb edx, edx
and edx, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0x2200000
push 3
push 0
push 7
push 0x10000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x4828ff
call ebx
mov edx, eax
test edx, edx
je 0x4828ff
mov byte [ebp - 0x20], 0
cmp edx, 2
jb 0x4828e8
cmp edx, 3
ja 0x4828e8
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 3
push eax
push 0x15
push edi
call esi
test eax, eax
je 0x482934
xor esi, esi
mov byte [ebp - 0x18], 1
cmp edi, 0xffffffff
je 0x48292f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4829b0
mov eax, dword [ebp - 0x18]
jmp 0x48299a
call ebx
mov dword [ebp + 8], eax
cmp eax, 0x57
je 0x48296c
mov byte [ebp - 0x18], 0
cmp edi, 0xffffffff
je 0x482952
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4829b5
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 1
push eax
push 4
push edi
call esi
test eax, eax
je 0x482987
mov byte [ebp - 0x28], 1
xor esi, esi
jmp 0x48298f
mov byte [ebp - 0x28], 0
call ebx
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.00482180
mov eax, dword [ebp - 0x28]
mov edx, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call sub.msvcrt.dll_void___cdecl_terminate_void_
call sub.msvcrt.dll_void___cdecl_terminate_void_
int3