Function at 0x1002abf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082e40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
cmp dword [0x100b0f7c], 0
jne 0x1002ac30
xor ecx, ecx
call fcn.10029900
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jl 0x1002adf5
push 0x10092914
push eax
call fcn.1006bdbf
mov edi, eax
add esp, 8
test edi, edi
je 0x1002adf5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
je 0x1002adf5
lea esi, [edi + 2]
test esi, esi
js 0x1002adf5
cmp esi, dword [eax - 0xc]
jg 0x1002adf5
lea eax, [eax + esi*2]
push 0x10092914
push eax
call fcn.1006bdbf
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1002adf5
mov ecx, dword [ebp - 0x10]
sub ebx, dword [ecx]
sar ebx, 1
cmp ebx, 0xffffffff
je 0x1002adf5
sub ebx, edi
lea eax, [ebx - 2]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.10029480
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
je 0x1002add4
push 0x1008fa88
lea ecx, [ebp - 0x14]
call fcn.10022bb0
mov byte [ebp - 4], 1
mov edx, 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x514
or ecx, edx
jge 0x1002ad02
push 0x514
lea ecx, [ebp - 0x14]
call fcn.10023670
mov eax, dword [ebp - 0x14]
push 0x514
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ecx - 8]
push ecx
call fcn.1006b17d
mov edx, eax
add esp, 8
test edx, edx
js 0x1002aeae
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x1002aeae
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x1c], ecx
je 0x1002adb7
cmp dword [eax - 0xc], ecx
je 0x1002adb7
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + 2]
push eax
push edi
call fcn.10022cf0
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.10028e70
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ad8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
mov eax, dword [ebp - 0x10]
test ecx, ecx
jg 0x1002ac30
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1002ac2d
lea edx, [eax - 0x10]
mov byte [ebp - 4], cl
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002add4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002adf5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x1002ae63
push 0x25
push eax
call fcn.1006ade1
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1002ae63
sub ebx, dword [edi]
sar ebx, 1
cmp ebx, 0xffffffff
je 0x1002ae63
xor edi, edi
mov esi, 0x100af330
mov edx, dword [esi]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x1c], ecx
jmp 0x1002ae30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002ae30
mov ecx, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
sar eax, 1
push eax
mov ecx, dword [ecx]
push edx
lea eax, [ecx + ebx*2]
push eax
call fcn.1006b9f1
add esp, 0xc
test eax, eax
je 0x1002ae75
add esi, 0x10
inc edi
cmp esi, 0x100af590
jl 0x1002ae21
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
shl edi, 4
mov ecx, dword [edi + 0x100af330]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ae81
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.10022cf0
push dword [edi + 0x100af33c]
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.10028e70
jmp 0x1002ac2d
push 0x80070057
call fcn.10021340
int3