Function at 0x100c3070
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100f0872
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x1012007c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x1012007c]
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.10030ff0
mov edi, eax
xor ebx, ebx
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x100c335e
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 [0x100f4984]
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x29c], esi
call fcn.100bb0f0
push edi
lea ecx, [esp + 0x58]
xor edx, edx
mov byte [esp + 0x29c], 1
call fcn.100310a0
add esp, 4
test eax, eax
jne 0x100c331e
mov eax, dword [esp + 0x280]
cmp dword [esp + 0x20], eax
jge 0x100c3177
test ebx, ebx
je 0x100c3161
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 0x100c32ac
mov edi, dword [edi + 4]
push eax
push ebx
push esi
call fcn.10030d20
mov dword [0x10123714], eax
test eax, eax
jne 0x100c32b6
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.100c3390
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 0x100c327d
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.100b4510
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.100c0470
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.100e74a6
mov edx, dword [esp + 0x14]
inc esi
push edx
lea ecx, [esp + 0x58]
mov edx, esi
mov dword [esp + 0x20], esi
call fcn.100310a0
mov edi, dword [esp + 0x18]
jmp 0x100c3135
mov dword [0x10123714], 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 0x100c32d6
cmp esi, dword [esp + 0x38]
je 0x100c32dc
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, edi
je 0x100c331a
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x100c3312
call edi
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x100c32f5
call edi
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
jne 0x100c3316
call edi
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x100c330e
call edi
mov ebx, dword [ebx]
jmp 0x100c32c8
mov eax, dword [esi]
jmp 0x100c32ee
mov eax, dword [esi]
jmp 0x100c3307
mov edi, dword [esp + 0x14]
call fcn.100313d0
lea edi, [esp + 0x38]
call fcn.100b49d0
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 0x100c3360
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.100e7da2
mov esp, ebp
pop ebp
ret 8