Function at 0x403040
Capabilities:
Check if file exists
Delete file
Get session user name

Disassembly:
sub esp, 0x520
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
push edi
mov edi, eax
push 0x41a940
lea eax, [esp + 0x430]
push eax
mov dword [esp + 0x20], 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.CLaunch.exe
lea ecx, [esp + 0x430]
push ecx
call esi
push 0xb
push 0
lea edx, [esp + 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x4030a6
call fcn.004064d0
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], 1
call ebx
push str.Data_
lea ecx, [esp + 0x20]
push ecx
call esi
push str.CLaunch.ini
lea edx, [esp + 0x20]
push edx
call esi
push edi
lea eax, [esp + 0x124]
push eax
call ebx
push str.Data_
lea ecx, [esp + 0x124]
push ecx
call esi
push str.Design.ini
lea edx, [esp + 0x124]
push edx
call esi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40313c
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x24]
call fcn.00401000
add esp, 8
cmp eax, 1
jne 0x403134
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40313c
test eax, eax
jne 0x40313c
mov dword [esp + 0x14], eax
push edi
lea ecx, [esp + 0x20]
push ecx
call ebx
push str.Data_
lea edx, [esp + 0x20]
push edx
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x228]
push ecx
mov dword [esp + 0x18], 0x104
call ebp
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x20]
push eax
call esi
push 0x416ae8
lea ecx, [esp + 0x20]
push ecx
call esi
push str.CLaunch.ini
lea edx, [esp + 0x20]
push edx
call esi
push edi
lea eax, [esp + 0x124]
push eax
call ebx
push str.Data_
lea ecx, [esp + 0x124]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x228]
push eax
mov dword [esp + 0x18], 0x104
call ebp
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x124]
push edx
call esi
push 0x416ae8
lea eax, [esp + 0x124]
push eax
call esi
push str.Design.ini
lea ecx, [esp + 0x124]
push ecx
call esi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40323a
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push ecx
lea eax, [esp + 0x24]
call fcn.00401000
add esp, 8
cmp eax, 1
jne 0x403232
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40323a
test eax, eax
jne 0x40323a
mov dword [esp + 0x14], eax
lea edi, [esp + 0x328]
call fcn.00403400
test eax, eax
je 0x4033f0
mov eax, edi
push eax
lea ecx, [esp + 0x20]
push ecx
call ebx
push str.Data_
lea edx, [esp + 0x20]
push edx
call esi
push str.CLaunch.ini
lea eax, [esp + 0x20]
push eax
call esi
mov ecx, edi
push ecx
lea edx, [esp + 0x124]
push edx
call ebx
push str.Data_
lea eax, [esp + 0x124]
push eax
call esi
push str.Design.ini
lea ecx, [esp + 0x124]
push ecx
call esi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4032e0
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push ecx
lea eax, [esp + 0x24]
call fcn.00401000
add esp, 8
cmp eax, 1
jne 0x4032d8
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4032e0
test eax, eax
jne 0x4032e0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x20]
push ecx
call ebx
push str.Data_
lea edx, [esp + 0x20]
push edx
call esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x228]
mov edi, 0x104
push ecx
mov dword [esp + 0x18], edi
call ebp
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x20]
push eax
call esi
push 0x416ae8
lea ecx, [esp + 0x20]
push ecx
call esi
push str.CLaunch.ini
lea edx, [esp + 0x20]
push edx
call esi
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x124]
push ecx
call ebx
push str.Data_
lea edx, [esp + 0x124]
push edx
call esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x228]
push ecx
mov dword [esp + 0x18], edi
call ebp
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x124]
push eax
call esi
push 0x416ae8
lea ecx, [esp + 0x124]
push ecx
call esi
push str.Design.ini
lea edx, [esp + 0x124]
push edx
call esi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4033f0
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x24]
call fcn.00401000
add esp, 8
cmp eax, 1
jne 0x4033e8
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x520
ret
test eax, eax
jne 0x4033f0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x520
ret