Function at 0x4273c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, edx
mov edi, dword [ebp + 8]
mov eax, dword [0x49503c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x104
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x427581
push str.MicrosoftWindowsStart_MenuPrograms_
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x427581
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], 0
mov ebx, dword [esi + 0x10]
lea ecx, [ebx + 4]
mov eax, 7
cmp ecx, 7
je 0x4275bb
cmp ecx, 8
jb 0x42748e
cmp ecx, 0x7fffffff
jae 0x4275c5
or ecx, 7
cmp ecx, 0xa
mov ebx, 0xa
cmova ebx, ecx
mov eax, SysReAllocString
cmp ebx, eax
cmovae ebx, eax
lea eax, [ebx + ebx]
add eax, 2
cmp eax, 0x1000
jae 0x427593
push eax
call fcn.0044fbd0
add esp, 4
mov dword [ebp - 0x14], ebx
movzx ecx, word [ebp - 0x28]
mov word [eax], cx
mov dword [ebp - 0x28], eax
mov ebx, dword [esi + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
cmp dword [esi + 0x14], 7
jbe 0x427496
mov esi, dword [esi]
cmp eax, ebx
jb 0x4274c3
mov dword [ebp - 0x18], ebx
cmp eax, 7
jbe 0x4274a7
mov edi, dword [ebp - 0x28]
jmp 0x4274aa
lea edi, [ebp - 0x28]
lea eax, [ebx + ebx]
push eax
push esi
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [edi + ebx*2], 0
mov edi, dword [ebp + 8]
jmp 0x4274e0
sub esp, 0x10
mov al, byte [ebp - 0x2c]
mov byte [esp + 4], al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], ebx
lea ecx, [ebp - 0x28]
call fcn.004520d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
sub edx, eax
cmp edx, 4
jb 0x42751a
lea edx, [eax + 4]
mov dword [ebp - 0x18], edx
cmp ecx, 7
jbe 0x4274ff
mov ecx, dword [ebp - 0x28]
jmp 0x427502
lea ecx, [ebp - 0x28]
mov dword [ecx + eax*2 + 4], 0x6b006e
mov dword [ecx + eax*2], 0x6c002e
mov word [ecx + eax*2 + 8], 0
jmp 0x427540
sub esp, 0x10
mov al, byte [ebp - 0x2c]
mov byte [esp + 4], al
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 8], str..lnk
lea ecx, [ebp - 0x28]
call fcn.004520d0
cmp dword [ebp - 0x14], 7
jbe 0x42754b
mov eax, dword [ebp - 0x28]
jmp 0x42754e
lea eax, [ebp - 0x28]
push eax
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x427581
mov eax, dword [ebp - 0x28]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x4275ca
push edx
push eax
call fcn.0044fbc2
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004503b0
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebx + ebx]
add ecx, 0x25
xor edx, edx
dec edx
cmp eax, 0xffffffdd
cmovb edx, ecx
push edx
call fcn.0044fbd0
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x427474
mov ebx, 3
jmp 0x42748e
call fcn.00452200
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x4275e2
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x427577
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3