Function at 0x100a4fb0
Capabilities:
Check if file exists
Create process on windows
Delete file
Move file
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c2b18
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100ef07c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100a5020
cmp eax, 2
je 0x100a5020
cmp eax, 1
jne 0x100a521c
push eax
mov eax, dword [ebp + 0x14]
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a521c
lea ebx, [ebp + 0x10]
lea ecx, [esp + 0x18]
push ebx
push ecx
mov edi, str..old
call fcn.10008380
mov eax, dword [eax]
mov ecx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
add esp, 8
push eax
push ecx
call esi
lea ecx, [esp + 0x18]
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 [ebx]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
call esi
test eax, eax
je 0x100a51f7
cmp dword [ebp + 0xc], 2
jne 0x100a51b0
xor eax, eax
push 4
push eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
lea eax, [esp + 0x20]
xor edx, edx
lea esi, [ebp + 0x34]
push eax
mov ecx, esi
mov word [esp + 0x30], dx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid_1]
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCR90.dll_wcstol]
push 0xa
push 0
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
mov word [esp + 0x24], ax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 2
push 5
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid_1]
mov eax, dword [eax]
push 0xa
push 0
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
mov word [esp + 0x26], ax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 2
push 8
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid_1]
mov eax, dword [eax]
push 0xa
push 0
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
mov word [esp + 0x2a], ax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 2
push 0xb
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid_1]
mov eax, dword [eax]
push 0xa
push 0
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
mov word [esp + 0x2c], ax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CFile::CFile
push 0
mov dword [esp + 0x54], 0
mov eax, dword [ebx]
push 2
push eax
lea ecx, [esp + 0x40]
call sub.mfc90u.dll_CFile::Open
test eax, eax
je 0x100a519f
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CFile::Close
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], 0xffffffff
call fcn.100c036a
lea edx, [esp + 0x18]
push ebx
push edx
mov edi, str..old
call fcn.10008380
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
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 ecx, dword [ebp + 0x14]
push ecx
call esi
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x1c]
push ebx
push edx
mov edi, str..old
call fcn.10008380
mov ecx, dword [ebx]
mov edx, dword [eax]
add esp, 8
push ecx
push edx
call esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret