Function at 0x4d3050
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 0x695229
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x300
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x2e0], ecx
lea ecx, [ebp - 0x238]
push eax
mov dword [ebp - 0x2a4], 0
call fcn.00414330
mov dword [ebp - 4], 0
lea edx, [ebp - 0x238]
xor esi, esi
mov dword [ebp - 0x2ac], 7
xor edi, edi
mov dword [ebp - 0x2c4], esi
cmp dword [ebp - 0x224], 8
mov dword [ebp - 0x2b0], esi
cmovae edx, dword [ebp - 0x238]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x2c0], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x2a4], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d3100
sub ecx, dword [ebp - 0x2a4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c0]
call fcn.00405b20
cmp dword [ebp - 0x2b0], esi
jne 0x4d3134
mov byte [ebp - 0x299], 0
jmp 0x4d31c6
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
push 0x25
cmovae eax, dword [ebp - 0x2c0]
push eax
call fcn.0064d453
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d3161
mov byte [ebp - 0x299], al
jmp 0x4d31c6
lea eax, [esi + 2]
push 0x25
push eax
call fcn.0064d453
add esp, 8
mov dword [ebp - 0x2a4], eax
test eax, eax
jne 0x4d3183
mov byte [ebp - 0x299], al
xor esi, esi
jmp 0x4d31c6
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
mov edi, dword [ebp - 0x2a4]
cmovae eax, dword [ebp - 0x2c0]
sub esi, eax
mov byte [ebp - 0x299], 1
sar esi, 1
lea eax, [ebp - 0x2c0]
cmp dword [ebp - 0x2ac], 8
mov dword [ebp - 0x2c4], esi
cmovae eax, dword [ebp - 0x2c0]
sub edi, eax
sar edi, 1
lea ecx, [ebp - 0x2c0]
call fcn.00405ac0
cmp byte [ebp - 0x299], 0
je 0x4d3563
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x238]
call fcn.0043fc80
mov esi, eax
lea eax, [ebp - 0x280]
cmp eax, esi
je 0x4d3296
mov ecx, eax
call fcn.00405ac0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x280], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x270], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x2c0]
call fcn.00405ac0
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x238]
call fcn.0043fc80
mov esi, eax
lea eax, [ebp - 0x268]
cmp eax, esi
je 0x4d32f6
mov ecx, eax
call fcn.00405ac0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x268], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x258], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x2c0]
call fcn.00405ac0
mov eax, dword [ebp - 0x2c4]
lea ecx, [ebp - 0x238]
sub edi, eax
inc eax
dec edi
push edi
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.0043fc80
mov esi, eax
lea eax, [ebp - 0x250]
cmp eax, esi
je 0x4d335c
mov ecx, eax
call fcn.00405ac0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x240], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x2c0]
call fcn.00405ac0
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x220]
push 0x104
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4d3533
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d33a0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x298]
call fcn.00405b20
mov byte [ebp - 4], 5
lea edx, [ebp - 0x280]
xor eax, eax
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2dc], ax
lea ecx, [ebp - 0x2f8]
lea eax, [ebp - 0x298]
mov dword [ebp - 0x2c8], 7
push eax
mov dword [ebp - 0x2a4], 1
call fcn.004e05c0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2dc]
cmp eax, esi
je 0x4d3445
mov ecx, eax
call fcn.00405ac0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2dc], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x2cc], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x2f8]
call fcn.00405ac0
lea eax, [ebp - 0x268]
push eax
lea edx, [ebp - 0x2dc]
lea ecx, [ebp - 0x310]
call fcn.004e05c0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2dc]
cmp eax, esi
je 0x4d34b9
mov ecx, eax
call fcn.00405ac0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2b8], xmm0
movups xmmword [ebp - 0x2dc], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x2a8], xmm0
movq qword [ebp - 0x2cc], xmm0
mov word [esi], ax
jmp 0x4d34d7
movq xmm0, qword [ebp - 0x2cc]
movq qword [ebp - 0x2a8], xmm0
movups xmm0, xmmword [ebp - 0x2dc]
movups xmmword [ebp - 0x2b8], xmm0
lea ecx, [ebp - 0x310]
call fcn.00405ac0
lea ecx, [ebp - 0x238]
call fcn.00405ac0
movups xmm0, xmmword [ebp - 0x2b8]
xor eax, eax
mov dword [ebp - 0x2cc], 0
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2c8], 7
movups xmmword [ebp - 0x238], xmm0
mov word [ebp - 0x2dc], ax
movq xmm0, qword [ebp - 0x2a8]
movq qword [ebp - 0x228], xmm0
call fcn.00405ac0
lea ecx, [ebp - 0x298]
call fcn.00405ac0
lea ecx, [ebp - 0x250]
call fcn.00405ac0
lea ecx, [ebp - 0x268]
call fcn.00405ac0
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0
call fcn.00405ac0
mov ecx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x238]
cmp ecx, eax
je 0x4d358d
cmp dword [ebp - 0x224], 8
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.00405b20
lea ecx, [ebp - 0x238]
call fcn.00405ac0
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.00634bf3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8