Function at 0x417020
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x97c
mov eax, dword [0x48b370]
xor eax, esp
mov dword [esp + 0x974], eax
push ebx
push esi
mov eax, dword [0x48b370]
xor eax, esp
push eax
lea eax, [esp + 0x988]
mov dword fs:[0], eax
call fcn.0040f5c0
cmp eax, 1
je 0x4172fd
mov ax, word [edi + 0x1c]
xor esi, esi
push 0x40e
mov word [esp + 0x58], ax
lea eax, [esp + 0x36a]
xor ecx, ecx
xor edx, edx
push esi
push eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 1
mov word [esp + 0x62], cx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov word [esp + 0x370], dx
call fcn.004556a0
add esp, 0xc
push 0x206
lea edx, [esp + 0x162]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x168], cx
call fcn.004556a0
mov eax, dword [edi + 0x10]
add esp, 0xc
push 5
lea ebx, [edi + 0x10]
push str.http:
push eax
call fcn.0044eef9
add esp, 0xc
test eax, eax
je 0x41719f
mov ecx, dword [ebx]
push 6
push str.https:
push ecx
call fcn.0044eef9
add esp, 0xc
test eax, eax
je 0x41719f
mov eax, dword [ebx]
cmp eax, esi
je 0x4171fd
push 0x25
push eax
call fcn.0044f5da
add esp, 8
test eax, eax
je 0x41716f
mov eax, dword [ebx]
push 0x104
lea edx, [esp + 0x160]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 0x15c]
mov dword [ebx], ecx
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x4171fd
mov edx, dword [ebx]
push eax
push edx
lea eax, [esp + 0x36c]
push str.__s___s
push eax
call fcn.0044f53b
lea ecx, [esp + 0x374]
add esp, 0x10
mov dword [edi + 0x14], ecx
jmp 0x4171fd
lea ecx, [esp + 0x774]
call fcn.00415040
test eax, eax
je 0x4172fd
push 0x104
lea edx, [esp + 0x160]
push edx
lea eax, [esp + 0x77c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push 0x208
lea ecx, [esp + 0x36c]
push ecx
push esi
push esi
lea edx, [esp + 0x170]
push edx
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [esp + 0x364]
mov dword [ebx], esi
mov dword [edi + 0x14], eax
call fcn.00415140
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x417327
lea ecx, [esp + 0x6c]
push ecx
call fcn.00403575
lea edx, [esp + 0x6c]
push str.CreateNormalToken_failed_n
push edx
mov dword [esp + 0x998], esi
call fcn.0040667a
add esp, 8
push str.helper::ExecuteAsNormalEx
lea ecx, [esp + 0x128]
call fcn.0040258f
push str.E:code_b5m_client_bang5taoB5TClientSourceB5TLibcommonhelper_inl.h
lea ecx, [esp + 0x10c]
mov byte [esp + 0x994], 1
call fcn.0040258f
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x994], 2
call fcn.00403624
push eax
lea ecx, [esp + 0x128]
push ecx
push 0x6c4
push esi
mov byte [esp + 0x9a0], 3
call fcn.00439dc3
lea ecx, [esp + 0x118]
mov ebx, eax
call fcn.00439e02
lea ecx, [esp + 0x140]
mov byte [esp + 0x990], 2
call fcn.004025cc
lea ecx, [esp + 0x108]
mov byte [esp + 0x990], 1
call fcn.004025cc
lea ecx, [esp + 0x124]
mov byte [esp + 0x990], 0
call fcn.004025cc
lea ecx, [esp + 0xbc]
mov dword [esp + 0x990], 0xffffffff
call fcn.004035e1
lea ecx, [esp + 0xbc]
call fcn.00402925
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x988]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x974]
xor ecx, esp
call fcn.0044cdc7
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x14]
push edx
mov edx, dword [edi + 0x18]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [ebx]
push esi
push 0x20
push esi
push esi
push esi
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [esp + 0xc], eax
cmp eax, esi
je 0x4173c1
test dword [edi + 4], 0x100
je 0x417367
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test byte [edi + 4], 0x40
je 0x417395
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
mov dword [edi + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x417304
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x417304
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x10], eax
call fcn.00402ec2
mov dword [esp + 0x990], 4
mov eax, dword [ebx]
cmp eax, esi
jne 0x4173e9
mov eax, dword [edi + 0x14]
mov edx, dword [esp + 0xc]
push edx
push ecx
push str.__error_code_
push ecx
push eax
push ecx
lea eax, [esp + 0x84]
push str.Failed_to_start_program_
push eax
call fcn.004064bf
add esp, 0xc
push eax
call fcn.004064bf
add esp, 0xc
push eax
call fcn.004064bf
add esp, 0xc
push eax
call fcn.00416e30
push str.helper::ExecuteAsNormalEx
lea ecx, [esp + 0x10c]
call fcn.0040258f
push str.E:code_b5m_client_bang5taoB5TClientSourceB5TLibcommonhelper_inl.h
lea ecx, [esp + 0x128]
mov byte [esp + 0x994], 5
call fcn.0040258f
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0x994], 6
call fcn.00402f86
push eax
lea edx, [esp + 0x10c]
push edx
push 0x6dc
lea eax, [esp + 0x130]
push eax
push esi
push ecx
mov byte [esp + 0x9a8], 7
call fcn.00439dc3
add esp, 4
push eax
call fcn.0043a160
lea esi, [esp + 0x140]
mov byte [esp + 0x990], 6
call fcn.004026c0
lea ecx, [esp + 0x124]
mov byte [esp + 0x990], 5
call fcn.004025cc
lea ecx, [esp + 0x108]
mov byte [esp + 0x990], 4
call fcn.004025cc
lea ecx, [esp + 0xbc]
mov dword [esp + 0x990], 0xffffffff
call fcn.00402f43
lea ecx, [esp + 0xbc]
call fcn.004029cc
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x417304