Function at 0x4195d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x1c], edx
push ebx
push esi
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov esi, dword [eax]
mov dword [ebp - 8], esi
push edi
mov edi, esi
movzx eax, word [esi]
push eax
call fcn.00422d2c
add esp, 4
test eax, eax
jne 0x41960a
cmp word [esi], 0x5f
jne 0x419624
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.00422cfd
add esp, 4
test eax, eax
jne 0x41960a
cmp word [edi], 0x5f
jmp 0x419608
sub edi, esi
sar edi, 1
lea esi, [edi + edi]
lea eax, [esi + 2]
call fcn.004309a0
mov eax, esp
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push eax
call fcn.0041ec00
mov eax, dword [ebp - 0x10]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 8]
add ecx, esi
mov dword [ebp - 8], ecx
test edi, edi
je 0x419757
movzx eax, word [ecx]
test ax, ax
je 0x41967c
mov edx, eax
cmp dx, 0x20
ja 0x41967c
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x419668
mov dword [ebp - 8], ecx
movzx eax, word [ecx]
cmp eax, 0x3d
jne 0x4196bd
add ecx, 2
mov ebx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x419754
nop word [eax + eax]
cmp dx, 0x20
ja 0x419754
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4196a0
jmp 0x419754
push eax
push 0x4379c8
call fcn.0041de51
add esp, 8
test eax, eax
mov eax, dword [ebp - 8]
je 0x419706
cmp word [eax + 2], 0x3d
jne 0x419706
movzx ebx, word [eax]
lea ecx, [eax + 4]
movzx eax, word [ecx]
test ax, ax
je 0x419754
mov edx, eax
nop dword [eax]
cmp dx, 0x20
ja 0x419754
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4196f0
jmp 0x419754
movzx eax, word [eax]
push eax
push 0x4379b8
call fcn.0041de51
add esp, 8
test eax, eax
je 0x419757
mov ecx, dword [ebp - 8]
movzx eax, word [ecx]
cmp ax, word [ecx + 2]
jne 0x419757
cmp word [ecx + 4], 0x3d
jne 0x419757
add ecx, 6
mov ebx, eax
movzx eax, word [ecx]
test ax, ax
je 0x419754
mov edx, eax
nop dword [eax]
cmp dx, 0x20
ja 0x419754
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x419740
mov dword [ebp - 8], ecx
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x419815
test bx, bx
je 0x419815
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.004195d0
test eax, eax
je 0x419839
mov ecx, esi
call fcn.00403ce0
test eax, eax
jne 0x41978d
xor edi, edi
jmp 0x41979c
push 0
push 0
push eax
call fcn.00420036
add esp, 0xc
mov edi, eax
movzx eax, bx
mov dword [ebp - 0x14], edi
sub eax, 0x3c
je 0x4197d6
sub eax, 1
je 0x4197d1
sub eax, 1
je 0x4197ca
push dword [ebp - 0xc]
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.00419010
add esp, 4
test eax, eax
je 0x419839
mov edi, dword [ebp - 0x14]
jmp 0x4197e8
mov ecx, dword [ebp - 0xc]
sar edi, cl
jmp 0x4197e8
mov edi, dword [ebp - 0xc]
jmp 0x4197e8
mov ecx, dword [ebp - 0xc]
test ecx, ecx
js 0x4197e6
cmp ecx, 0x20
jae 0x4197e6
shl edi, cl
jmp 0x4197e8
xor edi, edi
mov eax, 0x40
call fcn.004309a0
mov esi, esp
push edi
push 0x4379dc
push 0x20
push esi
call fcn.00402bb0
mov eax, dword [ebp - 0x10]
add esp, 0x10
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, dword [ebp - 0x18]
jmp 0x419852
mov esi, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
push 0x4195b0
push 0x436cd4
lea ecx, [ebp - 8]
mov eax, dword [esi]
mov dword [ebp - 8], eax
call fcn.00419390
add esp, 8
test eax, eax
jne 0x41984f
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, 1
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret