Function at 0x4020d5
Capabilities:
Create thread
Set environment variable

Disassembly:
push 0x41c
mov eax, 0x4408c0
call fcn.0041ffcd
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [ebp - 0x424], ebx
call fcn.00421280
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40210d
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.OnlineResource.7z
push eax
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push 0x44e354
call fcn.00401e86
test eax, eax
jne 0x402163
lea eax, [ebp - 0x218]
push eax
push str.ExtractResource_Fail__szResPath:_s
push 0x177
mov edi, str.CInstallEnv::InitResoure
mov ebx, str.D:jenkinsworkspaceThunderPCThunderPC_AP_Gray_Pack_Pipelinechannel_trunk_build_setupOnlineInstallOnlineInstallInstallEnv.cpp
push edi
push ebx
push 2
call fcn.00402aff
add esp, 0x18
jmp 0x4022d8
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00421280
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x402182
mov eax, dword [esi]
push str.OnlineResource
push eax
lea eax, [ebp - 0x420]
push eax
call edi
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40219b
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004019ff
test eax, eax
jne 0x4021bf
lea eax, [ebp - 0x218]
push eax
push str.UncompressResource_Fail__szResPath:_s
push 0x180
jmp 0x402148
lea eax, [ebp - 0x420]
push eax
lea ecx, [esi + 0x18]
call fcn.004023d2
lea eax, [ebp - 0x420]
push eax
push str.resdir
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.Init_BugReport
push 0x187
mov edi, str.CInstallEnv::InitResoure
mov ebx, str.D:jenkinsworkspaceThunderPCThunderPC_AP_Gray_Pack_Pipelinechannel_trunk_build_setupOnlineInstallOnlineInstallInstallEnv.cpp
push edi
push ebx
push 4
call fcn.00402aff
mov eax, dword fs:[0x2c]
add esp, 0x14
mov ecx, dword [eax]
mov eax, dword [0x458468]
cmp eax, dword [ecx + 4]
jle 0x40228b
push 0x458468
call fcn.0041f806
cmp dword [0x458468], 0xffffffff
pop ecx
jne 0x40228b
push 0x44d56c
xor eax, eax
push 0x4a
mov dword [ebp - 4], eax
push 0x44d578
push str.D:jenkinsworkspaceThunderPCThunderPC_AP_Gray_Pack_Pipelinechannel_trunk_build_setupOnlineInstallOnlineInstallBugReporter.h
push 5
mov dword [0x45846c], eax
mov dword [0x458470], eax
mov dword [0x458474], eax
mov dword [0x458478], eax
mov dword [0x45847c], eax
call fcn.00402aff
add esp, 0x14
call fcn.0040113e
test eax, eax
je 0x402270
call fcn.00401427
push 0x4419c5
call fcn.0041fb18
or dword [ebp - 4], 0xffffffff
mov dword [esp], 0x458468
call fcn.0041f7bc
pop ecx
xor ecx, ecx
mov dword [ebp - 0x424], 1
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], ecx
push eax
push ecx
push ecx
push 0x401f45
push ecx
push ecx
call fcn.00427b68
add esp, 0x18
test eax, eax
je 0x4022c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4022d8
push str._beginthreadex_fail_
push 0x195
push edi
push ebx
push 2
call fcn.00402aff
add esp, 0x14
lea ecx, [esi + 0x30]
cmp dword [ecx + 0x14], 8
jb 0x4022e3
mov ecx, dword [ecx]
add esi, 0x18
cmp dword [esi + 0x14], 8
jb 0x4022ee
mov esi, dword [esi]
push ecx
push esi
push str.szResPath:_s__szSDKPath:_s
push 0x19a
push edi
push ebx
push 4
call fcn.00402aff
mov eax, dword [ebp - 0x424]
add esp, 0x1c
call fcn.0041ff88
ret