Function at 0x4031a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe18
mov eax, dword [0x43e044]
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.00422210
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.00422210
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.00422210
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.00422210
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 0x42fd00
call fcn.00403790
add esp, 4
xor eax, eax
movzx ecx, word [eax + 0x42f9d8]
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.00422210
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 0x42fd38
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.0041a70e
mov esp, ebp
pop ebp
ret
push esi
push 0x42fcb0
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.0041a70e
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 0x42fd78
jmp 0x403325
push 0x42fdc8
call fcn.00403790
add esp, 4
cmp dword [0xb568b0], 0
jne 0x403535
xor esi, esi
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x42f9d8]
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 0x42fe50
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.0041a70e
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.00422210
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 0x42fef4
jmp 0x40353a
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x40352a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x42fe98
jmp 0x403352
push 0x42ff1c
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.0041a70e
mov esp, ebp
pop ebp
ret