Function at 0x4071d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1054]
mov eax, 0x1054
call fcn.0040b9d0
push 0xffffffffffffffff
push 0x4249a3
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x43606c]
xor eax, ebp
mov dword [ebp + 0x1050], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov ebx, ecx
mov dword [ebp - 4], 0
lea edx, [ebp + 0x105c]
cmp dword [ebp + 0x1070], 0x10
lea ecx, [ebp + 0x105c]
mov eax, dword [ebp + 0x106c]
cmovae edx, dword [ebp + 0x105c]
add eax, edx
mov dword [ebp + 0x48], 1
cmp dword [ebp + 0x1070], 0x10
mov dword [ebp + 0x4c], 0x1000
cmovae ecx, dword [ebp + 0x105c]
push ecx
push eax
push ecx
lea ecx, [ebp]
call fcn.00405440
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 1
cmp dword [ebp + 0x14], 8
lea eax, [ebp]
push ecx
cmovae eax, dword [ebp]
lea ecx, [ebp + 0x50]
push ecx
lea ecx, [ebp + 0x48]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x4073a6
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], 7
lea edx, [ecx + 2]
mov word [ebp + 0x18], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4072b0
sub ecx, edx
lea eax, [ebp + 0x50]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x18]
call fcn.00408020
mov byte [ebp - 4], 2
lea edx, [ebp + 0x18]
cmp dword [ebp + 0x2c], 8
lea ebx, [ebp + 0x18]
mov eax, dword [ebp + 0x28]
lea ecx, [ebp + 0x30]
cmovae edx, dword [ebp + 0x18]
cmovae ebx, dword [ebp + 0x18]
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0xf
lea esi, [edx + eax*2]
mov byte [ebp + 0x30], 0
mov eax, esi
sub eax, ebx
sar eax, 1
push eax
call fcn.004061e0
push dword [ebp - 0x14]
lea ecx, [ebp + 0x30]
push esi
push ebx
call fcn.004086b0
mov byte [ebp - 4], 3
lea eax, [ebp + 0x30]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
je 0x407335
cmp dword [ebp + 0x44], 0x10
push dword [ebp + 0x40]
cmovae eax, dword [ebp + 0x30]
push eax
call fcn.00404030
mov edx, dword [ebp + 0x44]
cmp edx, 0x10
jb 0x407369
mov ecx, dword [ebp + 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40735f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40744f
push edx
push ecx
call fcn.0040a8d7
add esp, 8
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x4073a3
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407399
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407454
push edx
push ecx
call fcn.0040a8d7
add esp, 8
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, 8
jb 0x4073e0
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4073d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407459
push edx
push ecx
call fcn.0040a8d7
add esp, 8
mov edx, dword [ebp + 0x1070]
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
cmp edx, 0x10
jb 0x40742a
mov ecx, dword [ebp + 0x105c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407420
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40745e
push edx
push ecx
call fcn.0040a8d7
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1050]
xor ecx, ebp
call fcn.0040a8c6
lea esp, [ebp + 0x1054]
pop ebp
ret
call fcn.0040f746
call fcn.0040f746
call fcn.0040f746
call fcn.0040f746
int3