Function at 0x409bc0
Capabilities:
Delete file
Get disk information
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41d77b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a4
push ebx
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0x24]
push edi
mov ebx, dword [ebp + 0x98]
xor esi, esi
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
mov dword [ebp + 0x734], ecx
mov eax, dword [ebp + 0x618]
cmp eax, esi
je 0x409c32
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [ebp + 0x310], esi
je 0x409c4a
mov eax, dword [ebp + 0x314]
push esi
push eax
call fcn.0040a250
add esp, 8
mov eax, dword [ebp + 0x304]
push 1
push eax
call fcn.0040a250
mov eax, dword [ebp + 0x2fc]
add esp, 8
cmp eax, esi
je 0x409cfd
mov ecx, 0x8f
xor eax, eax
lea edi, [esp + 0x274]
mov edx, dword [ebp + 0x2ec]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push 0x939f
push eax
mov word [esp + 0x27e], 0x20
mov dword [esp + 0x49c], 0x400
mov dword [esp + 0x280], edx
call fcn.00410710
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
add esp, 8
lea edx, [esp + 0x280]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.004193cc
lea ecx, [esp + 0x274]
push ecx
call dword [sym.imp.AVPBASE.dll_AVP_ProcessObject]
mov eax, dword [0x425128]
add esp, 4
test eax, eax
jne 0x40a1f3
mov eax, dword [ebp + 0x2f0]
test eax, eax
je 0x409dff
xor edi, edi
mov dword [esp + 0x10], 0
test ebx, ebx
jle 0x409de3
mov edx, dword [ebp + 0x94]
lea ecx, [esp + 0x14]
lea eax, [edx + edi*4]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
push 1
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c4], 0
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x425880
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
call fcn.004193cc
test bl, bl
je 0x409dc2
lea edx, [esp + 0x14]
push 0x4256d0
lea eax, [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.004193cc
cmp esi, 3
je 0x409da0
cmp esi, 6
jne 0x409dc2
mov eax, dword [0x425128]
mov dword [esp + 0x10], 1
test eax, eax
jne 0x409f8b
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, ebp
call fcn.00409840
lea ecx, [esp + 0x14]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.004193cc
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jl 0x409d1d
mov eax, dword [0x425128]
test eax, eax
jne 0x40a1f3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409dff
mov ecx, ebp
call fcn.00409a00
mov eax, dword [ebp + 0x98]
xor edi, edi
test eax, eax
mov dword [esp + 0x1c], edi
jle 0x40a1f3
mov edx, dword [ebp + 0x94]
lea ecx, [esp + 0x10]
lea eax, [edx + edi*4]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x4bc], 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40a0ae
lea edx, [esp + 0x10]
push 0x4256d0
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x4bc], 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
mov eax, dword [ebp + 0x2f0]
test eax, eax
je 0x409ece
lea edx, [esp + 0x20]
push 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x425880
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
sete bl
call fcn.004193cc
test bl, bl
je 0x409ece
cmp esi, 3
je 0x409ece
cmp esi, 6
je 0x409ece
mov eax, dword [0x425128]
test eax, eax
jne 0x40a1ce
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, ebp
call fcn.00409840
mov eax, dword [0x425128]
test eax, eax
jne 0x40a1ce
mov eax, dword [ebp + 0x2f4]
test eax, eax
je 0x409f02
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0040a340
mov dword [esp + 0x24], eax
mov eax, dword [0x425128]
test eax, eax
jne 0x40a1ce
mov eax, dword [esp + 0x2c]
mov ebx, 1
cmp eax, ebx
jne 0x40a098
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], 3
jne 0x40a098
movsx edx, byte [eax]
push edx
call dword [sym.imp.MSVCRT.dll_isalpha]
add esp, 4
test eax, eax
je 0x40a098
mov eax, dword [esp + 0x14]
cmp byte [eax + 1], 0x3a
jne 0x40a098
cmp esi, 2
je 0x409f52
cmp esi, 5
jne 0x40a098
mov eax, dword [ebp + 0x150]
test eax, eax
je 0x40a098
cmp esi, 5
jne 0x409f9f
lea ecx, [esp + 0x28]
push 0x9347
push ecx
call fcn.00410710
mov ecx, dword [esp + 0x20]
add esp, 8
or ecx, ebx
mov dword [esp + 0x18], ecx
mov byte [esp + 0x4bc], 3
jmp 0x409fc7
mov dword [esp + 0x4bc], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x40a1ee
lea edx, [esp + 0x30]
push 0x9348
push edx
call fcn.00410710
mov ecx, dword [esp + 0x20]
add esp, 8
or ecx, 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4bc], 4
mov ecx, dword [ebp + 0x74]
mov eax, dword [eax]
push 0x44
push ecx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 6
mov al, byte [esp + 0x18]
sete bl
test al, 2
mov dword [esp + 0x4bc], 3
je 0x40a003
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
and al, 0xfd
mov dword [esp + 0x18], eax
call fcn.004193cc
mov al, byte [esp + 0x18]
mov dword [esp + 0x4bc], 2
test al, 1
je 0x40a029
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
and al, 0xfe
mov dword [esp + 0x18], eax
call fcn.004193cc
test bl, bl
je 0x40a098
mov eax, dword [ebp + 0x2f0]
dec edi
test eax, eax
je 0x40a06f
push 0x429c98
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x42a038]
mov ecx, dword [0x42a03c]
add edx, 0x200
push 0x429c98
adc ecx, 0
mov dword [0x42a038], edx
mov dword [0x42a03c], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x2f4]
test eax, eax
je 0x40a098
mov eax, dword [ebp + 0x380]
mov ecx, dword [esp + 0x10]
push 0
push 0
sub eax, 2
push 0
push eax
push ecx
push 0x4061b0
call sub.MFC42.DLL_AfxBeginThread
lea ecx, [esp + 0x14]
mov byte [esp + 0x4bc], 1
call fcn.004193cc
jmp 0x40a1a5
mov ecx, 0x8f
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x2f8]
mov word [esp + 0x36], 0
test eax, eax
mov dword [esp + 0x38], 2
je 0x40a0dd
mov dword [esp + 0x38], 0x10002
mov eax, dword [ebp + 0x300]
test eax, eax
je 0x40a0ef
or dword [esp + 0x38], 0x20000
mov eax, dword [ebp + 0x30c]
test eax, eax
je 0x40a101
or dword [esp + 0x38], 0x400000
mov eax, dword [ebp + 0x308]
test eax, eax
je 0x40a113
or dword [esp + 0x38], 0x800000
mov eax, dword [ebp + 0x384]
test eax, eax
je 0x40a125
or dword [esp + 0x38], 0x100000
mov eax, dword [ebp + 0x38c]
test eax, eax
je 0x40a137
or dword [esp + 0x38], 0x40000
mov eax, dword [ebp + 0x398]
test eax, eax
je 0x40a149
or dword [esp + 0x38], 0x80000
mov eax, dword [ebp + 0x310]
test eax, eax
je 0x40a15d
mov eax, dword [esp + 0x38]
or al, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [0x42a028]
test eax, eax
je 0x40a16e
or dword [esp + 0x38], 0x4000000
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.AVPBASE.dll_AVP_ProcessObject]
mov edi, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.004193cc
mov eax, dword [ebp + 0x98]
inc edi
cmp edi, eax
mov dword [esp + 0x1c], edi
jl 0x409e13
jmp 0x40a1f3
lea ecx, [esp + 0x14]
mov byte [esp + 0x4bc], 1
call fcn.004193cc
mov dword [esp + 0x4bc], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004193cc
mov eax, dword [ebp + 0x88]
xor esi, esi
cmp eax, esi
je 0x40a21a
cmp dword [0x425128], esi
jne 0x40a21a
mov edx, dword [ebp + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp + 0x88], esi
push 0xffffffffffffffff
push esi
lea ecx, [ebp + 0x90]
mov dword [ebp + 0x7c], esi
call sub.MFC42.DLL_CStringArray::SetSize
mov ecx, dword [esp + 0x4b4]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4b0
ret