Function at 0x440140
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48eb38
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
call fcn.0043b1c0
xor ebx, ebx
cmp dword [eax + 0x1c], 6
mov ebp, 7
jl 0x44021e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x12
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.._sourcesmain.cpp
mov word [ecx + 4], ax
call fcn.00410830
mov dword [esp + 0x88], ebx
push 0xfd
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xe
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.SetEnvironment
mov word [ecx + 4], dx
call fcn.00410830
mov byte [esp + 0xa8], 1
lea eax, [esp + 0x4f]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x84]
lea edx, [esp + 0x5c]
push 6
mov byte [esp + 0x57], bl
mov dword [esp + 0x60], str.Setting_environment_variables
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____30___class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov dword [esp + 0x6c], edx
call fcn.0043b1c0
mov dword [esp + 0xb0], 0xffffffff
mov ecx, eax
call fcn.0043b060
xor esi, esi
cmp dword [0x4b2dfc], ebx
jle 0x440403
lea esp, [esp]
mov ecx, dword [0x4b2e00]
mov edi, dword [ecx + esi*4]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov edx, dword [edi + 0x10]
push edx
lea ecx, [esp + 0x58]
call fcn.004010b0
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x54]
lea esp, [esp]
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x440260
mov eax, dword [edi + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], 2
lea ecx, [esp + 0x54]
push ecx
call fcn.00406d90
lea edx, [esp + 0x58]
push 0x4b8864
push edx
call fcn.0040f810
lea eax, [esp + 0x60]
push eax
call fcn.00406d90
lea ecx, [esp + 0x64]
push 0x4b8888
push ecx
call fcn.0040f940
lea edx, [esp + 0x6c]
push 0x4b8894
push edx
call fcn.0040fa70
lea eax, [esp + 0x74]
push eax
call fcn.00406d90
add esp, 0x24
call fcn.0043b1c0
cmp dword [eax + 0x1c], 6
jl 0x4403ca
mov ecx, dword [esp + 0x54]
sub esp, 0x1c
mov dword [esp + 0x30], ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x12
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.._sourcesmain.cpp
mov word [ecx + 4], dx
call fcn.00410830
mov byte [esp + 0x88], 3
push 0x102
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0xe
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.SetEnvironment
mov word [ecx + 4], ax
call fcn.00410830
mov byte [esp + 0xa8], 4
mov ecx, dword [0x4b2e00]
mov eax, dword [ecx + esi*4]
lea ecx, [esp + 0x88]
mov dword [esp + 0x64], ecx
lea edx, [esp + 0x4f]
lea ecx, [esp + 0x50]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x78], ecx
lea edx, [esp + 0x60]
lea eax, [esp + 0x68]
lea ecx, [esp + 0x80]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], eax
push ecx
lea edx, [esp + 0x74]
lea eax, [esp + 0x7c]
push 6
mov byte [esp + 0x57], bl
mov dword [esp + 0x68], str.Setting_environment_variable
mov dword [esp + 0x78], 0x496b4c
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], 0x4964a4
mov dword [esp + 0x8c], eax
call fcn.0043b1c0
mov byte [esp + 0xb0], 2
mov ecx, eax
call fcn.0043b060
mov edx, dword [0x4b2e00]
mov eax, dword [edx + esi*4]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [esp + 0x6c], 0xffffffff
mov edx, dword [esp + 0x54]
push edx
call fcn.0046d942
inc esi
add esp, 4
cmp esi, dword [0x4b2dfc]
jl 0x440230
call fcn.0043b1c0
cmp dword [eax + 0x1c], 6
jl 0x4404cb
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x12
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.._sourcesmain.cpp
mov word [ecx + 4], ax
call fcn.00410830
mov dword [esp + 0x88], 5
push 0x105
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xe
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.SetEnvironment
mov word [ecx + 4], dx
call fcn.00410830
mov byte [esp + 0xa8], 6
lea eax, [esp + 0x4f]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x84]
push 6
mov byte [esp + 0x57], bl
mov dword [esp + 0x88], str.Done_setting_environment_variables
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x80], 0x4964b8
mov dword [esp + 0x84], edx
call fcn.0043b1c0
mov dword [esp + 0xb0], 0xffffffff
mov ecx, eax
call fcn.0043b060
mov ecx, dword [esp + 0x64]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret