Function at 0x403ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x41501c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SoftwareKuGameBoxUpdate
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403f48
mov eax, 1
jmp 0x404175
mov dword [ebp - 8], 0
xor ecx, ecx
mov word [ebp - 0x40], cx
xor edx, edx
mov dword [ebp - 0x3e], edx
mov dword [ebp - 0x3a], edx
mov dword [ebp - 0x36], edx
mov dword [ebp - 0x32], edx
mov dword [ebp - 0x2e], edx
mov dword [ebp - 0x2a], edx
mov dword [ebp - 0x26], edx
mov dword [ebp - 0x22], edx
mov dword [ebp - 0x1e], edx
mov word [ebp - 0x1a], dx
mov dword [ebp - 0xc], 0x28
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.LastCheckTime
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403fff
cmp dword [ebp - 8], 1
jne 0x403fff
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
add edx, 2
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x88]
mov cx, word [eax]
mov word [ebp - 0x8e], cx
add dword [ebp - 0x88], 2
cmp word [ebp - 0x8e], 0
jne 0x403fbc
mov edx, dword [ebp - 0x88]
sub edx, dword [ebp - 0x8c]
sar edx, 1
mov dword [ebp - 0x94], edx
je 0x403fff
mov dword [ebp - 0x98], 1
jmp 0x404009
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.CheckInterval
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404059
cmp dword [ebp - 8], 4
jne 0x404059
cmp dword [ebp - 4], 0
jbe 0x404059
mov dword [ebp - 0x9c], 1
jmp 0x404063
mov dword [ebp - 0x9c], 0
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x5c], 0
je 0x404082
cmp dword [ebp - 0x44], 0
jne 0x40408c
mov eax, 1
jmp 0x404175
mov dword [ebp - 0x80], 0
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push str._d__d__d__d:_d:_d
lea edx, [ebp - 0x40]
push edx
call fcn.00404a87
add esp, 0x20
mov eax, dword [ebp - 0x6c]
sub eax, 0x76c
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x70]
sub ecx, 1
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0x80]
push edx
call fcn.00402720
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push 0
call fcn.00402740
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sbb ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 4]
imul edx, edx, 0xe10
xor esi, esi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], esi
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0xa8]
jl 0x404165
jg 0x404159
mov ecx, dword [ebp - 0xa4]
cmp ecx, dword [ebp - 0xac]
jb 0x404165
mov dword [ebp - 0xb0], 1
jmp 0x40416f
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040418f
mov esp, ebp
pop ebp
ret