Function at 0x404a20
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4164f7
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4262b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::GetFullPath_class_AString__const]
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_char_const____thiscall_AString::operator_char_const__void_const]
push eax
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc140.dll_Ordinal_8146]
test al, al
jne 0x404c2e
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea eax, [ebp - 0x114]
push str._s_fle
push eax
call fcn.00407e20
add esp, 0xc
lea ecx, [ebp - 0x140]
call sub.mfc140.dll_Ordinal_503
push 0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x140]
call sub.mfc140.dll_Ordinal_4705
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
test eax, eax
je 0x404b5e
nop
lea ecx, [ebp - 0x140]
call sub.mfc140.dll_Ordinal_4725
mov edi, eax
lea ecx, [ebp - 0x140]
lea eax, [ebp - 0x118]
push eax
call sub.mfc140.dll_Ordinal_5565
mov edx, dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
push 0x10
mov byte [ebp - 4], 3
call dword [edx + 0x40]
test eax, eax
jne 0x404b4a
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call esi
add esp, 4
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140.dll_Ordinal_1044]
test edi, edi
jne 0x404b00
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea eax, [ebp - 0x114]
push str._s_fs
push eax
call fcn.00407e20
add esp, 0xc
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x140]
push 0
push eax
call sub.mfc140.dll_Ordinal_4705
test eax, eax
je 0x404c1f
mov ebx, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__rmdir]
lea ecx, [ebp - 0x140]
call sub.mfc140.dll_Ordinal_4725
mov edi, eax
lea ecx, [ebp - 0x140]
lea eax, [ebp - 0x118]
push eax
call sub.mfc140.dll_Ordinal_5565
mov edx, dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
push 0x10
mov byte [ebp - 4], 4
call dword [edx + 0x40]
lea ecx, [ebp - 0x118]
test eax, eax
jne 0x404bea
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call esi
jmp 0x404c08
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call fcn.00407500
add esp, 4
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call ebx
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
test edi, edi
jne 0x404ba1
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call sub.mfc140.dll_Ordinal_1142
lea ecx, [ebp - 0x11c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 5
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::GetRuntimeDataFolder_void_]
mov esi, dword [reloc.FSUTIL.dll___YAFilePath__QAEAAV0_PBD_Z]
lea ecx, [ebp - 0x11c]
push str.Temp
call esi
push str.FlexiScratch
lea ecx, [ebp - 0x11c]
call esi
lea ecx, [ebp - 0x11c]
call dword [sym.imp.FSUTIL.dll_public:_char_const____thiscall_AFilePath::operator_char_const__void_]
push eax
call fcn.00407500
add esp, 4
lea ecx, [ebp - 0x11c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413da6
mov esp, ebp
pop ebp
ret