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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4191c0
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x470cb8]
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 0x3f4ef3
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 0x3f4e83
mov ecx, dword [ebp - 0x228]
cmp ecx, 1
jne 0x3f4e99
mov dword [ebp - 4], 0
cmp dword [ebp - 0x228], 2
je 0x3f4ea7
cmp eax, 0xea
je 0x423244
mov edx, dword [ebp - 0x224]
mov ecx, edx
shr ecx, 1
cmp ecx, dword [ebx + 8]
ja 0x423277
shr edx, 1
mov eax, dword [ebx + 4]
mov ebx, 0
je 0x423293
test ebx, ebx
js 0x4232aa
xor ebx, ebx
test edx, edx
je 0x42329d
mov esi, 0x7ffffffe
lea edi, [ebp - 0x220]
sub esi, edx
sub edi, eax
lea ecx, [esi + edx]
test ecx, ecx
je 0x3f4e10
movzx ecx, word [edi + eax]
test cx, cx
je 0x3f4e10
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x3f4df0
jmp 0x42329d
test edx, edx
je 0x42329d
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp + 4]
test ebx, ebx
js 0x4232b7
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x4232c7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
shr eax, 1
mov dword [ebp - 0x224], eax
je 0x4232f5
dec eax
push eax
mov ecx, ebx
call fcn.003f4f02
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.0040b590
mov esp, ebp
pop ebp
ret 8
cmp eax, 0xea
je 0x3f4d7e
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x3f4e65
cmp ecx, 2
je 0x3f4d8d
jmp 0x423208
cmp eax, 0xea
je 0x423216
push 0x104
mov ecx, ebx
call fcn.003fe5c5
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 0x42322d
add eax, eax
mov dword [ebp - 0x224], eax
jmp 0x3f4e2e
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x3f4e65
cmp ecx, 7
je 0x3f4d8d
jmp 0x3f4e8e
mov ecx, dword [ebp + 4]
mov edx, 0x2e7
push 0xce
push 0x3da4c8
call fcn.00436213
mov ecx, dword [ebp + 4]
mov edx, 0x2ed
push 0xce
push 0x3da4c8
call fcn.00436213
mov eax, dword [ebp - 0x224]
mov ecx, ebx
shr eax, 1
push eax
call fcn.003fe5c5
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 0x3f4e34
mov eax, dword [ebx]
push ecx
mov esi, dword [eax]
mov ecx, esi
call dword [0x473670]
mov ecx, ebx
call esi
mov edx, dword [ebp - 0x224]
jmp 0x3f4dbf
mov ebx, 0x80070057
jmp 0x3f4dcf
sub eax, 2
mov ebx, 0x8007007a
jmp 0x3f4e18
test edx, edx
je 0x3f4e1d
jmp 0x3f4e18
push ebx
push 0x3da4c8
mov edx, 0x2fc
call fcn.0040f81b
mov ecx, dword [ebp + 4]
mov edx, 0x301
push eax
push 0x3da4c8
call fcn.00436213
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + 0x10]
call fcn.0043f46d
mov eax, 0x4232ee
ret
xor eax, eax
jmp 0x3f4e58