Function at 0x1001b989
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007164b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push esi
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x1001bd95
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax]
test eax, eax
je 0x1001bd66
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x80], 0x18f1
cmp dword [ebp - 0x80], 0x445
jge 0x1001bbc7
lea eax, [ebp - 0x24]
push eax
push 0x1000b200
call fcn.1005856b
pop ecx
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0xcc]
call fcn.10011f61
and dword [ebp - 4], 0
push dword [ebp - 0x24]
lea ecx, [ebp - 0x44]
call fcn.1003eca3
mov byte [ebp - 4], 1
and dword [ebp - 0x28], 0
jmp 0x1001ba83
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jge 0x1001baa8
push dword [ebp - 0x28]
lea ecx, [ebp - 0xcc]
call fcn.10011fc8
push eax
push 0x1000b200
call fcn.1005856b
pop ecx
pop ecx
jmp 0x1001ba7c
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x14], eax
jmp 0x1001babc
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x1001bb14
cmp dword [ebp - 0x20], 0
jle 0x1001baee
push dword [ebp - 0x14]
lea ecx, [ebp - 0xcc]
call fcn.10011fc8
mov ecx, dword [ebp - 0x20]
sub ecx, dword [eax]
mov dword [ebp - 0x20], ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.1003ecf5
mov byte [eax], 0x2d
jmp 0x1001bb12
push dword [ebp - 0x14]
lea ecx, [ebp - 0xcc]
call fcn.10011fc8
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.1003ecf5
mov byte [eax], 0x2b
jmp 0x1001bab5
cmp dword [ebp - 0x20], 0
jge 0x1001bb75
and dword [ebp - 0x1c], 0
jmp 0x1001bb27
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jge 0x1001bb75
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
call fcn.1003ecf5
movsx eax, byte [eax]
cmp eax, 0x2b
jne 0x1001bb52
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
call fcn.1003ecf5
mov byte [eax], 0x2d
jmp 0x1001bb73
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
call fcn.1003ecf5
movsx eax, byte [eax]
cmp eax, 0x2d
jne 0x1001bb73
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
call fcn.1003ecf5
mov byte [eax], 0x2b
jmp 0x1001bb20
and dword [ebp - 0x2c], 0
jmp 0x1001bb82
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x24]
jge 0x1001bba1
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.1003ecf5
movsx eax, byte [eax]
push eax
call fcn.10059912
pop ecx
jmp 0x1001bb7b
push 0x1000b169
call fcn.10058e86
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10011fee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.10011fee
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x1001bd45
mov eax, 0x96e6a373
test eax, eax
je 0x1001bc35
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x1001bc35
and dword [ebp - 0x4c], 0
jmp 0x1001bc3c
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jle 0x1001bc55
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x1001bc55
mov dword [ebp - 0x68], 1
jmp 0x1001bc59
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
inc eax
inc eax
je 0x1001bc70
push 6
pop eax
test eax, eax
je 0x1001bc70
mov dword [ebp - 0x34], 1
jmp 0x1001bc74
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax]
je 0x1001bc8c
mov dword [ebp - 0x64], 1
jmp 0x1001bc90
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
dec eax
jne 0x1001bca4
mov eax, dword [ebp - 0x54]
cmp dword [eax], 0
jne 0x1001bca4
and dword [ebp - 0x5c], 0
jmp 0x1001bcab
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x5c]
jl 0x1001bcbc
mov dword [ebp - 0x30], 1
jmp 0x1001bcc0
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
cmp dword [ebp - 0x30], 0x96e6
jle 0x1001bce2
mov dword [ebp - 0x38], 1
jmp 0x1001bce6
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x84]
mov dword [eax], 0x164c
cmp dword [ebp - 0x38], 0x164c
jle 0x1001bd04
mov dword [ebp - 0x48], 1
jmp 0x1001bd08
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0xffffffff
jne 0x1001bd17
mov dword [ebp - 0x50], 1
jmp 0x1001bd1b
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
jle 0x1001bd2e
mov dword [ebp - 0x58], 1
jmp 0x1001bd32
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
cmp dword [ebp - 0x58], eax
jge 0x1001bd45
and dword [ebp - 0x60], 0
jmp 0x1001bd4c
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
imul esi, dword [ebp - 0x60]
push 2
mov ecx, dword [ebp - 0x94]
call fcn.10011fc8
mov dword [eax], esi
jmp 0x1001bd93
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
movzx eax, byte [eax]
test eax, eax
je 0x1001bd93
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1001bdd4
lea eax, [ebp + 0x20]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
movzx eax, byte [eax]
test eax, eax
je 0x1001bdb3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x1001bdd4
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x1001bdd4
push 0x22f8
push 0x2505
push 0x1569
call dword [sym.imp.USER32.dll_SetClassLongA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret