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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x464161
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0
mov edi, ecx
mov edx, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x415053
push eax
push 0x46c094
lea ecx, [esp + 0x430]
call fcn.00443bf0
mov esi, eax
push 0x47c164
lea eax, [esp + 0x24]
mov ecx, 0x41
lea edi, [esp + 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0044777e
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00447107
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
push ecx
mov dword [esp + 0x854], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4150ba
push eax
push 0x46c080
lea ecx, [esp + 0x430]
call fcn.00443bf0
push 0x47c164
lea edx, [esp + 0x24]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x24]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0044777e
mov eax, dword [esp + 0x14]
dec eax
cmp eax, 3
ja case.default.0x4150c8
jmp dword [eax*4 + 0x415284]
mov eax, dword [esp + 0xc]
push eax
push esi
call fcn.004435c0
push 0
mov edi, eax
call fcn.004470fd
push esi
call fcn.004470fd
add esp, 0x10
jmp 0x415108
mov eax, dword [esp + 0xc]
test eax, eax
je 0x415121
push eax
push esi
call fcn.00414fa0
push esi
mov edi, eax
call fcn.004470fd
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 0x834]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffff
push 0x4699b4
call fcn.00442cf0
jmp 0x4150fd
push 0x10
call fcn.00447107
mov ecx, dword [esi]
push ecx
mov edi, eax
push 0x46c07c
push edi
call fcn.00447d0e
push 0
call fcn.004470fd
push esi
call fcn.004470fd
add esp, 0x18
jmp 0x415108
mov eax, dword [esp + 0xc]
test eax, eax
je 0x415121
push eax
push esi
call fcn.00414fa0
mov ebx, eax
add esp, 8
mov dword [esp + 0x1c], ebx
push 0
push 0
push ebx
mov byte [esp + 0x848], 1
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, eax
test edi, edi
jne 0x4151c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ExpandEnvironmentStrings
lea ecx, [esp + 0x734]
call fcn.00443bf0
push 0x47c164
lea edx, [esp + 0x328]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x328]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0044777e
push edi
lea ecx, [esp + 0x14]
call fcn.00401230
mov eax, dword [esp + 0x10]
push edi
push eax
push ebx
mov byte [esp + 0x848], 2
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp edi, eax
mov dword [esp + 0xc], eax
jae 0x41521d
push 0x46c038
lea ecx, [esp + 0x630]
call fcn.004012a0
mov esi, eax
mov ecx, 0x40
lea edi, [esp + 0x224]
rep movsd dword es:[edi], dword [esi]
push 0x47bc3c
lea ecx, [esp + 0x228]
push ecx
call fcn.0044777e
push 0
call fcn.004470fd
push ebx
call fcn.004470fd
push esi
call fcn.004470fd
mov ecx, dword [esp + 0x840]
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x46c01c
lea ecx, [esp + 0x530]
call fcn.004012a0
push 0x47bc3c
lea edx, [esp + 0x128]
mov esi, eax
mov ecx, 0x40
lea edi, [esp + 0x128]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0044777e
lea ecx, [ecx]
out dx, al
push eax
inc ecx
add byte [eax + 0x51], bl
inc ecx
add bh, cl
push eax
inc ecx
add byte [edi], ch
push ecx
inc ecx
add ah, cl
int3