Function at 0x424cf0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4491c0
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4a0cb8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
mov dword [ebp - 0x230], ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x424ef3
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0x208
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0
push esi
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x424e83
mov ecx, dword [ebp - 0x228]
cmp ecx, 1
jne 0x424e99
mov dword [ebp - 4], 0
cmp dword [ebp - 0x228], 2
je 0x424ea7
cmp eax, 0xea
je 0x453244
mov edx, dword [ebp - 0x224]
mov ecx, edx
shr ecx, 1
cmp ecx, dword [ebx + 8]
ja 0x453277
shr edx, 1
mov eax, dword [ebx + 4]
mov ebx, 0
je 0x453293
test ebx, ebx
js 0x4532aa
xor ebx, ebx
test edx, edx
je 0x45329d
mov esi, SysReAllocString
lea edi, [ebp - 0x220]
sub esi, edx
sub edi, eax
lea ecx, [esi + edx]
test ecx, ecx
je 0x424e10
movzx ecx, word [edi + eax]
test cx, cx
je 0x424e10
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x424df0
jmp 0x45329d
test edx, edx
je 0x45329d
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp + 4]
test ebx, ebx
js 0x4532b7
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x4532c7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
shr eax, 1
mov dword [ebp - 0x224], eax
je 0x4532f5
dec eax
push eax
mov ecx, ebx
call fcn.00424f02
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043b590
mov esp, ebp
pop ebp
ret 8
cmp eax, 0xea
je 0x424d7e
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x424e65
cmp ecx, 2
je 0x424d8d
jmp 0x453208
cmp eax, 0xea
je 0x453216
push 0x104
mov ecx, ebx
call fcn.0042e5c5
push 0x104
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x224], eax
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x45322d
add eax, eax
mov dword [ebp - 0x224], eax
jmp 0x424e2e
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x424e65
cmp ecx, 7
je 0x424d8d
jmp 0x424e8e
mov ecx, dword [ebp + 4]
mov edx, 0x2e7
push 0xce
push 0x40a4c8
call fcn.00466213
mov ecx, dword [ebp + 4]
mov edx, 0x2ed
push 0xce
push 0x40a4c8
call fcn.00466213
mov eax, dword [ebp - 0x224]
mov ecx, ebx
shr eax, 1
push eax
call fcn.0042e5c5
lea ecx, [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push esi
push dword [edi + 0x9c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
jmp 0x424e34
mov eax, dword [ebx]
push ecx
mov esi, dword [eax]
mov ecx, esi
call dword [0x4a3670]
mov ecx, ebx
call esi
mov edx, dword [ebp - 0x224]
jmp 0x424dbf
mov ebx, 0x80070057
jmp 0x424dcf
sub eax, 2
mov ebx, 0x8007007a
jmp 0x424e18
test edx, edx
je 0x424e1d
jmp 0x424e18
push ebx
push 0x40a4c8
mov edx, 0x2fc
call fcn.0043f81b
mov ecx, dword [ebp + 4]
mov edx, 0x301
push eax
push 0x40a4c8
call fcn.00466213
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + 0x10]
call fcn.0046f46d
mov eax, 0x4532ee
ret
xor eax, eax
jmp 0x424e58