Function at 0x10039c40
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100428f5
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push esi
push edi
lea edi, [ebp - 0x7c]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1004e038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, 0x10058869
call fcn.10016c3f
lea ecx, [ebp - 0x14]
call fcn.10016320
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
push str._scstrike_valve.rc
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x10039ce0
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp + 8]
push eax
push str._scstrikejoystick.CFG
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x10039d29
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp + 8]
push eax
push str._scstrikeuserconfig.cfg
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xe0], esp
lea eax, [ebp - 0x14]
push eax
call fcn.100160f5
call fcn.10016c44
add esp, 4
mov byte [ebp - 0x139], al
movzx ecx, byte [ebp - 0x139]
test ecx, ecx
je 0x10039d81
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp + 8]
push eax
push str._scstrike_autoexec.cfg
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x10039dd1
push 0x80
push ecx
mov ecx, esp
mov dword [ebp - 0xec], esp
lea eax, [ebp - 0x14]
push eax
call fcn.100160f5
call fcn.1001690b
add esp, 8
mov eax, dword [ebp + 8]
push eax
push str._scstrikedefault.cfg
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x10039e1a
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp + 8]
push eax
push str._scstrikelanguage.cfg
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x10039e63
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp + 8]
push eax
push str._scstrike_violence.cfg
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x10039eac
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp + 8]
push eax
push str._scstrike_server.cfg
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xf8], esp
lea eax, [ebp - 0x14]
push eax
call fcn.100160f5
call fcn.10016c44
add esp, 4
mov byte [ebp - 0x139], al
movzx ecx, byte [ebp - 0x139]
test ecx, ecx
je 0x10039f08
push 0x7a
push ecx
mov ecx, esp
mov dword [ebp - 0x104], esp
lea eax, [ebp - 0x14]
push eax
call fcn.100160f5
call fcn.1001690b
add esp, 8
mov eax, dword [ebp + 8]
push eax
push str._scstrikelistenserver.cfg
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x110], esp
lea eax, [ebp - 0x14]
push eax
call fcn.100160f5
call fcn.10016c44
add esp, 4
mov byte [ebp - 0x139], al
movzx ecx, byte [ebp - 0x139]
test ecx, ecx
je 0x10039f64
push 0x7a
push ecx
mov ecx, esp
mov dword [ebp - 0x11c], esp
lea eax, [ebp - 0x14]
push eax
call fcn.100160f5
call fcn.1001690b
add esp, 8
mov eax, dword [ebp + 8]
push eax
push str._scstrike_resourceLoadingDialog.res
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x10039fad
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp + 8]
push eax
push str._scstrike_resourceLoadingDialogNoBanner.res
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x10039ff6
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp + 8]
push eax
push str._scstrike_resourceLoadingDialogNoBannerSingle.res
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x1003a03f
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp + 8]
push eax
push str._scstrike_resourceLoadingDialogVAC.res
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x1003a088
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp + 8]
push eax
push str._scstrike_resourceGameMenu.res
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, esp
call fcn.100168f2
test eax, eax
je 0x1003a102
push 0x6a
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
lea eax, [ebp - 0x14]
push eax
call fcn.100160f5
call fcn.10016cda
add esp, 8
mov byte [ebp - 0x139], al
movzx ecx, byte [ebp - 0x139]
test ecx, ecx
je 0x1003a102
push 0x6a
push ecx
mov ecx, esp
mov dword [ebp - 0x134], esp
lea eax, [ebp - 0x14]
push eax
call fcn.100160f5
call fcn.1001690b
add esp, 8
mov eax, dword [ebp + 8]
push eax
push str._scstrikehw
lea ecx, [ebp - 0x14]
push ecx
call fcn.10016956
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1001646a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp esi, esp
call fcn.100168f2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100161c7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100161c7
push edx
mov ecx, ebp
push eax
lea edx, [0x1003a17c]
call fcn.1001677b
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x13c
cmp ebp, esp
call fcn.100168f2
mov esp, ebp
pop ebp
ret