Function at 0x407810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1124
call fcn.00418360
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.0042a508
push 0xa000
call fcn.00418880
mov ebx, eax
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x1134]
rep stosd dword es:[edi], eax
push 0x1fe
lea eax, [ebp - 0x1134]
push 0x447a0c
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], 0xa000
call fcn.0041882e
add esp, 0x10
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x34]
push ecx
push ebx
push edx
lea eax, [ebp - 0x1134]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x4078e6
cmp edi, 0xea
jne 0x4078cf
mov eax, dword [ebp - 0x24]
add eax, 0xa000
push eax
push ebx
mov dword [ebp - 0x24], eax
call fcn.00418e95
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x4078ab
test edi, edi
je 0x407888
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00407780
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x1c]
cmp ecx, eax
jge 0x407b14
cmp dword [edi + 0xc], 0x1fe
jne 0x407af9
push edi
mov dword [ebp - 0x20], 0xffffffff
call fcn.004077a0
add esp, 4
xor ebx, ebx
cmp ebx, dword [edi + 0x20]
jge 0x407948
cmp dword [eax + 4], 0x208
jne 0x40793c
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x20], edx
push eax
call fcn.00407790
add esp, 4
inc ebx
jmp 0x407928
cmp dword [ebp - 0x20], 0xffffffff
jne 0x407970
mov eax, dword [ebp - 0x14]
push eax
call fcn.004187e6
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004077b0
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [edi + 0x28]
cmp ecx, edx
jge 0x407af6
mov edi, dword [eax + 0x10]
push eax
add edi, eax
call fcn.00407790
lea edx, [ebp - 0x134]
push 0xff
push edx
push edi
mov ebx, eax
call fcn.004077e0
mov ecx, dword [ebp - 0x20]
add esp, 0x10
mov ebx, dword [ebx + ecx]
push eax
lea ecx, [ebp - 0x30]
call fcn.0042ae7c
push eax
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.0042a5d1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0042ae0e
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x34]
test eax, eax
jne 0x407a11
mov edx, dword [esi + 0x44]
push 0xc
lea eax, [esi + 0x40]
push edx
push eax
call fcn.0042a692
mov ecx, dword [esi + 0x44]
lea edx, [ecx + ecx*2]
dec ecx
lea eax, [eax + edx*4 - 8]
test ecx, ecx
jl 0x407a11
mov edx, dword [esi + 0x3c]
dec ecx
mov dword [eax], edx
mov dword [esi + 0x3c], eax
sub eax, 0xc
jmp 0x4079ff
mov eax, dword [esi + 0x3c]
mov edx, 1
mov ecx, dword [eax]
mov dword [esi + 0x3c], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 0x38]
inc ecx
mov dword [esi + 0x38], ecx
lea ecx, [eax + 8]
mov dword [ecx], 0
mov edi, edx
dec edx
test edi, edi
je 0x407a43
add ecx, 4
jmp 0x407a37
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x407a51
mov dword [ecx], eax
jmp 0x407a54
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x58]
mov edi, dword [esi + 0x50]
test eax, eax
jne 0x407a8d
mov edx, dword [esi + 0x60]
push 0xc
lea eax, [esi + 0x5c]
push edx
push eax
call fcn.0042a692
mov ecx, dword [esi + 0x60]
lea edx, [ecx + ecx*2]
dec ecx
lea eax, [eax + edx*4 - 8]
test ecx, ecx
jl 0x407a8d
mov edx, dword [esi + 0x58]
dec ecx
mov dword [eax], edx
mov dword [esi + 0x58], eax
sub eax, 0xc
jmp 0x407a7b
mov eax, dword [esi + 0x58]
mov edx, 1
mov ecx, dword [eax]
mov dword [esi + 0x58], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 0x54]
inc ecx
mov dword [esi + 0x54], ecx
lea ecx, [eax + 8]
mov dword [ecx], 0
mov edi, edx
dec edx
test edi, edi
je 0x407abf
add ecx, 4
jmp 0x407ab3
xor ecx, ecx
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x407acf
mov dword [ecx], eax
jmp 0x407ad2
mov dword [esi + 0x4c], eax
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x50], eax
push edx
call fcn.004077c0
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
add esp, 4
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
jmp 0x407983
mov ebx, dword [ebp - 0x14]
push edi
call fcn.00407790
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
add esp, 4
inc eax
mov dword [ebp - 0x18], eax
jmp 0x4078fb
push ebx
call fcn.004187e6
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret