Function at 0x540490
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x627c99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x6fe514
call fcn.0053c510
push 0x6fe510
call fcn.0053c750
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add esp, 8
xor esi, esi
mov ebx, 2
mov dword [0x6fe51c], eax
push esi
push esi
push esi
push ebx
push 0x2714
push eax
mov dword [0x6fe520], ecx
call dword [sym.imp.USER32.dll_LoadImageA]
push 1
mov ecx, 0x6fe488
mov dword [0x6fe528], eax
mov dword [0x6fe494], esi
call fcn.0055c5f0
mov eax, dword [0x6fe48c]
push 1
mov ecx, 0x6fe498
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [0x6fe4a4], esi
call fcn.0055c5f0
mov eax, dword [0x6fe49c]
mov ebp, 3
push 1
mov ecx, 0x6fe4a8
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [0x6fe4b4], esi
call fcn.0055c5f0
mov eax, dword [0x6fe4ac]
mov edi, 4
push ebx
mov ecx, 0x6fe4b8
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [0x6fe4c4], esi
call fcn.0055c5f0
mov eax, dword [0x6fe4bc]
push ebx
mov ecx, 0x6fe4c8
mov dword [eax], edi
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov dword [0x6fe4d4], esi
call fcn.0055c5f0
mov eax, dword [0x6fe4cc]
push ebx
mov ecx, 0x6fe4d8
mov dword [eax], edi
mov dword [eax + 4], ebp
mov dword [eax + 8], 0x10
mov dword [eax + 0xc], ebp
mov dword [0x6fe4e4], esi
call fcn.0055c5f0
mov eax, dword [0x6fe4dc]
lea edx, [esp + 0x10]
push edx
push 1
push esi
mov dword [eax], 8
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
push 0x6e4b60
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x54060a
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
push esi
push 0x6e4b54
push edx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
dec eax
je 0x540624
dec eax
je 0x54061c
mov dword [0x6fe524], esi
jmp 0x54062e
mov dword [0x6fe524], ebx
jmp 0x54062e
mov dword [0x6fe524], 1
mov ecx, dword [0x6fe520]
push 1
push 0x6e4b90
mov edx, dword [ecx]
call dword [edx + 0x10]
cmp eax, esi
mov dword [0x6fe52c], eax
jne 0x54066d
mov ecx, dword [0x6fe520]
push esi
push 0x6e4b90
push 0x6e4b90
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [0x6fe52c], eax
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x18]
push 8
call fcn.005e6fe9
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
mov dword [esp + 0x24], esi
je 0x54068c
mov ecx, eax
call fcn.0053dbb0
jmp 0x54068e
xor eax, eax
mov ecx, dword [0x6fe520]
mov dword [0x6fe530], eax
or edi, 0xffffffff
push eax
mov edx, dword [ecx]
mov dword [esp + 0x28], edi
call dword [edx + 0x18]
push 0x30
call fcn.005e6fe9
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
mov dword [esp + 0x24], 1
je 0x5406c9
mov ecx, eax
call fcn.00560f20
jmp 0x5406cb
xor eax, eax
mov ecx, dword [0x6fe520]
mov dword [0x6fe534], eax
push eax
mov dword [esp + 0x28], edi
mov edx, dword [ecx]
call dword [edx + 0x18]
mov dword [0x6fe538], esi
mov dword [0x6fe4f0], esi
mov dword [0x6fe4f4], esi
mov dword [0x6fe53c], esi
call fcn.00606265
mov edi, dword [eax + 0xc]
mov ebx, dword [0x6fe51c]
call fcn.00606265
push 0x2783
mov ecx, 0x6fe518
mov dword [eax + 0xc], ebx
call fcn.005eb614
push 0x2784
mov ecx, 0x6fe4ec
call fcn.005eb614
call fcn.00606265
push 0x10
mov dword [eax + 0xc], edi
call fcn.005e6fe9
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
mov dword [esp + 0x24], 2
je 0x540757
mov ecx, eax
call fcn.00560c50
jmp 0x540759
xor eax, eax
mov ecx, dword [0x6fe520]
mov dword [0x6fe538], eax
or ebx, 0xffffffff
push eax
mov edx, dword [ecx]
mov dword [esp + 0x28], ebx
call dword [edx + 0x14]
mov eax, dword [0x6fe51c]
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push esi
push esi
push esi
push esi
push 0x2720
push eax
call edi
cmp eax, esi
mov dword [0x6fe4f0], eax
jne 0x5407a6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [0x6fe51c]
push esi
push esi
push esi
push esi
push 0x273e
push ecx
call edi
cmp eax, esi
mov dword [0x6fe4f4], eax
jne 0x5407d6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [0x6fe518]
mov eax, dword [0x6fe4ec]
mov ecx, dword [0x6fe52c]
mov dword [0x6fe4f8], 0xff00
mov dword [0x6fe4fc], edx
mov dword [0x6fe500], eax
mov dword [0x6fe504], 1
mov dword [0x6fe508], esi
mov edx, dword [ecx]
push 0x6fe4f0
call dword [edx + 0x30]
mov ecx, dword [0x6fe538]
mov dword [0x6fe53c], eax
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 4]
push 0xa8
call fcn.005e6fe9
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
mov dword [esp + 0x24], ebp
je 0x54084b
mov ecx, eax
call fcn.00560bb0
jmp 0x54084d
xor eax, eax
push esi
push eax
mov dword [esp + 0x2c], ebx
call fcn.0053c360
push 0xb8
call fcn.005e6fe9
add esp, 0xc
mov dword [esp + 0x2c], eax
cmp eax, esi
mov dword [esp + 0x24], 4
je 0x54087e
mov ecx, eax
call fcn.0055d2c0
jmp 0x540880
xor eax, eax
push esi
push eax
mov dword [esp + 0x2c], ebx
call fcn.0053c360
push 0xa8
call fcn.005e6fe9
add esp, 0xc
mov dword [esp + 0x2c], eax
cmp eax, esi
mov dword [esp + 0x24], 5
je 0x5408b1
mov ecx, eax
call fcn.00547180
jmp 0x5408b3
xor eax, eax
push esi
push eax
mov dword [esp + 0x2c], ebx
call fcn.0053c360
push 0xb8
call fcn.005e6fe9
add esp, 0xc
mov dword [esp + 0x2c], eax
cmp eax, esi
mov dword [esp + 0x24], 6
je 0x5408e4
mov ecx, eax
call fcn.0055cc20
jmp 0x5408e6
xor eax, eax
push esi
push eax
mov dword [esp + 0x2c], ebx
call fcn.0053c360
mov ecx, dword [esp + 0x24]
add esp, 8
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret