Function at 0x4b40a0
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 0x5e574c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x66a074]
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, edx
mov esi, ecx
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x29c], esi
cmp dword [edi + 0x14], 8
mov ecx, edi
mov dword [ebp - 0x29c], esi
jb 0x4b4101
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
mov edx, eax
push 4
push 0x627e9c
push 0
mov dword [ebp - 0x29c], eax
call fcn.004b6de0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4b4147
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x612848
mov word [esi], ax
call fcn.00409060
jmp 0x4b4357
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov dword [ebp - 4], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4b4171
mov eax, dword [edi]
cmp word [eax], 0x25
jne 0x4b42d2
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
mov ecx, edi
push 1
push 0x25
call fcn.004b6980
mov esi, eax
lea eax, [ebp - 0x268]
lea ecx, [esi - 1]
push ecx
push 1
push eax
mov ecx, edi
call fcn.004ad2e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
push 0x104
cmovae eax, dword [ebp - 0x268]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [edi + 0x10]
lea eax, [esi + 2]
mov ecx, edi
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004ad2e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x250], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b4220
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.00409060
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x298]
call fcn.004c7af0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x4b429e
mov ecx, eax
call fcn.00408ff0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x228], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x298]
call fcn.00408ff0
lea ecx, [ebp - 0x250]
call fcn.00408ff0
lea ecx, [ebp - 0x280]
call fcn.00408ff0
lea ecx, [ebp - 0x268]
call fcn.00408ff0
mov esi, dword [ebp - 0x2a0]
jmp 0x4b430a
mov ecx, edi
call fcn.004c7c00
test al, al
je 0x4b42f8
lea eax, [ebp - 0x238]
cmp eax, edi
je 0x4b430a
cmp dword [edi + 0x14], 8
jb 0x4b42ef
mov edi, dword [edi]
push dword [ebp - 0x29c]
push edi
jmp 0x4b42ff
push 0
push 0x612848
lea ecx, [ebp - 0x238]
call fcn.00409060
movups xmm0, xmmword [ebp - 0x238]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x238]
mov dword [esi + 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov word [ebp - 0x238], ax
movq xmm0, qword [ebp - 0x228]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
call fcn.00408ff0
mov eax, esi
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.005b75ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret