Function at 0x41a290
Capabilities:
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4a53d8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4c3518]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [0x4c602c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c602c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x4c], ebx
call fcn.00419cb0
mov edi, 0x4c8288
mov byte [esp + 0x4c], 1
call fcn.00402180
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a30e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x20]
call fcn.00419d70
lea esi, [esp + 0x1c]
mov byte [esp + 0x4c], 2
call fcn.00419e30
lea esi, [esp + 0x18]
mov byte [esp + 0x4c], 3
call fcn.00419ef0
mov byte [esp + 0x4c], 4
mov ecx, dword [0x4c8288]
lea edx, [esp + 0x28]
call fcn.00438a50
mov esi, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
mov ebx, 0x4b301c
mov byte [esp + 0x54], 5
call fcn.0040ae80
add esp, 8
mov byte [esp + 0x4c], 6
cmp dword [esi + 0x18], 8
jb 0x41a375
mov esi, dword [esi + 4]
jmp 0x41a378
add esi, 4
push eax
lea eax, [esp + 0x18]
push eax
mov ebx, esi
call fcn.0040ae80
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x4c], 7
call fcn.00402180
mov byte [esp + 0x4c], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a3bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a3e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 4
cmp dword [esp + 0x40], 8
jb 0x41a3f9
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00485321
add esp, 4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4b301c
call fcn.0040ae80
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, eax
mov byte [esp + 0x5c], 8
call fcn.00413bc0
add esp, 0x10
lea edi, [esp + 0x10]
mov byte [esp + 0x4c], 9
call fcn.00402180
mov byte [esp + 0x4c], 8
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a47e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
call fcn.00438a50
mov esi, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, 0x4b301c
mov byte [esp + 0x54], 0xa
call fcn.0040ae80
add esp, 8
mov byte [esp + 0x4c], 0xb
cmp dword [esi + 0x18], 8
jb 0x41a4b9
mov esi, dword [esi + 4]
jmp 0x41a4bc
add esi, 4
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, esi
call fcn.0040ae80
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x4c], 0xc
call fcn.00402180
mov byte [esp + 0x4c], 0xb
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a4ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0xa
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a524
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 4
cmp dword [esp + 0x40], 8
jb 0x41a53d
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00485321
add esp, 4
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
call fcn.00438a50
mov esi, eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4b301c
mov byte [esp + 0x54], 0xd
call fcn.0040ae80
add esp, 8
mov byte [esp + 0x4c], 0xe
cmp dword [esi + 0x18], 8
jb 0x41a578
mov esi, dword [esi + 4]
jmp 0x41a57b
add esi, 4
push eax
lea ecx, [esp + 0x28]
push ecx
mov ebx, esi
call fcn.0040ae80
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x4c], 0xf
call fcn.00402180
mov byte [esp + 0x4c], 0xe
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a5be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0xd
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a5e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 4
cmp dword [esp + 0x40], 8
jb 0x41a5fc
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00485321
add esp, 4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
mov ebx, 0x4b301c
call fcn.0040ae80
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x4c], 0x10
call fcn.00402180
mov byte [esp + 0x4c], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a646
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4c602c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c602c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov byte [esp + 0x4c], 0x11
call fcn.0041b890
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea ebx, [esp + 0x18]
call fcn.00413bc0
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x4c], 0x12
call fcn.00402180
mov byte [esp + 0x4c], 0x11
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a6b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00486687
add esp, 8
test eax, eax
jl 0x41a7b8
cmp eax, dword [esi - 8]
jg 0x41a7b8
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [esi - 0x10]
mov byte [esp + 0x4c], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a70c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a756
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a77b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a7a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x40
ret
push 0x80070057
call fcn.00403c30
int3