Function at 0x40ed44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x40]
push edi
test eax, eax
jne 0x40ed61
xor al, al
jmp 0x40f0f7
push 0x10000000
push 0x4e27
push eax
lea ebx, [ebp - 8]
call fcn.0041660c
and dword [esi + 0x3c], 0
and dword [esi + 0x38], 0
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x40f0e6
mov eax, dword [ebp - 8]
cmp eax, 0x10
jbe 0x40f0e6
xor ecx, ecx
cmp byte [esi + 0x18], 1
mov dword [ebp - 0xc], 1
setne cl
dec ecx
and ecx, 0xffffffe0
add ecx, 0x40
movzx ecx, cx
add eax, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
movzx eax, word [edi + 2]
cmp eax, 0x10
jb 0x40f0e6
movzx ecx, word [edi + 4]
cmp cx, ax
jae 0x40f0e6
cmp word [edi + 6], ax
jae 0x40f0e6
cmp word [edi + 8], ax
jae 0x40f0e6
cmp word [edi + 0xa], ax
jae 0x40f0e6
cmp word [edi + 0xc], ax
jae 0x40f0e6
cmp word [edi + 0xe], ax
jae 0x40f0e6
movzx eax, word [edi]
mov ebx, eax
and eax, dword [ebp - 0x18]
shr ebx, 9
and ebx, 8
lea ecx, [edi + ecx]
cmp ax, word [ebp - 0x18]
jne 0x40f070
push dword [esi + 0xc]
mov edx, ebx
push dword [esi + 8]
call fcn.0040ea21
test al, al
je 0x40f070
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40ee51
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push eax
push 4
call fcn.0040ecdc
test al, al
jne 0x40f070
movzx eax, word [edi + 8]
test ax, ax
je 0x40ee70
push dword [esi + 0x28]
lea ecx, [edi + eax]
push dword [esi + 0x24]
call fcn.0040ea56
cmp al, 1
je 0x40f070
movzx eax, word [edi + 0xa]
test ax, ax
je 0x40ee8f
push dword [esi + 0x28]
lea ecx, [edi + eax]
push dword [esi + 0x24]
call fcn.0040ea56
test al, al
je 0x40f070
test byte [edi], 0x10
je 0x40ef76
cmp word [edi + 0xc], 0
jbe 0x40ef76
lea eax, [ebp - 0x11c]
push eax
push 1
lea eax, [ebp - 0xb4]
call fcn.00418f32
movzx ecx, word [edi + 0xc]
add ecx, edi
call fcn.004115cd
push eax
push ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.00411d35
test al, al
je 0x40f070
lea ecx, [ebp - 0xb4]
xor ebx, ebx
mov al, byte [ebp + ebx - 0x6c]
call fcn.00410df8
inc ebx
add ecx, 4
cmp ebx, 0x10
jb 0x40eedd
or dword [ebp - 0x1c], 0xffffffff
push 0x10
pop ebx
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
lea ecx, [ebp - 0x11c]
mov eax, reloc.WS2_32.dll_accept
push ecx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ef76
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ef46
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], ebx
jne 0x40ef76
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x46]
cmp ax, word [ebp - 0x56]
jne 0x40ef76
mov ax, word [ebp - 0x4a]
cmp ax, word [ebp - 0x5a]
je 0x40f070
push 0x1c
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00410b43
movzx eax, word [edi]
mov dword [ebp - 0x38], eax
movzx eax, word [edi + 4]
add eax, edi
push eax
or ebx, 0xffffffff
mov eax, ebx
call fcn.00410eee
mov dword [ebp - 0x34], eax
movzx eax, word [edi + 6]
test ax, ax
jne 0x40efac
and dword [ebp - 0x30], 0
jmp 0x40efb9
add eax, edi
push eax
mov eax, ebx
call fcn.00410eee
mov dword [ebp - 0x30], eax
movzx eax, word [edi + 0xc]
test ax, ax
jne 0x40efc8
and dword [ebp - 0x2c], 0
jmp 0x40efd5
add eax, edi
push eax
mov eax, ebx
call fcn.00410eee
mov dword [ebp - 0x2c], eax
movzx eax, word [edi + 0xe]
test ax, ax
jne 0x40efe4
and dword [ebp - 0x28], 0
jmp 0x40eff1
add eax, edi
push eax
mov eax, ebx
call fcn.00410eee
mov dword [ebp - 0x28], eax
movzx eax, word [edi]
test al, 3
jne 0x40f091
test al, 0xc
je 0x40f065
push 0x40000000
push dword [ebp - 0xc]
lea ebx, [ebp - 0x20]
push dword [esi + 0x40]
call fcn.0041660c
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x40f0c4
mov edx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.00416cde
test al, al
je 0x40f0c4
mov ecx, dword [esi + 0x3c]
inc ecx
imul ecx, ecx, 0x1c
add esi, 0x38
call fcn.00410a1b
test al, al
je 0x40f0c4
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x3c]
mov ecx, edx
imul ecx, ecx, 0x1c
add ecx, dword [eax + 0x38]
inc edx
mov dword [eax + 0x3c], edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call fcn.00410acc
jmp 0x40f06d
lea esi, [ebp - 0x38]
call fcn.0040fc5b
mov esi, dword [ebp + 8]
movzx eax, word [edi + 2]
add edi, eax
lea eax, [edi + 0x10]
cmp eax, dword [ebp - 8]
ja 0x40f0e6
movzx eax, word [edi + 2]
add eax, edi
cmp eax, dword [ebp - 8]
ja 0x40f0e6
inc dword [ebp - 0xc]
jmp 0x40edb7
push dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
call fcn.0040fc84
and dword [esi + 0x3c], 0
push 0x1c
lea eax, [ebp - 0x38]
push eax
call fcn.00410ae3
mov dword [esi + 0x38], eax
test eax, eax
je 0x40f0b7
inc dword [esi + 0x3c]
jmp 0x40f0e6
lea esi, [ebp - 0x38]
call fcn.0040fc5b
mov esi, dword [ebp + 8]
jmp 0x40f0e6
push ebx
call fcn.00410a90
lea esi, [ebp - 0x38]
call fcn.0040fc5b
mov eax, dword [ebp + 8]
push dword [eax + 0x38]
mov esi, eax
mov eax, dword [esi + 0x3c]
call fcn.0040fc84
and dword [esi + 0x3c], 0
push dword [ebp - 0x3c]
call fcn.00410a90
xor eax, eax
cmp eax, dword [esi + 0x3c]
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret 4