Function at 0x402f90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4bbd77
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x4fcc8c]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcc8c]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403800
mov ecx, eax
xor ebx, ebx
mov dword [esp + 0x308], ebx
mov eax, dword [ecx + 0x14]
push 0x4e6cf0
lea edi, [ebx + 3]
call fcn.00408420
test eax, eax
setne byte [esp + 0x1b]
mov dword [esp + 0x308], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x403016
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004913b3
add esp, 4
cmp byte [esp + 0x1b], bl
jne 0x40322d
mov dword [esp + 0x30], reloc.WSOCK32.dll_accept
cmp dword [0x5046b4], ebx
je 0x403042
lea edx, [esp + 0x30]
push edx
call fcn.004ad164
test eax, eax
jl 0x40322d
xor esi, esi
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
mov dword [esp + 0x314], 1
mov ecx, dword [esp + 0x3c]
push str.SOFTWAREESTsoftALCMUpdateFiles
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x403234
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push str.UpdateCount
push esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4031b0
xor ebp, ebp
cmp eax, ebx
jbe 0x4031b0
lea edx, [esp + 0x54]
push edx
call fcn.00407a60
push ebp
push ecx
lea eax, [esp + 0x5c]
push str.File
push eax
mov byte [esp + 0x318], 2
call fcn.0040bd80
add esp, 0xc
push eax
call fcn.004071b0
push 0x206
lea edx, [esp + 0xfa]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x100], cx
call fcn.004982b0
add esp, 0xc
lea ecx, [esp + 0x38]
lea eax, [esp + 0x54]
mov dword [esp + 0x2c], 0x104
call fcn.00407b60
cmp dword [eax + 0x18], 8
jb 0x403130
mov eax, dword [eax + 4]
jmp 0x403133
add eax, 4
push eax
lea eax, [esp + 0x24]
push eax
lea edi, [esp + 0x34]
lea esi, [esp + 0xfc]
call fcn.0040f5e0
cmp dword [esp + 0x50], 8
jb 0x40315d
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004913b3
add esp, 4
lea edx, [esp + 0xf4]
push ebx
push edx
call fcn.00491dcd
add esp, 8
test eax, eax
jne 0x4031cb
lea ecx, [esp + 0xa0]
mov byte [esp + 0x308], 1
call fcn.00407af0
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.00431fcb
inc ebp
add esp, 4
cmp ebp, dword [esp + 0x28]
jb 0x4030c4
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x4031c1
push esi
call edi
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
jmp 0x40323a
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x4031e0
push eax
call esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp dword [0x5046b4], ebx
je 0x4031f3
mov ecx, dword [esp + 0x30]
push ecx
call esi
lea ecx, [esp + 0xa0]
mov byte [esp + 0x308], 1
call fcn.00407af0
lea edx, [esp + 0xa0]
push edx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.00431fcb
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
je 0x40322d
push eax
call esi
xor al, al
jmp 0x4035c9
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.SOFTWAREESTsoftALCMUpdateRegInfo
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4033be
xor eax, eax
cmp esi, ebx
je 0x40326a
push esi
call edi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
cmp eax, ebx
jne 0x4033ba
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push str.UpdateCount
push esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4033ab
xor ebp, ebp
cmp eax, ebx
jbe 0x4033ab
lea edx, [esp + 0x54]
push edx
call fcn.00407a60
push ebp
push ecx
lea eax, [esp + 0x5c]
push 0x4e6c70
push eax
mov byte [esp + 0x318], 3
call fcn.0040bd80
add esp, 0xc
push eax
call fcn.004071b0
push 0x206
lea edx, [esp + 0xfa]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x100], cx
call fcn.004982b0
add esp, 0xc
lea ecx, [esp + 0x38]
lea eax, [esp + 0x54]
mov dword [esp + 0x2c], 0x104
call fcn.00407b60
cmp dword [eax + 0x18], 8
jb 0x403328
mov eax, dword [eax + 4]
jmp 0x40332b
add eax, 4
push eax
lea eax, [esp + 0x24]
push eax
lea edi, [esp + 0x34]
lea esi, [esp + 0xfc]
call fcn.0040f5e0
test eax, eax
setne byte [esp + 0x1b]
cmp dword [esp + 0x50], 8
jb 0x40335c
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004913b3
add esp, 4
cmp byte [esp + 0x1b], 0
jne 0x4034af
lea ecx, [esp + 0xa0]
mov byte [esp + 0x308], 1
call fcn.00407af0
lea edx, [esp + 0xa0]
push edx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.00431fcb
inc ebp
add esp, 4
cmp ebp, dword [esp + 0x28]
jb 0x4032bc
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x4033b6
push esi
call edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push ebx
push str.SOFTWAREESTsoftALCMDeleteFiles
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4035b1
xor eax, eax
cmp esi, ebx
je 0x4033ee
push esi
call edi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
cmp eax, ebx
jne 0x4035ad
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
push ebx
push str.UpdateCount
push esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4035a2
xor ebp, ebp
cmp eax, ebx
jbe 0x4035a2
lea ecx, [esp + 0x54]
push ecx
call fcn.00407a60
push ebp
push ecx
lea edx, [esp + 0x5c]
push 0x4e6cbc
push edx
mov byte [esp + 0x318], 4
call fcn.0040bd80
add esp, 0xc
push eax
call fcn.004071b0
push 0x206
lea ecx, [esp + 0xfa]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x100], ax
call fcn.004982b0
add esp, 0xc
lea ecx, [esp + 0xd8]
lea eax, [esp + 0x54]
mov dword [esp + 0x2c], 0x104
call fcn.00407b60
cmp dword [eax + 0x18], 8
jb 0x40351c
mov eax, dword [eax + 4]
jmp 0x40351f
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x4034c8
push eax
call edi
xor esi, esi
mov dword [esp + 0x20], esi
jmp 0x4034cc
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
cmp dword [0x5046b4], ebx
je 0x4034df
mov eax, dword [esp + 0x30]
push eax
call edi
lea ecx, [esp + 0xa0]
mov byte [esp + 0x308], 1
call fcn.00407af0
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.00431fcb
add esp, 4
cmp esi, ebx
je 0x403515
push esi
call edi
xor al, al
jmp 0x4035c9
add eax, 4
push eax
lea edx, [esp + 0x24]
push edx
lea edi, [esp + 0x34]
lea esi, [esp + 0xfc]
call fcn.0040f5e0
test eax, eax
setne bl
cmp dword [esp + 0xf0], 8
jb 0x403554
mov eax, dword [esp + 0xdc]
push eax
call fcn.004913b3
add esp, 4
test bl, bl
jne 0x4035f1
lea ecx, [esp + 0xa0]
mov byte [esp + 0x308], 1
call fcn.00407af0
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.00431fcb
inc ebp
add esp, 4
xor ebx, ebx
cmp ebp, dword [esp + 0x28]
jb 0x403440
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x4035ad
push esi
call edi
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0x20]
cmp dword [0x5046b4], ebx
je 0x4035c0
mov ecx, dword [esp + 0x30]
push ecx
call edi
cmp esi, ebx
je 0x4035c7
push esi
call edi
mov al, 1
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004913be
add esp, 0x2f8
ret
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40360a
push eax
call edi
xor esi, esi
mov dword [esp + 0x20], esi
jmp 0x40360e
mov esi, dword [esp + 0x20]
cmp dword [0x5046b4], 0
mov dword [esp + 0x24], 0
je 0x403626
mov edx, dword [esp + 0x30]
push edx
call edi
lea ecx, [esp + 0xa0]
mov byte [esp + 0x308], 1
call fcn.00407af0
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.00431fcb
add esp, 4
test esi, esi
je 0x403515
push esi
call edi
xor al, al
jmp 0x4035c9