Function at 0x418550
Capabilities:
Delete directory
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41d9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 1
call fcn.0041b5bc
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 2
call fcn.0041b5bc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 3
call fcn.0041b5bc
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 4
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0x74]
mov bl, 5
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
push 1
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4231cc
push eax
mov byte [esp + 0x74], 6
call edi
add esp, 8
test eax, eax
je 0x418621
lea edx, [esp + 0x20]
push 1
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4231d4
push eax
call edi
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], 1
test al, al
jne 0x418626
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x41866b
lea eax, [esp + 0x14]
push 0x4231cc
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
push 0x4231d0
lea eax, [esp + 0x28]
push edx
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x74], 8
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], bl
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4188d6
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::FindNextFileA
test eax, eax
jne 0x4186c8
mov byte [esp + 0x13], al
mov edx, dword [esp + 0x48]
push 0x10
lea ecx, [esp + 0x4c]
call dword [edx + 0x40]
test eax, eax
je 0x41874e
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4188ca
lea eax, [esp + 0x24]
lea ecx, [esp + 0x48]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x4247e8
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x78], bl
call fcn.00418550
add esp, 0xc
jmp 0x4188ca
lea eax, [esp + 0x20]
lea ecx, [esp + 0x48]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78]
push 0x4247e8
push ecx
call edi
add esp, 8
test eax, eax
je 0x4187d5
lea edx, [esp + 0x28]
lea ecx, [esp + 0x48]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x4188ca
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4188ca
push 0x4231c8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jl 0x4188ca
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
mov eax, dword [eax - 8]
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
mov edi, eax
push 0x4231dc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0xd
call sub.MFC42.DLL_CString::CString_1
mov ebp, eax
lea edx, [esp + 0x34]
push esi
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 0xe
call sub.MFC42.DLL_CString::Left
push ebp
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x74], 0xf
push eax
call sub.MFC42.DLL_operator_3
push edi
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x78], 0x10
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0x11
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov al, byte [esp + 0x13]
test al, al
jne 0x4186b7
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x4189dd
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4189dd
push 0x4231c8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jl 0x4189dd
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
sub eax, esi
push eax
push edx
call sub.MFC42.DLL_CString::Right
mov edi, eax
push 0x4231dc
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 0x12
call sub.MFC42.DLL_CString::CString_1
mov ebp, eax
lea eax, [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 0x13
call sub.MFC42.DLL_CString::Left
push ebp
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x78], 0x14
call sub.MFC42.DLL_operator_3
push edi
lea edx, [esp + 0x80]
push eax
push edx
mov byte [esp + 0x78], 0x15
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 0x16
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x7c]
mov byte [esp + 0x6c], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 4
call fcn.0041b74e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov byte [esp + 0x6c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret