Function at 0x40f910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fa43
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x47c078]
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 ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push str.UTF_8
push dword [ebp + 0x10]
mov dword [ebp - 0x8c], 0
push dword [ebp + 0xc]
mov dword [ebp - 0x88], 0
push eax
call fcn.0045c870
add esp, 0x10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
jb 0x40f981
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x88]
push ecx
push 0
lea ecx, [ebp - 0x8c]
push ecx
push 0
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fb3b
lea eax, [ebp - 0x81]
push eax
push dword [ebp - 0x88]
lea ecx, [ebp - 0x9c]
call fcn.0040eb20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
jb 0x40f9cd
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x9c]
lea ecx, [ebp - 0x88]
push ecx
push edi
push 0
push 0
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fac2
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x8c]
lea eax, [ebp - 0xbc]
push eax
call fcn.0040ef30
mov ecx, eax
add esp, 0xc
mov al, byte [ecx]
add ecx, 4
mov byte [esi], al
lea eax, [esi + 4]
mov byte [eax + 0x18], 0xff
mov dl, byte [ecx + 0x18]
mov byte [ebp - 4], 2
test dl, dl
js 0x40fa45
mov dword [ebp - 0x90], eax
movsx eax, dl
lea edx, [ebp - 0x90]
push edx
push ecx
mov eax, dword [eax*4 + 0x463c9c]
call eax
add esp, 8
mov byte [esi + 0x20], 1
mov al, byte [ebp - 0xa0]
mov byte [ebp - 4], 3
test al, al
js 0x40fa7b
movsx eax, al
lea ecx, [ebp - 0x81]
push ecx
lea ecx, [ebp - 0xb8]
mov byte [ebp - 0x81], 0
push ecx
mov eax, dword [eax*4 + 0x4636ac]
call eax
add esp, 8
mov ecx, dword [ebp - 0x9c]
mov byte [ebp - 0xa0], 0xff
test ecx, ecx
je 0x40fb13
mov edx, dword [ebp - 0x94]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40fab6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fb5c
push edx
push ecx
call fcn.0042777b
add esp, 8
jmp 0x40fb13
test edi, edi
je 0x40faf2
mov ecx, dword [ebp - 0x94]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40fae8
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fb61
push ecx
push edi
call fcn.0042777b
add esp, 8
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov byte [esi], al
mov byte [esi + 0x20], al
lea ecx, [ebp - 0x28]
call fcn.00402dc0
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.00427a1e
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 2
je 0x40faf2
push 0x463c88
push eax
lea ecx, [ebp - 0x80]
call fcn.00409380
push 0x4770ac
lea eax, [ebp - 0x80]
push eax
call fcn.0043e7a0
call fcn.004432c6
call fcn.004432c6
int3