Function at 0x43f540
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x490878
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
call fcn.0043aa30
xor ebx, ebx
cmp dword [eax + 0x1c], 6
mov edi, 7
jl 0x43f61d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x12
xor eax, eax
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._sourcesmain.cpp
mov word [ecx + 4], ax
call fcn.0040faf0
mov dword [esp + 0x88], ebx
push 0xe9
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xe
xor edx, edx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.SetEnvironment
mov word [ecx + 4], dx
call fcn.0040faf0
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.0043aa30
mov dword [esp + 0xb0], 0xffffffff
mov ecx, eax
call fcn.0043a8d0
xor esi, esi
cmp dword [0x4b9d78], ebx
jbe 0x43f7cf
jmp 0x43f630
mov ecx, dword [0x4b9d74]
mov eax, dword [ecx + esi*4]
add eax, 0xc
push eax
lea ecx, [esp + 0x58]
call fcn.004562e0
mov dword [esp + 0x6c], 2
lea edx, [esp + 0x54]
push edx
call fcn.00404350
lea eax, [esp + 0x58]
push 0x4b9d14
push eax
call fcn.00404c20
lea ecx, [esp + 0x60]
push ecx
call fcn.00404350
lea edx, [esp + 0x64]
push 0x4b9d38
push edx
call fcn.00404d50
lea eax, [esp + 0x6c]
push 0x4b9d44
push eax
call fcn.00404e80
lea ecx, [esp + 0x74]
push ecx
call fcn.00404350
add esp, 0x24
call fcn.0043aa30
cmp dword [eax + 0x1c], 6
jl 0x43f797
mov edx, dword [esp + 0x54]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
mov dword [esp + 0x30], edx
push 0x12
xor eax, eax
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._sourcesmain.cpp
mov word [ecx + 4], ax
call fcn.0040faf0
mov byte [esp + 0x88], 3
push 0xee
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0xe
xor edx, edx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.SetEnvironment
mov word [ecx + 4], dx
call fcn.0040faf0
mov byte [esp + 0xa8], 4
mov eax, dword [0x4b9d74]
mov eax, dword [eax + esi*4]
lea edx, [esp + 0x88]
mov dword [esp + 0x64], edx
lea ecx, [esp + 0x4f]
lea edx, [esp + 0x50]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x78], edx
lea eax, [esp + 0x60]
lea ecx, [esp + 0x68]
lea edx, [esp + 0x80]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ecx
push edx
lea eax, [esp + 0x74]
lea ecx, [esp + 0x7c]
push 6
mov byte [esp + 0x57], bl
mov dword [esp + 0x68], str.Setting_environment_variable
mov dword [esp + 0x78], 0x497d60
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0x49769c
mov dword [esp + 0x8c], ecx
call fcn.0043aa30
mov byte [esp + 0xb0], 2
mov ecx, eax
call fcn.0043a8d0
mov eax, dword [0x4b9d74]
mov eax, dword [eax + 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.0046f7da
inc esi
add esp, 4
cmp esi, dword [0x4b9d78]
jb 0x43f630
call fcn.0043aa30
cmp dword [eax + 0x1c], 6
jl 0x43f897
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x12
xor eax, eax
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._sourcesmain.cpp
mov word [ecx + 4], ax
call fcn.0040faf0
mov dword [esp + 0x88], 5
push 0xf1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xe
xor edx, edx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.SetEnvironment
mov word [ecx + 4], dx
call fcn.0040faf0
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], vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____35___class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov dword [esp + 0x84], edx
call fcn.0043aa30
mov dword [esp + 0xb0], 0xffffffff
mov ecx, eax
call fcn.0043a8d0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret