Function at 0x101bf930
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x148]
sub esp, 0x148
push 0xffffffffffffffff
push 0x10201add
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10252964]
xor eax, ebp
mov dword [ebp + 0x144], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push pe_nt_image_headers32
lea eax, [ebp + 0x44]
push eax
push 0x1005ebd4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x101bfb50
lea ecx, [ebp + 0x44]
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0xf
lea edx, [ecx + 1]
mov byte [ebp + 0x2c], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101bf9a0
sub ecx, edx
lea eax, [ebp + 0x44]
push ecx
push eax
lea ecx, [ebp + 0x2c]
call fcn.1007e870
cmp dword [ebp + 0x40], 0x10
lea eax, [ebp + 0x2c]
mov ebx, dword [ebp + 0x2c]
cmovae eax, ebx
mov dword [ebp - 4], 0
cmp dword [ebp + 0x3c], 9
mov dword [ebp - 0x10], eax
jb 0x101bfb13
mov edi, eax
nop dword [eax]
cmp byte [edi], 0x43
jne 0x101bfa35
mov ecx, edi
mov edx, 0x1005ea00
mov esi, 5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x101bfa02
add ecx, 4
add edx, 4
sub esi, 4
jae 0x101bf9f1
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x101bfa29
cmp esi, 0xfffffffd
je 0x101bfa25
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x101bfa29
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x101bfa29
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x101bfa29
xor eax, eax
jmp 0x101bfa2e
sbb eax, eax
or eax, 1
test eax, eax
je 0x101bfa40
mov eax, dword [ebp - 0x10]
cmp edi, eax
je 0x101bfb13
dec edi
jmp 0x101bf9e0
sub edi, dword [ebp - 0x10]
jne 0x101bfb13
lea eax, [ebp]
push eax
call fcn.101bce90
add esp, 4
cmp byte [ebp + 0x1c], 0
je 0x101bfad9
cmp byte [ebp], 0
mov byte [ebp + 0x1c], 0
je 0x101bfa94
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x101bfa7e
inc eax
lea ecx, [ebp + 4]
push eax
push dword [ebp + 4]
call fcn.1007ea90
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0xf
mov byte [ebp + 4], 0
mov byte [ebp], 0
mov eax, dword [ebp + 0x40]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x101bfad5
lea ecx, [eax + 1]
mov eax, ebx
mov dword [ebp - 4], 2
cmp ecx, 0x1000
jb 0x101bfacb
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101bfb75
push ecx
push ebx
call fcn.101c1346
add esp, 8
mov al, 1
jmp 0x101bfb52
cmp byte [ebp], 0
je 0x101bfb13
mov edx, dword [ebp + 0x18]
cmp edx, 0x10
jb 0x101bfb13
mov ecx, dword [ebp + 4]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x101bfb09
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101bfb7a
push edx
push ecx
call fcn.101c1346
add esp, 8
mov eax, dword [ebp + 0x40]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x101bfb50
lea ecx, [eax + 1]
mov eax, ebx
mov dword [ebp - 4], 4
cmp ecx, 0x1000
jb 0x101bfb46
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101bfb7f
push ecx
push ebx
call fcn.101c1346
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x144]
xor ecx, ebp
call fcn.101c1860
lea esp, [ebp + 0x148]
pop ebp
ret
call fcn.100f24b4
call fcn.100f24b4
call fcn.100f24b4
int3