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

Disassembly:
push 0xffffffffffffffff
push 0x41cd18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 1
call fcn.0041b5bc
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 2
call fcn.0041b5bc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 3
call fcn.0041b5bc
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 4
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0x78]
mov bl, 5
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 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 + 0x78], 6
call edi
add esp, 8
test eax, eax
je 0x410485
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 0x41048a
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4104cf
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 + 0x74], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 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 + 0x54]
mov byte [esp + 0x78], 8
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], bl
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x41073e
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
test eax, eax
jne 0x41052c
mov byte [esp + 0x13], al
mov edx, dword [esp + 0x4c]
push 0x10
lea ecx, [esp + 0x50]
call dword [edx + 0x40]
test eax, eax
je 0x4105b6
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x410732
lea eax, [esp + 0x24]
lea ecx, [esp + 0x4c]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x4247e8
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x80], 0xa
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x7c], bl
call fcn.004103b0
jmp 0x410732
lea eax, [esp + 0x20]
lea ecx, [esp + 0x4c]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x7c]
push 0x4247e8
push ecx
call edi
add esp, 8
test eax, eax
je 0x41063d
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x4c]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x410732
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x410732
push 0x4231c8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jl 0x410732
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
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 + 0x40]
mov byte [esp + 0x74], 0xd
call sub.MFC42.DLL_CString::CString_1
mov ebp, eax
lea edx, [esp + 0x38]
push esi
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 0xe
call sub.MFC42.DLL_CString::Left
push ebp
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x78], 0xf
push eax
call sub.MFC42.DLL_operator_3
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x7c], 0x10
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 0x11
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 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 0x41051b
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x41084b
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41084b
push 0x4231c8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jl 0x41084b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
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 + 0x3c]
mov byte [esp + 0x74], 0x12
call sub.MFC42.DLL_CString::CString_1
mov ebp, eax
lea eax, [esp + 0x3c]
push esi
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0x13
call sub.MFC42.DLL_CString::Left
push ebp
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x7c], 0x14
call sub.MFC42.DLL_operator_3
push edi
lea edx, [esp + 0x84]
push eax
push edx
mov byte [esp + 0x7c], 0x15
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 0x16
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x80]
mov byte [esp + 0x70], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 4
call fcn.0041b74e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 0xc