Function at 0x100a6e40
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c7542
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x100ef07c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x100ef07c]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
mov dword [esp + 0x28], edx
mov dword [ecx + 0x38], 3
mov esi, 0xfffffffd
call fcn.10027470
mov edi, eax
xor ebx, ebx
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x100a712e
push 0x22c
lea eax, [esp + 0x5c]
push ebx
push eax
mov dword [esp + 0x60], ebx
call sub.MSVCR90.dll_memset
xor eax, eax
xor esi, esi
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
call dword [0x100ca800]
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x29c], esi
call fcn.100a3f90
push edi
lea ecx, [esp + 0x58]
xor edx, edx
mov byte [esp + 0x29c], 1
call fcn.100274e0
add esp, 4
test eax, eax
jne 0x100a70ee
mov eax, dword [esp + 0x280]
cmp dword [esp + 0x20], eax
jge 0x100a6f47
test ebx, ebx
je 0x100a6f31
push ebx
call sub.mfc90u.dll_delete__
mov eax, dword [esp + 0x284]
add esp, 4
push eax
mov dword [esp + 0x24], eax
call sub.mfc90u.dll_new__
mov ebx, eax
mov eax, dword [esp + 0x284]
add esp, 4
cmp dword [edi], 1
jne 0x100a707c
mov edi, dword [edi + 4]
push eax
push ebx
push esi
call fcn.10027390
mov dword [0x100f2564], eax
test eax, eax
jne 0x100a7086
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x58]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call fcn.100a7160
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CFile::CFile
push 0
mov byte [esp + 0x29c], 2
mov eax, dword [esp + 0x14]
push 0x9002
push eax
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CFile::Open
test eax, eax
je 0x100a704d
mov ecx, dword [esp + 0x280]
push ecx
push ebx
lea ecx, [esp + 0x30]
call sub.mfc90u.dll_CFile::Write
mov eax, dword [esp + 0x280]
cdq
push edx
push eax
lea ecx, [esp + 0x30]
call sub.mfc90u.dll_CFile::SetLength
lea edx, [esp + 0x274]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x274]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CFile::Close
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call fcn.1009bbe0
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.100a4430
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
mov byte [esp + 0x298], 1
call fcn.100c036a
mov edx, dword [esp + 0x14]
inc esi
push edx
lea ecx, [esp + 0x58]
mov edx, esi
mov dword [esp + 0x20], esi
call fcn.100274e0
mov edi, dword [esp + 0x18]
jmp 0x100a6f05
mov dword [0x100f2564], 0x80000
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x18], 0xfffffffc
mov edi, dword [esp + 0x4c]
test esi, esi
je 0x100a70a6
cmp esi, dword [esp + 0x38]
je 0x100a70ac
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, edi
je 0x100a70ea
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x100a70e2
call edi
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x100a70c5
call edi
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
jne 0x100a70e6
call edi
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x100a70de
call edi
mov ebx, dword [ebx]
jmp 0x100a7098
mov eax, dword [esi]
jmp 0x100a70be
mov eax, dword [esi]
jmp 0x100a70d7
mov edi, dword [esp + 0x14]
call fcn.10027630
lea edi, [esp + 0x38]
call fcn.100a4790
mov edx, dword [esp + 0x4c]
push edx
call sub.mfc90u.dll_delete_1
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
mov dword [esp + 0x50], 0
call sub.mfc90u.dll_delete_1
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x18]
jmp 0x100a7130
mov eax, esi
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.100c09bd
mov esp, ebp
pop ebp
ret 8