Function at 0x101a5040
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x902
push edi
mov dword [ebp - 0x88], 0
mov edx, dword [esi + 4]
mov ecx, dword [esi]
shl edx, 8
cmp edx, 0x900
cmove edx, eax
lea eax, [ebp - 0x88]
push eax
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.101c1c00
mov edi, eax
test edi, edi
js 0x101a531b
mov ecx, dword [esi + 0x10]
push ebx
mov ebx, dword [ebp - 0x88]
mov dword [esi], ebx
mov dword [ecx], 0x10199680
mov eax, dword [esi + 0x10]
mov dword [eax + 4], 0x101a39b0
mov eax, dword [esi + 0x10]
mov dword [eax + 8], 0x101a4fe0
mov eax, dword [ebx + 0x40]
test byte [eax + 2], 0x10
je 0x101a50d1
mov ecx, 0x11000
cmp dword [ebx + 4], ecx
cmovb ecx, dword [ebx + 4]
jmp 0x101a50d6
mov ecx, 0xa
mov dword [esi + 0x14], ecx
xor esi, esi
cmp byte [ebx + 0x24d4], 0
je 0x101a5300
push 0x40
lea eax, [ebp - 0x44]
push eax
push 0x104706f0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x101a5300
push 1
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x88], 1
push eax
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x8c], esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x101a5173
push esi
push esi
push 1
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x101a5173
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x9c], 0xc
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x8c], eax
push 0x48
call fcn.10450898
mov esi, eax
add esp, 4
test esi, esi
je 0x101a52fa
push 0
push 0x80
push 3
push dword [ebp - 0x8c]
mov dword [ebp - 0x90], 0
push 3
push 0xc0000000
push 0x104706d0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 0x8c], ecx
cmp ecx, 0xffffffff
jne 0x101a51e9
push esi
call fcn.10450877
mov esi, dword [ebp - 0x88]
add esp, 4
mov dword [ebx + 0xd5b4], esi
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
movq xmm0, qword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0x3c
mov dword [esi + 0x1c], 0x10000f6
mov dword [esi + 0xc], 0x4e564441
mov dword [esi + 0x10], 0x10002
mov dword [esi + 0x18], 0x4e564458
mov dword [esi + 0x14], 0x3c
movq qword [esi + 0x3c], xmm0
mov dword [esi + 0x44], eax
lea eax, [ebp - 0x90]
push eax
push 0x48
push esi
push 0x48
push esi
push 0x8de0008
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
test eax, eax
je 0x101a52e6
call fcn.10450877
add esp, 4
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x11
mov eax, edi
mov dword [ebx + 0xd5b4], esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
call fcn.10450877
add esp, 4
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x88]
mov dword [ebx + 0xd5b4], esi
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
call fcn.1027e6c0
mov dword [ebp - 0x94], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa4], xmm0
cmp edi, 0x8007000e
je 0x101a5350
cmp edi, 0x80070057
jne 0x101a535a
mov dword [ebp - 0x94], 2
jmp 0x101a535a
mov dword [ebp - 0x94], 1
push eax
lea eax, [ebp - 0xa4]
mov ecx, edi
push eax
call fcn.1027e560
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4