Function at 0x1018b820
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x148]
sub esp, 0x148
push 0xffffffffffffffff
push 0x101cd98d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1021e964]
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 0x1002abd4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1018ba40
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 0x1018b890
sub ecx, edx
lea eax, [ebp + 0x44]
push ecx
push eax
lea ecx, [ebp + 0x2c]
call fcn.1004a870
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 0x1018ba03
mov edi, eax
nop dword [eax]
cmp byte [edi], 0x43
jne 0x1018b925
mov ecx, edi
mov edx, 0x1002aa00
mov esi, 5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1018b8f2
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1018b8e1
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1018b919
cmp esi, 0xfffffffd
je 0x1018b915
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1018b919
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1018b919
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1018b919
xor eax, eax
jmp 0x1018b91e
sbb eax, eax
or eax, 1
test eax, eax
je 0x1018b930
mov eax, dword [ebp - 0x10]
cmp edi, eax
je 0x1018ba03
dec edi
jmp 0x1018b8d0
sub edi, dword [ebp - 0x10]
jne 0x1018ba03
lea eax, [ebp]
push eax
call fcn.10188d80
add esp, 4
cmp byte [ebp + 0x1c], 0
je 0x1018b9c9
cmp byte [ebp], 0
mov byte [ebp + 0x1c], 0
je 0x1018b984
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x1018b96e
inc eax
lea ecx, [ebp + 4]
push eax
push dword [ebp + 4]
call fcn.1004aa90
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 0x1018b9c5
lea ecx, [eax + 1]
mov eax, ebx
mov dword [ebp - 4], 2
cmp ecx, 0x1000
jb 0x1018b9bb
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1018ba65
push ecx
push ebx
call fcn.1018d246
add esp, 8
mov al, 1
jmp 0x1018ba42
cmp byte [ebp], 0
je 0x1018ba03
mov edx, dword [ebp + 0x18]
cmp edx, 0x10
jb 0x1018ba03
mov ecx, dword [ebp + 4]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x1018b9f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1018ba6a
push edx
push ecx
call fcn.1018d246
add esp, 8
mov eax, dword [ebp + 0x40]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x1018ba40
lea ecx, [eax + 1]
mov eax, ebx
mov dword [ebp - 4], 4
cmp ecx, 0x1000
jb 0x1018ba36
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1018ba6f
push ecx
push ebx
call fcn.1018d246
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.1018d760
lea esp, [ebp + 0x148]
pop ebp
ret
call fcn.100be3b4
call fcn.100be3b4
call fcn.100be3b4
int3