Function at 0x100db120
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x614
call fcn.101b79b0
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x610], eax
mov eax, dword [esp + 0x61c]
push ebx
push ebp
mov ebp, dword [esp + 0x620]
xor ebx, ebx
xor ecx, ecx
push esi
xor esi, esi
cmp edi, ebx
sete cl
mov dword [esp + 0x14], eax
mov dword [0x1028325c], ebx
mov dword [esp + 0x10], ebx
mov dword [0x10283250], ebx
mov dword [esp + 0x18], ecx
call fcn.100db0b0
cmp edi, ebx
mov dword [0x10283250], 1
jne 0x100db1a4
cmp dword [0x1028324c], ebx
je 0x100db1a4
mov eax, dword [0x102832e0]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x10283248], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp dword [0x1028324c], ebx
mov dword [0x10283250], 2
mov byte [esp + 0x1c], bl
je 0x100db2c7
push ebx
push ebx
push 0x10204f0c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
push ebx
je 0x100db278
lea edx, [esp + 0x10]
push edx
push 0x1ff
lea eax, [esp + 0x228]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x100db358
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x100db22f
cmp word [esp + eax*2 + 0x218], 0xd
jne 0x100db22f
mov ecx, 0xa
cmp word [esp + eax*2 + 0x21a], cx
jne 0x100db22f
mov word [esp + eax*2 + 0x218], cx
sub eax, 1
mov dword [esp + 0xc], eax
push ebx
push ebx
push 0x200
lea ecx, [esp + 0x28]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x230]
push edx
push ebx
push 0xfde9
mov word [esp + eax*2 + 0x23c], bx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x100db261
lea esi, [esp + 0x1c]
lea eax, [esp + 0x21c]
push 0x400
push eax
call fcn.100f9f20
add esp, 8
jmp 0x100db2e1
lea ecx, [esp + 0x10]
push ecx
push 0x1ff
lea edx, [esp + 0x28]
push edx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x100db358
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x100db2c1
cmp byte [esp + eax + 0x1a], 0xd
jne 0x100db2c1
cmp byte [esp + eax + 0x1b], 0xa
jne 0x100db2c1
mov byte [esp + eax + 0x1a], 0xa
sub eax, 1
mov dword [esp + 0xc], eax
mov byte [esp + eax + 0x1c], bl
jmp 0x100db2e5
mov eax, dword [0x10283258]
push eax
lea ecx, [esp + 0x20]
push 0x1ff
push ecx
call fcn.101b807b
add esp, 0xc
mov esi, eax
cmp esi, ebx
je 0x100db358
mov edx, dword [0x10283258]
push edx
call fcn.101b68f3
add esp, 4
test eax, eax
jne 0x100db358
mov eax, dword [0x10283258]
push eax
call fcn.101b6927
add esp, 4
test eax, eax
jne 0x100db358
lea ecx, [esp + 0x1c]
push 0xa
push ecx
call fcn.101b5310
add esp, 8
cmp eax, ebx
je 0x100db32a
cmp dword [esp + 0x62c], ebx
je 0x100db339
mov byte [eax], bl
jmp 0x100db339
mov esi, dword [0x10283258]
call fcn.100daee0
test eax, eax
je 0x100db358
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
call fcn.100dae50
add esp, 0xc
test eax, eax
jl 0x100db358
mov dword [esp + 0x10], 1
mov ecx, dword [0x1028325c]
cmp ecx, 2
jne 0x100db36b
mov dword [esp + 0x10], 0xffffffff
cmp dword [esp + 0x18], ebx
je 0x100db385
mov edx, dword [0x10283254]
push 0x10262d7c
push edx
call fcn.101baaf1
add esp, 8
cmp dword [0x10283250], 2
jl 0x100db3b4
cmp edi, ebx
jne 0x100db3b4
cmp dword [0x1028324c], ebx
je 0x100db3b4
mov eax, dword [0x102832e0]
push eax
push 0xfffffffffffffff6
mov dword [0x10283248], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp dword [0x10283250], 1
pop esi
pop ebp
pop ebx
jl 0x100db3c5
call fcn.100db020
lea eax, [esp + 0x10]
push 0x200
push eax
call fcn.100f9f20
mov ecx, dword [esp + 0x618]
mov eax, dword [esp + 0xc]
add esp, 8
xor ecx, esp
call fcn.101b40e2
add esp, 0x614
ret