Function at 0x1000186e
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x10047578]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xa4
mov eax, 0x100369f0
call fcn.1001df35
xor ebx, ebx
mov esi, ecx
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, esi
call fcn.100016b3
movzx eax, word [ebp + 0x810]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push 0x1003cdec
push eax
mov byte [ebp - 4], 3
call dword [ecx]
cmp eax, ebx
jl 0x10001917
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x1003cddc
push 0x1003cdcc
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x98]
mov eax, dword [ebp - 0x20]
mov byte [ebp], bl
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10001933
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10001938
mov dword [ebp - 0x1c], ebx
jmp 0x10001953
lea edi, [eax + eax]
mov eax, edi
call fcn.1001e000
mov eax, esp
push 3
push edi
push dword [ebp - 0x10]
push eax
call fcn.1001fa50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1000196c
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10001970
xor eax, eax
jmp 0x10001988
lea edi, [eax + eax]
mov eax, edi
call fcn.1001e000
mov eax, esp
push 3
push edi
push dword [ebp - 0x10]
push eax
call fcn.1001fa50
push dword [ebp - 0x1c]
mov edi, 0x400
push eax
push 0x10038954
lea eax, [ebp]
push edi
push eax
call fcn.1001fa50
push 0x44
lea eax, [ebp - 0xb0]
push ebx
push eax
call fcn.1001d760
push 5
add esi, 0x68
push 0x10038960
push esi
mov dword [ebp - 0xb0], 0x44
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x5c], esi
call fcn.1001fa50
add esp, 0x2c
test eax, eax
jne 0x10001bc1
push 0x3ff
lea eax, [ebp + 0x401]
push ebx
push eax
mov dword [ebp - 0x10], edi
mov byte [ebp + 0x400], bl
call fcn.1001d760
add esp, 0xc
mov esi, 0x20019
push esi
push 0x10038968
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.1001fa50
test eax, eax
je 0x10001a60
lea ecx, [ebp - 0x58]
call fcn.1000135a
lea ecx, [ebp - 0x4c]
call fcn.1000135a
lea ecx, [ebp - 0x34]
call fcn.1000135a
lea ecx, [ebp - 0x40]
call fcn.1000135a
jmp 0x10001c61
push esi
push 0x10038974
push dword [ebp - 0x40]
lea ecx, [ebp - 0x34]
call fcn.1001fa50
test eax, eax
jne 0x10001a3b
push esi
push 0x10038980
push dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.1001fa50
lea ecx, [ebp - 0x58]
test eax, eax
jne 0x10001a3e
push esi
push dword [ebp - 0x5c]
push dword [ebp - 0x4c]
call fcn.1001fa50
lea ecx, [ebp - 0x58]
test eax, eax
jne 0x10001a3e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x400]
push eax
push 0x1003899c
call fcn.1001fa50
test eax, eax
jne 0x10001a3b
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
push ebx
lea eax, [ebp - 0x25]
push eax
push 0x100389a8
mov byte [ebp - 0x25], bl
call edi
mov esi, eax
cmp esi, ebx
jne 0x10001b17
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xcb
jne 0x10001a3b
lea eax, [ebp + 0x400]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001aee
sub eax, edx
lea edi, [eax + esi + 6]
push 1
push edi
call fcn.1001fa50
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10001b53
cmp dword [ebp - 0x1c], ebx
je 0x10001a3b
jmp 0x10001b45
push 1
push esi
call fcn.1001fa50
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x10001a3b
push esi
push eax
push 0x100389b0
call edi
mov esi, eax
cmp esi, ebx
jne 0x10001ae5
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x10001ae5
push dword [ebp - 0x1c]
call fcn.1001fa50
pop ecx
jmp 0x10001a3b
lea ecx, [ebp + 0x400]
push ecx
push edi
push eax
call fcn.1001fa50
push 0x100389b8
push edi
push dword [ebp - 0x10]
call fcn.1001fa50
add esp, 0x18
cmp esi, ebx
jbe 0x10001b93
push 0x100389c0
push edi
push dword [ebp - 0x10]
call fcn.1001fa50
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x10]
call fcn.1001fa50
add esp, 0x18
push dword [ebp - 0x10]
push 0x100389c4
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
lea ecx, [ebp - 0x58]
call fcn.1000135a
lea ecx, [ebp - 0x4c]
call fcn.1000135a
lea ecx, [ebp - 0x34]
call fcn.1000135a
lea ecx, [ebp - 0x40]
call fcn.1000135a
mov edi, dword [ebp - 0x18]
cmp edi, ebx
je 0x10001bd7
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10001bdb
xor eax, eax
jmp 0x10001bf1
lea esi, [eax + eax]
mov eax, esi
call fcn.1001e000
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.1001fa50
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp]
push ecx
push eax
call fcn.10019b7a
add esp, 0x28
cmp eax, ebx
je 0x10001c21
push 0x1388
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 5
push 0x100389cc
push dword [ebp - 0x5c]
call fcn.1001fa50
add esp, 0xc
test eax, eax
jne 0x10001c45
push dword [ebp - 0x1c]
push str.PATH
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
cmp dword [ebp - 0x1c], ebx
je 0x10001c53
push dword [ebp - 0x1c]
call fcn.1001fa50
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x10001c61
push dword [ebp - 0x10]
call fcn.1001fa50
pop ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x10001c72
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x10001c83
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x20]
call esi
xor eax, eax
lea esp, [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.1001d742
add ebp, 0x804
leave
ret 0x10