Function at 0x4061c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4418a7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x45c054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x8010
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040a3c0
mov edx, eax
mov dword [ebp - 0x18], 0x4000
xor eax, eax
mov dword [ebp - 0x14], 0x4007
mov ecx, 0x2000
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x8000], ax
add esp, 4
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x406271
mov esi, dword [esi]
push dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovb esi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c], 0
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea ecx, [ecx + esi*2]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
xor eax, eax
mov word [ebp - 0x40], ax
cmp esi, ecx
je 0x4062d5
sub ecx, esi
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.004099b0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406313
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406309
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406450
push edx
push ecx
call fcn.00422558
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 7
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 8
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, esi
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x28]
cmovae ecx, esi
cmp ecx, eax
je 0x40638d
nop dword [eax]
cmp word [ecx], 0
je 0x40638d
add ecx, 2
cmp ecx, eax
jne 0x406380
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
mov esi, dword [ebp - 0x48]
xor edx, edx
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], dx
cmp eax, ecx
je 0x4063c3
sub ecx, eax
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004099b0
mov eax, 2
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x44], eax
and eax, 0xfffffffd
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 1
or eax, 1
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40641f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406415
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406450
push edx
push ecx
call fcn.00422558
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, esi
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.0042254a
mov esp, ebp
pop ebp
ret
call fcn.0042702f
int3