Function at 0x45cf50
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa138
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4d8368]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x90], ebx
cmp dword [ebx + 0x10], 0
je 0x45d5c8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ebx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push str._k_Scenario_t_
push eax
call fcn.004064c0
add esp, 0xc
cmp dword [ebx + 0x2c], 8
lea edi, [ebx + 0x18]
mov byte [ebp - 4], 2
mov ecx, edi
jb 0x45cfdc
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
mov ecx, eax
call fcn.00402c90
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
mov dword [ebp - 0x9c], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0xa0], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x94], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x8c], edx
xor edx, edx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x98], ecx
cmp edx, 8
jb 0x45d069
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d059
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5e4
push edx
push ecx
call fcn.00464df3
mov ecx, dword [ebp - 0x98]
add esp, 8
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
call fcn.00402320
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
lea eax, [ebp - 0x58]
push str._k_Scenario_t_
push eax
call fcn.004064c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x45d156
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x45d10c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d102
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5e9
push edx
push ecx
call fcn.00464df3
add esp, 8
mov dword [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x2c], 7
mov eax, dword [esi]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x58]
call fcn.00402320
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040dd40
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x45d1ff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x45d1b5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d1ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5ee
push edx
push ecx
call fcn.00464df3
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x58]
call fcn.00402320
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x45d26b
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x45d218
mov ecx, dword [edi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edx, dword [edi + 0x10]
mov esi, dword [ebp - 0x28]
cmovae eax, esi
mov dword [ebp - 0x94], edx
cmp ebx, edx
mov edx, dword [ebp - 0x14]
jne 0x45d32e
mov edx, ebx
test edx, edx
je 0x45d26b
sub eax, ecx
mov dword [ebp - 0x8c], eax
jmp 0x45d250
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x45d32b
mov eax, dword [ebp - 0x8c]
add ecx, 2
sub edx, 1
jne 0x45d250
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
call esi
push 0xe
push str._k_Scenario_t_
lea ecx, [ebp - 0x40]
call fcn.00402e10
push 0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x45d2da
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x45d2d0
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5f3
push ecx
push esi
call fcn.00464df3
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x45d5c8
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d5be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5f3
jmp 0x45d5be
mov edx, dword [ebp - 0x14]
cmp dword [edi + 0x14], 8
jb 0x45d336
mov edi, dword [edi]
push dword [ebp - 0x94]
cmp edx, 8
lea eax, [ebp - 0x28]
push edi
push 0
cmovae eax, esi
push ebx
push eax
call fcn.00406d20
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x8c], edi
cmp edi, 0xffffffff
je 0x45d2a3
mov ecx, dword [ebp - 0x90]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov ecx, dword [ecx + 0x28]
add ecx, edi
cmp ebx, ecx
jb 0x45d5f8
sub ebx, ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x90], ebx
or ebx, 0xffffffff
cmp dword [ebp - 0x90], 0xffffffff
cmovb ebx, dword [ebp - 0x90]
cmp dword [ebp - 0x14], 8
cmovae eax, esi
lea eax, [eax + ecx*2]
mov dword [ebp - 0x90], eax
cmp ebx, 7
ja 0x45d3d8
lea esi, [ebx + ebx]
mov dword [ebp - 0x60], ebx
push esi
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0047c8c0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x70], ax
jmp 0x45d438
cmp ebx, 0x7ffffffe
ja 0x45d5fd
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x45d3f8
mov esi, 0x7ffffffe
jmp 0x45d402
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402c30
mov dword [ebp - 0x5c], esi
mov edi, eax
lea esi, [ebx + ebx]
mov dword [ebp - 0x60], ebx
push esi
push dword [ebp - 0x90]
push edi
call fcn.0047c340
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov dword [ebp - 0x70], edi
mov edi, dword [ebp - 0x8c]
xor eax, eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], edi
lea ecx, [ebp - 0x58]
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x28]
cmovb edi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
push edi
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
call fcn.00402e10
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00406390
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x45d518
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x45d4ce
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d4c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d602
push edx
push ecx
call fcn.00464df3
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x88]
call fcn.00402320
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x45d55d
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d553
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d602
push edx
push ecx
call fcn.00464df3
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x45d5a7
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d59d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d602
push edx
push ecx
call fcn.00464df3
add esp, 8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmovae ecx, dword [ebp - 0x28]
push ecx
jmp 0x45d292
push edx
push ecx
call fcn.00464df3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00465060
mov esp, ebp
pop ebp
ret
call fcn.00485d39
call fcn.00485d39
call fcn.00485d39
call fcn.00485d39
call fcn.00404e40
call fcn.00402a50
call fcn.00485d39
int3