Function at 0x1001f030
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10047f67
mov eax, dword fs:[0]
push eax
sub esp, 0xb18
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0xb10], eax
push ebx
push esi
push edi
mov eax, dword [0x10056024]
xor eax, esp
push eax
lea eax, [esp + 0xb28]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov edx, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xdc]
call eax
mov edi, dword [ebp + 8]
cmp edi, eax
jl 0x1001f092
or eax, 0xffffffff
jmp 0x1001f5ad
xor esi, esi
push 0x206
lea ecx, [esp + 0x91a]
push esi
push ecx
mov word [esp + 0x920], si
call sub.MSVCR80.dll_memset
mov edx, dword [ebx]
mov eax, dword [edx + 0x80]
add esp, 0xc
push esi
push esi
push edi
mov ecx, ebx
call eax
mov edx, 0x104
lea ecx, [esp + 0x914]
call fcn.100093b0
push 0x206
lea ecx, [esp + 0x712]
push esi
push ecx
mov word [esp + 0x718], si
call sub.MSVCR80.dll_memset
mov edx, dword [ebx]
mov edx, dword [edx + 0x20]
add esp, 0xc
push edi
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
call edx
lea esi, [esp + 0x914]
call fcn.10009420
xor esi, esi
test eax, eax
jne 0x1001f3c4
cmp dword [ebp + 0xc], esi
je 0x1001f3c4
mov eax, dword [ebx]
mov edx, dword [eax + 0x8c]
push edi
mov ecx, ebx
call edx
test eax, eax
je 0x1001f3c4
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
mov edx, dword [eax + 0xb8]
push ecx
push edi
mov ecx, ebx
call edx
movzx eax, ax
cmp ax, si
je 0x1001f155
movzx eax, ax
jmp 0x1001f5ad
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0xb30], esi
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
xor edi, edi
call edx
test eax, eax
jbe 0x1001f1eb
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x54]
push edx
push edi
call eax
mov edx, 0x104
lea eax, [esp + 0x278]
lea ecx, [esp + 0x70c]
call fcn.100093b0
lea ecx, [esp + 0x70c]
push ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x28]
push edx
lea esi, [esp + 0x1c]
mov byte [esp + 0xb34], 1
call fcn.10027650
lea ecx, [esp + 0x28]
mov byte [esp + 0xb30], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
add edi, 1
call edx
cmp edi, eax
jb 0x1001f178
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x1c]
test esi, esi
mov edi, dword [esp + 0x20]
je 0x1001f287
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x14]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x1001f287
mov edi, dword [esp + 0x10]
cmp dword [edi + esi + 0x18], 8
jb 0x1001f235
mov esi, dword [edi + esi + 4]
jmp 0x1001f239
lea esi, [edi + esi + 4]
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1001f269
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [esp + 0x14], 1
add edi, 0x1c
mov dword [esp + 0x10], edi
jmp 0x1001f1f5
lea ebx, [esp + 0x18]
mov dword [esp + 0xb30], 0xffffffff
call fcn.10027d20
mov eax, 0x11371021
jmp 0x1001f5ad
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
test esi, esi
je 0x1001f2e2
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x1001f2e2
mov eax, dword [esp + 0x14]
cmp dword [eax + esi + 0x18], 8
jb 0x1001f2bf
mov esi, dword [eax + esi + 4]
jmp 0x1001f2c3
lea esi, [eax + esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add dword [esp + 0x10], 1
add dword [esp + 0x14], 0x1c
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
jmp 0x1001f291
mov ecx, dword [ebp + 8]
mov eax, dword [ebx]
mov edx, dword [eax + 0x80]
push 0
push 0
push ecx
mov ecx, ebx
call edx
test eax, eax
lea edi, [esp + 0x70c]
je 0x1001f364
movzx ecx, word [eax]
xor esi, esi
test cx, cx
mov edx, eax
je 0x1001f32b
lea ecx, [ecx]
add edx, 2
add esi, 1
cmp word [edx], 0
jne 0x1001f310
cmp esi, 0x103
jle 0x1001f32b
mov esi, 0x103
jmp 0x1001f340
xor esi, esi
test cx, cx
mov edx, eax
je 0x1001f340
add edx, 2
add esi, 1
cmp word [edx], 0
jne 0x1001f334
xor edx, edx
test cx, cx
je 0x1001f35f
cmp edx, esi
jge 0x1001f35f
add eax, 2
mov word [edi], cx
movzx ecx, word [eax]
add edi, 2
add edx, 1
test cx, cx
jne 0x1001f347
mov word [edi], 0
lea eax, [esp + 0x70c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xb30], 0xffffffff
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp esi, eax
je 0x1001f3b3
mov edi, dword [esp + 0x20]
cmp esi, edi
je 0x1001f3a8
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x1001f395
mov esi, dword [esp + 0x1c]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
xor esi, esi
mov edx, dword [ebx]
mov eax, dword [edx + 0x104]
push edi
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push ebx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.10023600
test eax, eax
jne 0x1001f40d
mov eax, 1
jmp 0x1001f5ad
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x10]
cmp edx, edx
jne 0x1001f44a
mov eax, dword [ecx + 0x28]
cmp eax, esi
je 0x1001f427
mov edi, dword [ecx + 0x24]
mov dword [eax + 0x24], edi
jmp 0x1001f42d
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x24]
cmp eax, esi
je 0x1001f43c
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
jmp 0x1001f442
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x18], eax
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edi, dword [ebx + 0x24]
mov eax, dword [edi + 0x20]
add eax, 8
call fcn.10039d90
xor esi, esi
push 0x7e
lea ecx, [esp + 0x48a]
push esi
push ecx
mov word [esp + 0x490], si
call sub.MSVCR80.dll_memset
movzx edx, byte [esp + 0x5f]
movzx eax, byte [esp + 0x5e]
add esp, 0xc
push edx
push eax
mov eax, dword [esp + 0x58]
movzx ecx, ah
push ecx
movzx ecx, byte [esp + 0x5a]
movzx edx, al
movzx eax, byte [esp + 0x5b]
push edx
push eax
mov eax, dword [esp + 0x60]
push ecx
movzx ecx, word [esp + 0x62]
movzx edx, ah
push edx
movzx edx, word [esp + 0x64]
movzx eax, al
push eax
mov eax, dword [esp + 0x64]
push ecx
push edx
push eax
lea ecx, [esp + 0x4b0]
push 0x1004b2f0
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
push 0x206
lea edx, [esp + 0x50a]
push esi
push edx
mov word [esp + 0x510], si
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add esp, 0xc
lea eax, [esp + 0x504]
push eax
push esi
push esi
push 0x23
push esi
call edi
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x1004cf7c
lea ecx, [esp + 0x508]
push 0x104
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x484]
push edx
lea eax, [esp + 0x508]
push 0x104
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x504]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x504]
push edx
push 0
push 0
push 0x23
push 0
call edi
push str.AomeiBR
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x508]
push eax
call edi
lea ecx, [esp + 0x484]
push ecx
lea edx, [esp + 0x508]
push edx
call edi
push str..meta
lea eax, [esp + 0x508]
push 0x104
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x504]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
xor eax, eax
mov ecx, dword [esp + 0xb28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb10]
xor ecx, esp
call fcn.10045f6c
mov esp, ebp
pop ebp
ret 0xc