Function at 0x10047510
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 0x101125f7
mov eax, dword fs:[0]
push eax
sub esp, 0xb18
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0xb10], eax
push ebx
push esi
push edi
mov eax, dword [0x1013b024]
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 0x10047576
or eax, 0xffffffff
jmp 0x10047baf
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.10004030
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.10028fc0
xor esi, esi
test eax, eax
jne 0x10047963
cmp dword [ebp + 0xc], esi
je 0x10047963
mov eax, dword [edi]
mov edx, dword [eax + 0xb0]
push ebx
mov ecx, edi
call edx
test eax, eax
je 0x10047963
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 0x1004763b
movzx eax, ax
jmp 0x10047baf
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 0x100476d3
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.10004030
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.10003370
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 0x10047660
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 0x10047768
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 0x10047768
mov ebx, dword [esp + 0x10]
cmp dword [esi + ebx + 0x18], 8
jb 0x10047718
mov esi, dword [esi + ebx + 4]
jmp 0x1004771c
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 0x1004774a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
add ebx, 0x1c
mov dword [esp + 0x10], ebx
jmp 0x100476e0
lea ebx, [esp + 0x18]
mov dword [esp + 0xb30], 0xffffffff
call fcn.100035d0
mov eax, 0x1e0d1021
jmp 0x10047baf
xor ecx, ecx
mov dword [esp + 0x10], ecx
xor edi, edi
test esi, esi
je 0x10047863
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 0x10047863
cmp dword [esi + edi + 0x18], 8
jb 0x100477a2
mov esi, dword [esi + edi + 4]
jmp 0x100477a6
lea esi, [esi + edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10047801
mov esi, dword [esp + 0x1c]
and ebx, 0xfffffffe
test esi, esi
je 0x100477de
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 0x100477e8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
cmp dword [esi + edi + 0x18], 8
jb 0x100477f5
mov esi, dword [esi + edi + 4]
jmp 0x100477f9
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 0x10047828
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 0x10047832
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
cmp dword [esi + edi + 0x18], 8
jb 0x1004783f
mov esi, dword [esi + edi + 4]
jmp 0x10047843
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 0x10047770
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 0x100478ef
movzx ecx, word [eax]
xor esi, esi
cmp cx, bx
mov edx, eax
je 0x100478ae
add edx, 2
add esi, 1
cmp word [edx], bx
jne 0x10047894
cmp esi, 0x103
jle 0x100478ae
mov esi, 0x103
jmp 0x100478c2
xor esi, esi
cmp cx, bx
mov edx, eax
je 0x100478c2
add edx, 2
add esi, 1
cmp word [edx], bx
jne 0x100478b7
xor edx, edx
cmp cx, bx
je 0x100478e8
lea esp, [esp]
cmp edx, esi
jge 0x100478e8
add eax, 2
mov word [edi], cx
movzx ecx, word [eax]
add edi, 2
add edx, 1
cmp cx, bx
jne 0x100478d0
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 0x10047917
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 0x1004794e
mov edi, dword [esp + 0x20]
cmp esi, edi
je 0x10047945
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 0x10047932
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.1004c720
test eax, eax
jne 0x100479ac
mov eax, 1
jmp 0x10047baf
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x10]
cmp edx, edx
jne 0x100479e9
mov eax, dword [ecx + 0x28]
cmp eax, esi
je 0x100479c6
mov ebx, dword [ecx + 0x24]
mov dword [eax + 0x24], ebx
jmp 0x100479cc
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x24]
cmp eax, esi
je 0x100479db
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
jmp 0x100479e1
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, 0x1012537c
call fcn.1007d240
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10047a53
cmp byte [esi + 0x44], 0
je 0x10047a33
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 0x1011e168
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 0x10122a78
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.1010dc50
mov esp, ebp
pop ebp
ret 0xc