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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556080
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
push ecx
push 0
push eax
push dword [edi]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41e96e
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x41e781
cmp eax, 2
je 0x41e781
mov eax, 0x3f4
jmp 0x41e970
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41e959
lea ecx, [eax + 3]
cmp ecx, eax
jbe 0x41e955
xor eax, eax
shr ecx, 1
mov word [ebp - 0x34], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x31]
movq qword [ebp - 0x30], xmm0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], 0
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.0042f7d0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x38]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41e919
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x41e81d
mov edi, dword [ebp - 0x30]
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41e800
sub edx, ecx
mov ecx, ebx
sar edx, 1
push edx
push edi
call fcn.00408740
jmp 0x41e919
cmp eax, 2
jne 0x41e914
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x41e903
lea eax, [edi + 1]
cmp eax, edi
jbe 0x41e903
xor ecx, ecx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x34], cx
xorps xmm0, xmm0
lea ecx, [ebp - 0x31]
movq qword [ebp - 0x24], xmm0
push ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0042f7d0
push edi
push dword [ebp - 0x24]
mov byte [ebp - 4], 2
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jb 0x41e8aa
mov edx, dword [ebp - 0x24]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e890
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00408740
jmp 0x41e8af
mov esi, 0xa
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x41e919
mov eax, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e8e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e98e
push edx
push ecx
call fcn.004097e6
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x41e919
test edi, edi
mov esi, 8
mov eax, 0xea
cmove esi, eax
jmp 0x41e919
mov esi, 0x3f4
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], 4
test edx, edx
je 0x41e96e
mov ecx, dword [ebp - 0x28]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41e949
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e993
push ecx
push edx
call fcn.004097e6
add esp, 8
jmp 0x41e96e
test eax, eax
jne 0x41e969
push 0
push 0x569908
mov ecx, ebx
call fcn.00408740
jmp 0x41e96e
mov esi, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret 8
call fcn.0052cae1
call fcn.0052cae1
int3