Function at 0x4031a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe18
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x206]
push ecx
mov word [ebp - 0x208], ax
call fcn.004238b0
add esp, 0xc
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x606]
push eax
mov dword [ebp - 0xe0c], 0
mov word [ebp - 0x608], dx
call fcn.004238b0
add esp, 0xc
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x406]
push edx
mov dword [ebp - 0xe14], 1
mov word [ebp - 0x408], cx
call fcn.004238b0
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0xe06]
mov edi, 0x200
push ecx
mov dword [ebp - 0xe10], edi
mov word [ebp - 0xe08], ax
call fcn.004238b0
add esp, 0xc
xor esi, esi
call fcn.00403570
test eax, eax
jne 0x403281
jmp 0x403260
push 0x3e8
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x12c
jae 0x40334c
call fcn.00403570
test eax, eax
je 0x403260
push 0x431d30
call fcn.00403790
add esp, 4
xor eax, eax
movzx ecx, word [eax + 0x431a08]
mov word [ebp + eax - 0x608], cx
add eax, 2
test cx, cx
jne 0x403290
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x208], cx
add eax, 2
test cx, cx
jne 0x4032b0
push edi
lea ecx, [ebp - 0x408]
push 0
push ecx
mov dword [ebp - 0xe10], edi
call fcn.004238b0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea edx, [ebp - 0xe0c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe0c], 0
call edi
test eax, eax
je 0x403383
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x403320
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x431d68
call fcn.00403790
mov eax, dword [ebp - 0xe0c]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push esi
push 0x431ce0
lea edx, [ebp - 0xe08]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xe08]
add esp, 0xc
push eax
call fcn.00403790
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xe10]
push ecx
lea edx, [ebp - 0x408]
push edx
mov edx, dword [ebp - 0xe0c]
lea eax, [ebp - 0xe14]
push eax
push 0
lea ecx, [ebp - 0x608]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x4033c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4033cf
push 0x431da8
jmp 0x403325
push 0x431df8
call fcn.00403790
add esp, 4
cmp dword [0xc33138], 0
jne 0x403535
xor esi, esi
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x431a08]
mov word [ebp + eax - 0x608], cx
add eax, 2
test cx, cx
jne 0x4033f0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWM7F]
mov word [ebp + eax - 0x208], cx
add eax, 2
test cx, cx
jne 0x403410
jmp 0x403435
cmp esi, 0x78
jae 0x403463
lea ecx, [ebp - 0xe0c]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x208]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x4034ab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
jmp 0x403430
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x403474
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0xe08]
push 0x431e80
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xe08]
add esp, 0xc
push ecx
call fcn.00403790
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ecx, [ecx]
cmp esi, 0x5a
jae 0x403519
push 0x200
lea edx, [ebp - 0x408]
push 0
push edx
mov dword [ebp - 0xe10], 0x200
call fcn.004238b0
add esp, 0xc
lea eax, [ebp - 0xe10]
push eax
lea ecx, [ebp - 0x408]
push ecx
mov ecx, dword [ebp - 0xe0c]
lea edx, [ebp - 0xe14]
push edx
push 0
lea eax, [ebp - 0x608]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x403512
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
jmp 0x4034b0
push 0x431f24
jmp 0x40353a
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x40352a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x431ec8
jmp 0x403352
push 0x431f4c
call fcn.00403790
mov eax, dword [ebp - 0xe0c]
add esp, 4
test eax, eax
je 0x403553
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041bcde
mov esp, ebp
pop ebp
ret