Function at 0x1003e0a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10120460
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [esi + 8]
push eax
call fcn.100244b0
push ecx
mov ecx, esp
call fcn.100447b0
lea ecx, [ebp - 0x14]
call fcn.10044e90
add esp, 4
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
lea ebx, [esi + 0xc]
push eax
mov ecx, ebx
call fcn.100244b0
mov eax, dword [ebx]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x1003e18b
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x1012ec40
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 2
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [esi]
push str.system32drivers_s.sys
push eax
call fcn.10044f30
mov byte [ebp - 4], 3
add esp, 8
mov ecx, dword [ebp - 0x14]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x18]
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.10044c80
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.100244b0
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003e18b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.100267b0
mov ecx, str.___
mov eax, dword [eax]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003e1c6
test dx, dx
je 0x1003e1c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003e1c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1003e1a0
xor eax, eax
jmp 0x1003e1cb
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x18]
test eax, eax
mov ecx, edi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003e1ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1003e1fe
push 4
push 0
mov ecx, ebx
call fcn.10026580
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x1003e220
push 0x104
mov ecx, ebx
call fcn.100249c0
push 0x104
push dword [ebx]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebx]
test eax, eax
jne 0x1003e239
xor ecx, ecx
jmp 0x1003e24f
push dword [eax - 8]
push eax
call fcn.1010374b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1003e423
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x1003e423
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
push 4
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.100267b0
mov esi, eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jge 0x1003e281
or eax, 0xffffffff
jmp 0x1003e29c
push 0x1012ec40
push ecx
call fcn.10103a8d
add esp, 8
test eax, eax
jne 0x1003e298
or eax, 0xffffffff
jmp 0x1003e29c
sub eax, dword [esi]
sar eax, 1
mov edx, dword [ebp - 0x18]
cmp eax, 0xffffffff
mov ecx, edi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003e2bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1003e340
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x1012ec40
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 5
mov esi, esp
mov ecx, dword [ebx]
sub ecx, 0x10
mov dword [ebp - 0x24], esp
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 6
mov esi, esp
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x18]
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.10044c80
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.100244b0
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003e340
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x1012ec40
lea edx, [ebp - 0x14]
call fcn.10026820
mov ecx, esp
mov byte [ebp - 4], 8
push 0x1013ce44
call fcn.10023fc0
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10047d00
add esp, 4
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x1012ec40
call fcn.10026820
mov ecx, esp
mov byte [ebp - 4], 9
push str.SystemRoot_
call fcn.10023fc0
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10047d00
mov ecx, dword [ebp - 0x1c]
add esp, 8
push 0
push ecx
lea ebx, [ecx + 0x14]
mov esi, esp
lea edi, [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
mov edx, ebx
mov ecx, edi
mov dword [esi], eax
call fcn.1002bed0
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 8
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003e3ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1003e40f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.100223c0
int3