Function at 0x41ba40
Capabilities:
Create process on windows
Set current directory
Set environment variable

Disassembly:
mov eax, 0x1098
call fcn.00469100
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x1094], eax
mov eax, dword [esp + 0x10a8]
push ebp
push esi
mov esi, dword [esp + 0x10a4]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test esi, esi
je 0x41bd94
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x28e]
push edx
mov word [esp + 0x290], cx
call fcn.00467850
lea eax, [esp + 0x290]
push eax
push esi
call fcn.00417f10
add esp, 0x14
cmp byte [esp + 0x10a8], 0
je 0x41bd94
push ebx
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x8e]
push edx
mov word [esp + 0x90], cx
call fcn.00467850
add esp, 0xc
push 0x103
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x84]
push ecx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.CrashReport.exe
lea edx, [esp + 0x88]
push edx
call ebx
lea eax, [esp + 0x84]
push 0
push eax
call fcn.00467fa5
add esp, 8
test eax, eax
je 0x41bb92
lea ecx, [esp + 0x84]
push ecx
call edi
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp + 0x84]
push eax
call edi
push 0x49c49c
lea ecx, [esp + 0x88]
push ecx
call ebx
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.CrashReport.exe
lea eax, [esp + 0x88]
push eax
call ebx
lea ecx, [esp + 0x84]
push 0
push ecx
call fcn.00467fa5
add esp, 8
test eax, eax
jne 0x41bd92
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x49e]
push eax
mov word [esp + 0x4a0], dx
call fcn.00467850
lea edx, [esp + 0x74]
push edx
push ebp
lea eax, [esp + 0x4a8]
push eax
xor ecx, ecx
push esi
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], 0
mov word [esp + 0x88], cx
call fcn.0041b790
add esp, 0x1c
test eax, eax
je 0x41bd89
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x6a6]
push edx
mov word [esp + 0x6a8], cx
call fcn.00467850
mov eax, dword [esp + 0x10c0]
push eax
push ebp
lea ecx, [esp + 0x6b0]
push ecx
push esi
call fcn.0041b910
add esp, 0x1c
test eax, eax
je 0x41bd89
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea edx, [esp + 0x494]
push edx
push str.TDCrashReport_SmallInfo
call esi
lea eax, [esp + 0x69c]
push eax
push str.TDCrashReport_BigInfo
call esi
lea ecx, [esp + 0x28c]
push ecx
push str.TDCrashReport_DumpFile
call esi
push str.GameHall_exception
push str.TDCrashReport_Title
call esi
cmp dword [0x4b93f0], 8
mov eax, dword [0x4b93dc]
jae 0x41bc7f
mov eax, 0x4b93dc
push eax
push str.TDCrashReport_AttachResource
call esi
cmp byte [0x4bd991], 0
mov eax, str.true
jne 0x41bc9a
mov eax, str.false
push eax
push str.TDCrashReport_DisableSend
call esi
mov edx, dword [esp + 0x10]
push edx
push str.TDCrashReport_UserInfo
call esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x8ae]
push ecx
mov word [esp + 0x8b0], ax
call fcn.00467850
lea edx, [esp + 0x298]
push edx
lea eax, [esp + 0x94]
push eax
push 0x49c2cc
push 0x400
lea ecx, [esp + 0x8c0]
push 0x400
push ecx
call fcn.00467824
push 0x44
lea edx, [esp + 0x4c]
push 0
push edx
call fcn.00467850
xor eax, eax
add esp, 0x30
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x84]
mov eax, 1
push ecx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], 1
mov word [esp + 0x58], ax
call edi
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
lea edx, [esp + 0x8c4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
lea ecx, [esp + 0x68]
call fcn.00405180
pop edi
pop ebx
mov ecx, dword [esp + 0x109c]
pop esi
pop ebp
xor ecx, esp
call fcn.004677ab
add esp, 0x1098
ret