Function at 0x402550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404777
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x40d064]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x244]
mov edx, dword [eax + 0x14]
cmp edx, dword [ecx + 0x18]
jb 0x4025b6
mov dword [ebp - 0x14], 0x1510008
mov dword [ebp - 0x10], 0
jmp 0x4027d3
xor eax, eax
mov word [ebp - 0x22c], ax
push 0x206
push 0
lea ecx, [ebp - 0x22a]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x244]
mov eax, dword [edx + 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx + 0x1c]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x244]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx + 0x14]
add edx, 1
mov eax, dword [ebp - 0x244]
mov dword [eax + 0x14], edx
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x244]
mov eax, dword [edx + 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x244]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0x12
je 0x402685
cmp dword [ebp - 0x234], 2
jne 0x4026a3
mov eax, dword [ebp - 0x234]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0x1580021
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jmp 0x4027d3
xor ecx, ecx
cmp dword [ebp - 0x234], 0
setne cl
mov dword [ebp - 0x238], ecx
cmp dword [ebp - 0x238], 0
je 0x402705
mov eax, dword [ebp - 0x234]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0x1590021
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
push 0x4055a0
mov edx, dword [ebp - 0x14]
push edx
push 0x159
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x238]
push eax
push 0x4055c8
call sub.euLogPct.dll_dbgPut
add esp, 0x18
jmp 0x4027d3
mov ecx, dword [ebp - 0x230]
push ecx
push 0x10
call fcn.004024d0
add esp, 8
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x240], 0
je 0x40273f
mov ecx, dword [ebp - 0x240]
call fcn.00402520
mov dword [ebp - 0x24c], eax
jmp 0x402749
mov dword [ebp - 0x24c], 0
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x23c]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x230]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 8
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401720
add esp, 8
cmp dword [ebp - 0x18], 1
jne 0x4027cb
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 8
push ecx
call fcn.00401870
add esp, 4
xor edx, edx
jne 0x40258f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00403c8f
mov esp, ebp
pop ebp
ret 8