Function at 0x10095150
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10188a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x101dd594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x44c], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10150460
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xorps xmm0, xmm0
mov dword [ebp - 0x424], 0
movups xmmword [ebp - 0x434], xmm0
push 8
movups xmmword [ebp - 0x434], xmm0
mov dword [ebp - 0x424], 0
call fcn.10127dee
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x434]
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x434]
mov dword [eax], ecx
mov byte [ebp - 4], 1
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x10095719
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
shr eax, 0x10
mov dword [ebp - 0x444], eax
test eax, eax
jne 0x10095265
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x43c]
push eax
mov dword [ebp - 0x438], eax
call fcn.100183a0
jmp 0x100952a1
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10095270
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.10020080
lea eax, [ebp - 0x218]
movzx eax, ax
mov dword [ebp - 0x438], eax
push 0x1019bf30
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.10096800
mov edx, dword [ebp - 0x43c]
or esi, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100952f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x424], 2
je 0x100953ad
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x10095723
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
cmp dword [ebp - 0x444], 0
mov byte [ebp - 4], 4
jne 0x10095334
push dword [ebp - 0x438]
mov ecx, edi
call fcn.100183a0
jmp 0x1009535e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10095340
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10020080
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 5
call fcn.1009a720
push 8
push dword [ebp - 0x434]
call fcn.10127e1e
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x434], 0
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x100953a6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x100956fe
mov ecx, dword [ebp - 0x434]
xor eax, eax
test ecx, ecx
je 0x100953c1
mov ecx, dword [ecx]
test ecx, ecx
je 0x100953c1
mov eax, dword [ecx]
test eax, eax
je 0x100953d5
mov eax, dword [eax]
test eax, eax
je 0x100953d5
mov eax, dword [eax]
test eax, eax
je 0x100953d5
mov esi, dword [eax]
jmp 0x100953d7
xor esi, esi
mov ecx, dword [ebp - 0x428]
mov eax, ecx
mov edx, dword [esi + 8]
and ecx, 3
shr eax, 2
dec edx
and edx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + ecx*4]
sub eax, 0x10
push eax
call fcn.1001d450
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x450], edi
mov eax, dword [ebp - 0x434]
xor ecx, ecx
mov byte [ebp - 4], 6
test eax, eax
je 0x10095421
mov eax, dword [eax]
test eax, eax
je 0x10095421
mov ecx, dword [eax]
mov esi, dword [ebp - 0x428]
xor eax, eax
inc esi
test ecx, ecx
je 0x10095436
mov ecx, dword [ecx]
test ecx, ecx
je 0x10095436
mov eax, dword [ecx]
test eax, eax
jne 0x1009543e
xor edx, edx
jmp 0x10095440
mov edx, dword [eax]
mov ecx, dword [edx + 8]
mov eax, esi
shr eax, 2
dec ecx
and ecx, eax
and esi, 3
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
push dword [eax + esi*4]
call fcn.10158a10
cdq
add esp, 4
mov esi, eax
xor esi, edx
sub esi, edx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x208
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10150460
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push esi
mov esi, dword [ebp - 0x438]
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
test esi, esi
je 0x100954ae
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x1009572d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 7
shr eax, 0x10
mov dword [ebp - 0x448], eax
test eax, eax
jne 0x10095501
lea eax, [ebp - 0x420]
movzx eax, ax
lea ecx, [ebp - 0x438]
push eax
mov dword [ebp - 0x43c], eax
call fcn.100183a0
jmp 0x10095541
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10095510
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.10020080
lea eax, [ebp - 0x420]
movzx eax, ax
mov dword [ebp - 0x43c], eax
mov esi, dword [ebp - 0x438]
mov byte [ebp - 4], 8
cmp dword [esi - 0xc], 0
jne 0x10095609
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x10095737
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, dword [ebp - 0x440]
add eax, 0x10
mov dword [edx], eax
cmp dword [ebp - 0x444], 0
mov byte [ebp - 4], 9
jne 0x10095596
lea eax, [ebp - 0x218]
mov ecx, edx
movzx eax, ax
push eax
call fcn.100183a0
jmp 0x100955c7
lea ecx, [ebp - 0x218]
lea eax, [ecx + 2]
mov dword [ebp - 0x444], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100955a5
sub ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.10020080
lea edx, [esi - 0x10]
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100955e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10095600
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
jmp 0x100956b4
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x10095741
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, dword [ebp - 0x440]
add eax, 0x10
mov dword [edx], eax
cmp dword [ebp - 0x448], 0
mov byte [ebp - 4], 0xb
jne 0x10095646
push dword [ebp - 0x43c]
mov ecx, edx
call fcn.100183a0
jmp 0x10095677
lea ecx, [ebp - 0x420]
lea eax, [ecx + 2]
mov dword [ebp - 0x448], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10095655
sub ecx, dword [ebp - 0x448]
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.10020080
lea edx, [esi - 0x10]
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10095695
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100956b0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x434]
call fcn.1009a720
push 8
push dword [ebp - 0x434]
call fcn.10127e1e
mov edx, dword [ebp + 0xc]
add esp, 8
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x434], 0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100956f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10128191
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
int3