Function at 0x100e5bda
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov eax, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
push esi
push edi
test eax, eax
jne 0x100e5cc3
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
or ebx, 0xffffffff
mov esi, eax
cmp ecx, ebx
je 0x100e5c36
call fcn.10029fa0
mov edi, eax
test edi, edi
je 0x100e5c30
cmp edi, ebx
jne 0x100e5c95
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac0
mov dword [eax], 0x16
jmp 0x100e5d79
mov ecx, dword [0x1010e2c0]
mov edx, ebx
call fcn.10032a89
test eax, eax
je 0x100e5c19
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test edi, edi
jne 0x100e5c6b
xor edx, edx
call fcn.10032a89
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100e5c19
mov edx, edi
call fcn.10032a89
test eax, eax
jne 0x100e5c86
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push edi
jmp 0x100e5c63
mov ecx, edi
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test edi, edi
je 0x100e5c19
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add edi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
je 0x100e5c20
lea eax, [edi + 0x10]
jmp 0x100e5c25
mov esi, eax
push 0x3d
push eax
mov dword [ebp - 0x10], esi
call sym.ucrtbase.dll_wcschr
mov dword [ebp - 8], eax
pop ecx
pop ecx
test eax, eax
je 0x100e60eb
cmp eax, esi
je 0x100e60eb
mov esi, eax
movzx edi, word [esi + 2]
mov dword [ebp - 0xc], edi
call fcn.100e6257
call fcn.10028920
xor ebx, ebx
lea eax, [eax*4 + 0x1010f7f8]
cmp dword [eax], ebx
jne 0x100e5ea3
cmp dword [ebp - 0x18], ebx
je 0x100e5e17
call fcn.10028920
lea eax, [eax*4 + 0x1010f800]
cmp dword [eax], ebx
je 0x100e5e17
call fcn.1003ba7c
test eax, eax
jne 0x100e5e0d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
or edi, 0xffffffff
mov esi, eax
cmp ecx, edi
je 0x100e5d88
call fcn.10029fa0
mov dword [ebp - 4], eax
test eax, eax
je 0x100e5d82
cmp eax, edi
jne 0x100e5de5
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac0
mov dword [eax], 0x16
mov ebx, edi
push dword [ebp - 0x10]
call sym.ucrtbase.dll__free_base
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1010e2c0]
mov edx, edi
call fcn.10032a89
test eax, eax
je 0x100e5d5c
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [ebp - 4], eax
pop ecx
pop ecx
mov ecx, dword [0x1010e2c0]
test eax, eax
je 0x100e6168
mov edx, eax
call fcn.10032a89
test eax, eax
jne 0x100e5dd3
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
mov ecx, dword [ebp - 4]
push ecx
jmp 0x100e614c
mov ecx, dword [ebp - 4]
call fcn.10031ad6
push ebx
call sym.ucrtbase.dll__free_base
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x100e5d5c
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
push esi
imul ebx, eax, 0x364
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
add ebx, dword [ebp - 4]
jmp 0x100e61a5
call fcn.100e6257
jmp 0x100e5ea3
test di, di
je 0x100e5d70
call fcn.10028920
lea eax, [eax*4 + 0x1010f800]
cmp dword [eax], ebx
jne 0x100e5e50
push 4
push 1
call sym.ucrtbase.dll__calloc_base
mov esi, eax
call fcn.10028920
push ebx
mov dword [eax*4 + 0x1010f800], esi
call sym.ucrtbase.dll__free_base
add esp, 0xc
call fcn.10028920
lea eax, [eax*4 + 0x1010f800]
cmp dword [eax], ebx
je 0x100e5eb3
call fcn.10028920
lea eax, [eax*4 + 0x1010f7f8]
cmp dword [eax], ebx
jne 0x100e5e90
push 4
push 1
call sym.ucrtbase.dll__calloc_base
mov esi, eax
call fcn.10028920
push ebx
mov dword [eax*4 + 0x1010f7f8], esi
call sym.ucrtbase.dll__free_base
add esp, 0xc
call fcn.10028920
lea eax, [eax*4 + 0x1010f7f8]
cmp dword [eax], ebx
je 0x100e5eb3
mov esi, dword [ebp - 8]
call fcn.10028920
mov edi, dword [eax*4 + 0x1010f7f8]
test edi, edi
jne 0x100e5ebb
or ebx, 0xffffffff
jmp 0x100e5d70
sub esi, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sar esi, 1
mov edx, esi
mov dword [ebp - 8], esi
call fcn.100e6297
mov esi, eax
test esi, esi
js 0x100e5f7b
cmp dword [edi], ebx
je 0x100e5f7b
push dword [edi + esi*4]
call sym.ucrtbase.dll__free_base
pop ecx
cmp word [ebp - 0xc], bx
je 0x100e5f4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
mov dword [edi + esi*4], eax
mov edi, dword [ebp - 4]
cmp dword [ebp - 0x18], ebx
je 0x100e5d70
lea ecx, [ebp - 4]
call fcn.1003abcd
add eax, 2
push 2
push eax
mov dword [ebp - 0x18], eax
call sym.ucrtbase.dll__calloc_base
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100e6041
push edi
push dword [ebp - 0x18]
push esi
call sym.ucrtbase.dll_wcscpy_s
add esp, 0xc
test eax, eax
je 0x100e5fdf
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.ucrtbase.dll__invoke_watson
mov eax, dword [edi + esi*4 + 4]
mov dword [edi + esi*4], eax
inc esi
cmp dword [edi + esi*4], ebx
jne 0x100e5f44
push 4
push esi
push edi
call sym.ucrtbase.dll__recalloc
add esp, 0xc
mov esi, eax
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
test esi, esi
je 0x100e5ef7
call fcn.10028920
mov dword [eax*4 + 0x1010f7f8], esi
jmp 0x100e5ef7
cmp word [ebp - 0xc], bx
je 0x100e5d70
neg esi
lea eax, [esi + 2]
cmp eax, esi
jb 0x100e5eb3
cmp eax, 0x3fffffff
jae 0x100e5eb3
push 4
push eax
push edi
call sym.ucrtbase.dll__recalloc
add esp, 0xc
mov dword [ebp - 0x14], eax
push ebx
call sym.ucrtbase.dll__free_base
mov eax, dword [ebp - 0x14]
pop ecx
test eax, eax
je 0x100e5eb3
mov edi, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], ebx
call fcn.10028920
mov ecx, dword [ebp - 0x14]
mov dword [eax*4 + 0x1010f7f8], ecx
jmp 0x100e5efa
mov eax, dword [ebp - 8]
inc eax
lea ecx, [esi + eax*2]
xor eax, eax
mov word [ecx - 2], ax
mov eax, dword [ebp - 0xc]
movzx eax, ax
neg eax
sbb eax, eax
and eax, ecx
push eax
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x100e6041
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
mov edi, eax
cmp ecx, 0xffffffff
je 0x100e6053
call fcn.10029fa0
mov dword [ebp - 4], eax
test eax, eax
je 0x100e604d
cmp eax, 0xffffffff
jne 0x100e60ba
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac0
mov dword [eax], 0x2a
or ebx, 0xffffffff
push esi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100e5d70
mov ecx, dword [0x1010e2c0]
or edx, 0xffffffff
call fcn.10032a89
test eax, eax
je 0x100e602c
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [ebp - 4], eax
pop ecx
pop ecx
mov ecx, dword [0x1010e2c0]
test eax, eax
jne 0x100e608a
xor edx, edx
call fcn.10032a89
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100e602c
mov edx, eax
call fcn.10032a89
test eax, eax
jne 0x100e60a8
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
mov ecx, dword [ebp - 4]
push ecx
jmp 0x100e6082
mov ecx, dword [ebp - 4]
call fcn.10031ad6
push ebx
call sym.ucrtbase.dll__free_base
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x100e602c
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
push edi
imul ebx, eax, 0x364
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
add ebx, dword [ebp - 4]
je 0x100e6033
lea eax, [ebx + 0x10]
jmp 0x100e6038
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
or edi, 0xffffffff
mov esi, eax
cmp ecx, edi
je 0x100e611b
call fcn.10029fa0
mov ebx, eax
test ebx, ebx
je 0x100e6115
cmp ebx, edi
je 0x100e5d5c
jmp 0x100e6181
mov ecx, dword [0x1010e2c0]
mov edx, edi
call fcn.10032a89
test eax, eax
je 0x100e5d5c
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test ebx, ebx
jne 0x100e6157
xor edx, edx
call fcn.10032a89
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100e5d5c
mov edx, ebx
call fcn.10032a89
test eax, eax
jne 0x100e6172
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push ebx
jmp 0x100e614c
mov ecx, ebx
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test ebx, ebx
je 0x100e5d5c
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
je 0x100e5d63
lea eax, [ebx + 0x10]
jmp 0x100e5d68