Function at 0x10047b50
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1013eec7
mov eax, dword fs:[0]
push eax
sub esp, 0xb18
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0xb10], eax
push ebx
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0xb28]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
mov edx, dword [edi]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x104]
mov dword [esp + 0x14], edi
call eax
mov ebx, dword [ebp + 8]
cmp ebx, eax
jl 0x10047bb6
or eax, 0xffffffff
jmp 0x100481ef
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 [edi]
mov eax, dword [edx + 0xa4]
add esp, 0xc
push esi
push esi
push ebx
mov ecx, edi
call eax
mov ecx, eax
mov eax, 0x104
lea edx, [esp + 0x914]
call fcn.100040e0
push 0x206
lea ecx, [esp + 0x712]
push esi
push ecx
mov word [esp + 0x718], si
call sub.MSVCR80.dll_memset
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
add esp, 0xc
push ebx
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call edx
lea esi, [esp + 0x914]
call fcn.10029840
xor esi, esi
test eax, eax
jne 0x10047fa3
cmp dword [ebp + 0xc], esi
je 0x10047fa3
mov eax, dword [edi]
mov edx, dword [eax + 0xb0]
push ebx
mov ecx, edi
call edx
test eax, eax
je 0x10047fa3
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
mov edx, dword [eax + 0xdc]
push ecx
push ebx
mov ecx, edi
call edx
movzx eax, ax
cmp ax, si
je 0x10047c7b
movzx eax, ax
jmp 0x100481ef
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0xb30], esi
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
xor ebx, ebx
call edx
test eax, eax
jbe 0x10047d13
mov edi, edi
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x54]
push edx
push ebx
call eax
mov eax, 0x104
lea ecx, [esp + 0x278]
lea edx, [esp + 0x70c]
call fcn.100040e0
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.10003480
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 [edi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
add ebx, 1
call edx
cmp ebx, eax
jb 0x10047ca0
xor edi, edi
mov dword [esp + 0x10], edi
lea esp, [esp]
mov esi, dword [esp + 0x1c]
test esi, esi
mov ebx, dword [esp + 0x20]
je 0x10047da8
mov ecx, ebx
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x10047da8
mov ebx, dword [esp + 0x10]
cmp dword [esi + ebx + 0x18], 8
jb 0x10047d58
mov esi, dword [esi + ebx + 4]
jmp 0x10047d5c
lea esi, [esi + ebx + 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 0x10047d8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
add ebx, 0x1c
mov dword [esp + 0x10], ebx
jmp 0x10047d20
lea ebx, [esp + 0x18]
mov dword [esp + 0xb30], 0xffffffff
call fcn.100036b0
mov eax, 0x1dba1021
jmp 0x100481ef
xor ecx, ecx
mov dword [esp + 0x10], ecx
xor edi, edi
test esi, esi
je 0x10047ea3
sub ebx, esi
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x10047ea3
cmp dword [esi + edi + 0x18], 8
jb 0x10047de2
mov esi, dword [esi + edi + 4]
jmp 0x10047de6
lea esi, [esi + edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10047e41
mov esi, dword [esp + 0x1c]
and ebx, 0xfffffffe
test esi, esi
je 0x10047e1e
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x10047e28
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
cmp dword [esi + edi + 0x18], 8
jb 0x10047e35
mov esi, dword [esi + edi + 4]
jmp 0x10047e39
lea esi, [esi + edi + 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10047e68
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x10047e72
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
cmp dword [esi + edi + 0x18], 8
jb 0x10047e7f
mov esi, dword [esi + edi + 4]
jmp 0x10047e83
lea esi, [esi + edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add dword [esp + 0x10], 1
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add edi, 0x1c
jmp 0x10047db0
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 0xa4]
push 0
push 0
push ecx
mov ecx, esi
call edx
xor ebx, ebx
cmp eax, ebx
lea edi, [esp + 0x70c]
je 0x10047f2f
movzx ecx, word [eax]
xor esi, esi
cmp cx, bx
mov edx, eax
je 0x10047eee
add edx, 2
add esi, 1
cmp word [edx], bx
jne 0x10047ed4
cmp esi, 0x103
jle 0x10047eee
mov esi, 0x103
jmp 0x10047f02
xor esi, esi
cmp cx, bx
mov edx, eax
je 0x10047f02
add edx, 2
add esi, 1
cmp word [edx], bx
jne 0x10047ef7
xor edx, edx
cmp cx, bx
je 0x10047f28
lea esp, [esp]
cmp edx, esi
jge 0x10047f28
add eax, 2
mov word [edi], cx
movzx ecx, word [eax]
add edi, 2
add edx, 1
cmp cx, bx
jne 0x10047f10
mov esi, dword [esp + 0x14]
mov word [edi], bx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 0x278]
push ecx
mov ecx, esi
call edx
test eax, eax
je 0x10047f57
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]
cmp esi, ebx
je 0x10047f8e
mov edi, dword [esp + 0x20]
cmp esi, edi
je 0x10047f85
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 0x10047f72
mov esi, dword [esp + 0x1c]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [ebp + 8]
xor esi, esi
mov edx, dword [edi]
mov eax, dword [edx + 0x154]
push ebx
mov ecx, edi
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 edi
lea edx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.1004cd90
test eax, eax
jne 0x10047fec
mov eax, 1
jmp 0x100481ef
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x10]
cmp edx, edx
jne 0x10048029
mov eax, dword [ecx + 0x28]
cmp eax, esi
je 0x10048006
mov ebx, dword [ecx + 0x24]
mov dword [eax + 0x24], ebx
jmp 0x1004800c
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x24]
cmp eax, esi
je 0x1004801b
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
jmp 0x10048021
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x18], eax
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov esi, dword [edi + 0x34]
mov eax, dword [esi + 0x20]
add eax, 8
push eax
mov ebx, 0x101536b4
call fcn.1007d100
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10048093
cmp byte [esi + 0x44], 0
je 0x10048073
push ebx
push 0xef
call dword [sym.imp.MSVCR80.dll_fputc]
push ebx
push 0xbb
call dword [sym.imp.MSVCR80.dll_fputc]
push ebx
push 0xbf
call dword [sym.imp.MSVCR80.dll_fputc]
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 0
push ebx
mov ecx, esi
call eax
push ebx
call dword [sym.imp.MSVCR80.dll_ferror]
add esp, 4
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push 0x7e
lea ecx, [esp + 0x48a]
push 0
push ecx
mov word [esp + 0x490], 0
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 0x1014c4a8
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
push 0x206
lea edx, [esp + 0x50a]
push 0
push edx
mov word [esp + 0x510], 0
call sub.MSVCR80.dll_memset
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add esp, 0xc
lea eax, [esp + 0x504]
push eax
push 0
push 0
push 0x23
push 0
call ebx
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x10150e6c
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 ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.AomeiBR
lea eax, [esp + 0x508]
push eax
call ebx
lea ecx, [esp + 0x484]
push ecx
lea edx, [esp + 0x508]
push edx
call ebx
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 [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
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.1012d370
mov esp, ebp
pop ebp
ret 0xc