Function at 0x40c190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5a40e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x554fd8]
xorps xmm0, xmm0
mov dword [ebp - 0x44], eax
mov ax, word [0x554fdc]
mov word [ebp - 0x40], ax
movzx eax, byte [0x554fde]
mov byte [ebp - 0x3e], al
mov eax, dword [0x554fe0]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
movzx eax, byte [0x554fe4]
push edi
mov byte [ebp - 0x20], al
lea eax, [ebp - 0x254]
push eax
push 0x20019
push 0
push 0x555024
push 0x555038
movdqu xmmword [ebp - 0x3d], xmm0
mov byte [ebp - 0x25], 0
movq qword [ebp - 0x2d], xmm0
movdqu xmmword [ebp - 0x1f], xmm0
mov word [ebp - 7], 0
movq qword [ebp - 0xf], xmm0
mov byte [ebp - 5], 0
call fcn.00403f40
add esp, 8
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c27d
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0040a890
add esp, 8
mov dword [ebp - 0x25c], 0x20
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x258], 0
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x258]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x254]
mov byte [ebp - 0x24d], 0
push eax
push 0x20019
xor edi, edi
push edi
push 0x5550a8
push 0x5550b8
call fcn.00403e20
add esp, 8
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c3ed
push esi
push 0x206
push eax
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x24a]
push eax
call fcn.00525b40
add esp, 0xc
mov dword [ebp - 0x258], 0x208
lea eax, [ebp - 0x258]
mov dword [ebp - 0x25c], edi
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x25c]
push eax
push edi
push edi
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x254]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40c3f5
lea ecx, [ebp - 0x24c]
lea edx, [ecx + 2]
jmp 0x40c330
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c330
push 0
push 0
push 0
push 0
sub ecx, edx
lea eax, [ebp - 0x24c]
sar ecx, 1
push ecx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 1
mov dword [ebp - 0x260], eax
lea ecx, [eax + 4]
push ecx
call fcn.00527a05
mov esi, eax
add esp, 8
test esi, esi
je 0x40c3f5
lea ecx, [ebp - 0x24c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c380
push 0
push 0
push dword [ebp - 0x260]
sub ecx, edx
lea eax, [ebp - 0x24c]
push esi
sar ecx, 1
push ecx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test ebx, ebx
je 0x40c3be
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40c3c4
mov ebx, dword [0x5a94a8]
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push 1
push eax
push esi
push ebx
call fcn.00402d80
push esi
mov edi, edx
mov dword [ebp - 0x264], eax
call fcn.00527a45
mov al, byte [ebp - 0x264]
add esp, 0x18
jmp 0x40c3fb
mov al, byte [ebp - 0x24d]
jmp 0x40c3fc
mov al, byte [ebp - 0x24d]
pop esi
mov dword [0x5a926c], edi
test al, al
je 0x40c462
test edi, edi
jne 0x40c448
push edi
push 0x3a980
push 0x9008
push dword [0x5a94a8]
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [edi + 1]
mov dword [0x5a9278], 1
pop edi
mov dword [0x5a9274], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525b2c
mov esp, ebp
pop ebp
ret
call fcn.00402ef0
mov eax, dword [0x5a9274]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525b2c
mov esp, ebp
pop ebp
ret
call fcn.00402ef0
mov eax, dword [0x5a9274]
mov ecx, dword [ebp - 4]
dec eax
pop edi
xor ecx, ebp
mov dword [0x5a9274], eax
pop ebx
call fcn.00525b2c
mov esp, ebp
pop ebp
ret