Function at 0x468480
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf588
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebx + 8]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push dword [ebx + 0x10]
lea esi, [ebp - 0x3c]
mov dword [ebp - 4], 0
push esi
lea esi, [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push esi
push eax
call fcn.00468360
add esp, 0x10
test al, al
jne 0x46854f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x4685a4
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x46854b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468917
push edx
push ecx
jmp 0x46859c
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
cmp eax, 1
je 0x46855f
cmp eax, 2
jne 0x46856c
mov ecx, dword [ebp - 0x34]
sub ecx, esi
mov dword [ebp - 0x60], ecx
test cl, 1
je 0x4685d1
mov dword [ebp - 0x5c], 0xd
test esi, esi
je 0x4685a4
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x46859a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468917
push ecx
push esi
call fcn.00479e95
add esp, 8
mov esi, dword [ebp - 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, ecx
mov byte [ebp - 4], 1
shr eax, 1
jne 0x4685fb
xor edx, edx
mov dword [ebp - 0x1c], eax
mov word [ebp + eax*2 - 0x2c], dx
jmp 0x468609
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00419430
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x468629
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push esi
push eax
call fcn.00491db0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], ecx
test eax, eax
je 0x46869f
mov edx, eax
mov edi, ecx
xor ecx, ecx
test edx, edx
je 0x468667
mov eax, edi
movzx eax, word [eax]
test ax, ax
je 0x468662
nop
cmp edx, 1
je 0x468664
movzx eax, word [edi + 2]
add edi, 2
dec edx
test ax, ax
jne 0x468650
mov ecx, edi
mov eax, dword [ebp - 0x1c]
test ecx, ecx
je 0x46869c
sub ecx, dword [ebp - 0x60]
sar ecx, 1
cmp ecx, 0xffffffff
je 0x46869c
cmp ecx, eax
ja 0x46868f
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x46869c
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00419430
mov edi, dword [ebp - 0x58]
cmp dword [ebp - 0x3c], 2
jne 0x46884b
xor edx, edx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
mov word [ebp - 0x54], cx
mov byte [ebp - 4], 2
cmp eax, 8
lea ecx, [ebp - 0x54]
push edx
cmovae ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x44]
cmp eax, ecx
jbe 0x4686fa
sub eax, ecx
lea ecx, [ebp - 0x54]
push 0
push eax
call fcn.00419430
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
jmp 0x4686c0
test eax, eax
jne 0x4687db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x5c], eax
cmp edx, 8
jb 0x468745
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46873b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46891c
push edx
push ecx
call fcn.00479e95
add esp, 8
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
cmp edx, 8
jb 0x468793
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468789
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46891c
push edx
push ecx
call fcn.00479e95
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
test esi, esi
je 0x4685a4
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x46859a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46891c
jmp 0x46859a
lea edx, [eax - 1]
cmp edx, ecx
ja 0x4687f8
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
mov dword [ebp - 0x44], edx
cmovae eax, dword [ebp - 0x54]
xor ecx, ecx
mov word [eax + edx*2], cx
jmp 0x468805
sub edx, ecx
lea ecx, [ebp - 0x54]
push 0
push edx
call fcn.00419430
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00417c60
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x46884b
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468841
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46891c
push edx
push ecx
call fcn.00479e95
add esp, 8
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x46889e
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x46888b
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x468881
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468917
mov eax, edx
push ecx
push eax
call fcn.00479e95
add esp, 8
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
jmp 0x4688d4
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4688d4
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4688ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468917
push edx
push ecx
call fcn.00479e95
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
test esi, esi
je 0x4685a4
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x46859a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46859a
call fcn.0049b19a
call fcn.0049b19a
int3