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

Disassembly:
push 0xffffffffffffffff
push 0x43bef6
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x449f6c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449f6c]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push esi
push ebp
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], esi
call edi
test eax, eax
jne 0x40e022
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40de64
mov edi, dword [esp + 0x14]
call fcn.0040e510
lea eax, [esi + 1]
jmp 0x40e024
add eax, 2
push eax
call fcn.0041f096
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0xb8], 0
mov eax, dword [esp + 0x18]
add eax, 2
push eax
push 0
push esi
call fcn.00428a90
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push 0
push ebp
push ebx
call edi
test eax, eax
jne 0x40e013
mov eax, dword [esp + 0x20]
mov ebx, 1
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jne 0x40ded8
mov ecx, dword [esp + 0x14]
push esi
call fcn.0040eaa0
push esi
call fcn.00423e76
add esp, 4
mov eax, ebx
jmp 0x40e024
cmp eax, 2
jne 0x40df6d
push 0x800
call fcn.0041f096
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
push 0x400
push ebp
mov byte [esp + 0xc0], bl
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call edi
cmp eax, 0x400
jbe 0x40df48
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f096
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x40df39
push ebp
call fcn.00423e76
add esp, 4
push 0x400
push ebx
mov ebp, ebx
push esi
mov dword [esp + 0x30], ebp
call edi
mov ecx, dword [esp + 0x14]
push ebp
call fcn.0040eaa0
push ebp
call fcn.00423e76
add esp, 4
push esi
call fcn.00423e76
mov eax, dword [esp + 0x20]
add esp, 4
jmp 0x40e024
cmp eax, 4
jne 0x40dfba
mov edi, dword [esi]
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x36]
push ecx
mov word [esp + 0x38], ax
call fcn.00428a90
add esp, 0xc
push 0xa
push 0x20
lea edx, [esp + 0x34]
push edx
push edi
call fcn.00424a3e
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
call fcn.0040eaa0
push esi
call fcn.00423e76
mov eax, dword [esp + 0x20]
add esp, 4
jmp 0x40e024
cmp eax, 0xb
jne 0x40e00b
mov edi, dword [esi]
mov ebx, dword [esi + 4]
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x36]
push edx
mov word [esp + 0x38], cx
call fcn.00428a90
add esp, 0xc
push 0xa
push 0x40
lea eax, [esp + 0x34]
push eax
push ebx
push edi
call fcn.00424b93
add esp, 0x14
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.0040eaa0
push esi
call fcn.00423e76
mov eax, dword [esp + 0x20]
add esp, 4
jmp 0x40e024
mov dword [esp + 0x1c], 0
push esi
call fcn.00423e76
mov eax, dword [esp + 0x20]
add esp, 4
jmp 0x40e024
mov eax, esi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004239c1
add esp, 0xa8
ret