Function at 0x1031369
Capabilities:
Delete file
Get disk information
Set file attributes

Disassembly:
mov eax, 0x10bde21
call fcn.0106f6c0
sub esp, 0x458
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
xor ebx, ebx
mov dword [ebp - 0x30], 0xdd7
mov dword [ebp - 0x2c], ebx
call fcn.01024627
test eax, eax
je 0x1031773
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
push dword [esi]
mov dword [ebp - 4], ebx
call fcn.01031045
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0106e8f8
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
push 0x10045a8
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x1031730
push 0x1005b78
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::FindOneOf
cmp eax, 0xffffffff
jne 0x1031730
push 0x5c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x1031730
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_3
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0106e8f8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::TrimLeft
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::TrimRight
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], ebx
je 0x103171e
mov eax, dword [esi]
cmp dword [eax - 8], 0x1f4
jge 0x103171e
push 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::Left
mov eax, dword [eax]
push 0x1005b74
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
pop ecx
pop ecx
lea ecx, [ebp + 8]
mov edi, eax
call sub.MFC42u.DLL_CString::CString
cmp edi, ebx
je 0x103171e
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1031621
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x103153b
push esi
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_5
push 0x5c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
lea ecx, [ebp + 8]
je 0x1031513
push 0x5c
call sub.MFC42u.DLL_CString::Find_2
inc eax
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.0106e8f8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
jmp 0x103151d
push 0x1004284
call sub.MFC42u.DLL_CString::operator_1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x10316a1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x10316be
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString_3
push dword [esi]
lea eax, [ebp - 0x464]
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x464]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x10
test eax, eax
je 0x10316da
lea eax, [ebp - 0x464]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
push 0x2805
lea ecx, [ebp - 0x20]
mov word [eax], bx
call sub.MFC42u.DLL_CString::LoadStringW
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
call fcn.010207aa
cmp word [eax + 0xb88], 2
je 0x10315ee
push 1
push ebx
push 0x40
push 4
push dword [ebp - 0x10]
push 0x2806
call fcn.0104f8aa
cmp eax, 6
jne 0x10316da
lea eax, [ebp - 0x464]
push eax
call fcn.0103131b
test eax, eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
je 0x10316e1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x10314b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1031655
mov dword [ebp - 0x2c], 1
mov edi, dword [ebp - 0x1c]
cmp edi, 0xffffffff
je 0x1031725
lea eax, [ebp - 0x64]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10316f7
test byte [ebp - 0x64], 0x10
jne 0x10316f7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
push 0x2000
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x2c], ebx
je 0x103169c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
jmp 0x1031700
push dword [ebp + 8]
push 0xa8
call fcn.01077db1
pop ecx
pop ecx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
jmp 0x10316fe
mov eax, dword [esi]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x80000000
push eax
call edi
mov dword [ebp - 0x1c], eax
jmp 0x1031655
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
jmp 0x1031655
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov eax, esi
jmp 0x1031812
mov dword [ebp - 0x30], 0x80f7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::CString_3
push dword [esi]
lea eax, [ebp - 0x24]
push dword [ebp - 0x30]
mov byte [ebp - 4], 8
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
push 1
push ebx
push 0x30
push ebx
push dword [ebp - 0x24]
push 0xfa6
call fcn.0104f8aa
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
jmp 0x1031807
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString_3
push dword [esi]
mov byte [ebp - 4], 0xa
call fcn.01031045
test eax, eax
je 0x10317db
push dword [esi]
call fcn.01031045
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.0106e8f8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CString::CString
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0xa7
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
jmp 0x10317e5
push 0x63
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
push 1
push ebx
push 0x30
push ebx
push dword [ebp - 0x10]
push 0xfa6
call fcn.0104f8aa
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4