Function at 0x4049b5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2e94
call fcn.0042b010
push edi
mov dword [ebp - 0x2e90], ecx
push 0x45cdf8
call fcn.00401000
add esp, 4
push 0xff
push 0
lea eax, [ebp - 0x2e68]
push eax
call fcn.0042aa90
add esp, 0xc
lea ecx, [ebp - 0x2d68]
push ecx
push 0x2001f
push 0
mov ecx, dword [ebp - 0x2e90]
add ecx, 8
call fcn.00404600
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404a35
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x4681d0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.004045e0
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x34
call fcn.004045e0
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x20
call fcn.004045e0
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x48
call fcn.004045e0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c5c], 0
mov dword [ebp - 0x128], 0x1e
push 0x467e3c
lea ecx, [ebp - 0x11c]
call fcn.0043df01
mov dword [ebp - 4], 0
push 0x467e40
lea ecx, [ebp - 0x118]
call fcn.0043df01
mov byte [ebp - 4], 1
push 0x467e44
lea ecx, [ebp - 0x120]
call fcn.0043df01
mov byte [ebp - 4], 2
push 0x2b2a
push 0
lea edx, [ebp - 0x2c58]
push edx
call fcn.0042aa90
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0x2d5c]
push eax
call fcn.0042aa90
add esp, 0xc
mov ecx, 0x468260
call fcn.004155a0
mov ecx, dword [ebp - 0x2e90]
call fcn.00406071
call fcn.00404650
mov dword [ebp - 0x124], eax
push 0xff
lea ecx, [ebp - 0x2e68]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x2d68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x2d64], eax
cmp dword [ebp - 0x2d64], 0x103
je 0x404b56
cmp dword [ebp - 0x2d64], 6
jne 0x404b5b
jmp 0x404d92
mov dword [ebp - 0x128], 0x32
lea ecx, [ebp - 0x2e68]
push ecx
push 0x45ce1c
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x2e68]
push edx
lea ecx, [ebp - 0x120]
call fcn.0043e01c
lea eax, [ebp - 0x2e68]
push eax
mov ecx, dword [ebp - 0x2e90]
call fcn.00405e3a
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x2c58]
push edx
lea eax, [ebp - 0x2e68]
push eax
mov ecx, 0x468260
call fcn.00417a77
mov ecx, dword [ebp - 0x128]
push ecx
lea edx, [ebp - 0x2e68]
push edx
push 0x45ce2c
call fcn.00401000
add esp, 0xc
mov dword [ebp - 0x2e6c], 0
jmp 0x404bf2
mov eax, dword [ebp - 0x2e6c]
add eax, 1
mov dword [ebp - 0x2e6c], eax
mov ecx, dword [ebp - 0x2e6c]
cmp ecx, dword [ebp - 0x128]
jae 0x404d7c
mov edx, dword [ebp - 0x2e6c]
imul edx, edx, 0xdd
lea eax, [ebp + edx - 0x2c58]
push eax
mov ecx, 0x468260
call fcn.00418565
lea ecx, [ebp - 0x2d5c]
push ecx
mov ecx, 0x468260
call fcn.004158c5
test eax, eax
jne 0x404c4d
lea edx, [ebp - 0x2d5c]
push edx
push 0x45ce48
call fcn.00401000
add esp, 8
jmp 0x404c61
lea eax, [ebp - 0x2d5c]
push eax
push 0x45ce98
call fcn.00401000
add esp, 8
lea ecx, [ebp - 0x2d5c]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.0043e01c
lea edx, [ebp - 0x2d5c]
push edx
mov ecx, 0x468260
call fcn.00415a8d
test eax, eax
jne 0x404c9e
lea eax, [ebp - 0x2d5c]
push eax
push 0x45ceb8
call fcn.00401000
add esp, 8
jmp 0x404cb2
lea ecx, [ebp - 0x2d5c]
push ecx
push 0x45cf0c
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x2d5c]
push edx
lea ecx, [ebp - 0x118]
call fcn.0043e01c
mov eax, dword [ebp - 0x124]
add eax, 0x258
push eax
lea ecx, [ebp - 0x118]
call fcn.0043cb31
test eax, eax
jl 0x404cf4
mov ecx, dword [ebp - 0x2e90]
call fcn.004060fe
cmp eax, 1
jne 0x404cf4
jmp 0x404be3
mov ecx, dword [ebp - 0x2e6c]
imul ecx, ecx, 0xdd
lea edx, [ebp + ecx - 0x2c58]
push edx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.00406210
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x34
call fcn.00404700
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x20
call fcn.00404700
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x48
call fcn.00404700
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
push 0x45cf2c
call fcn.00401000
add esp, 0x10
jmp 0x404be3
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, 1
test ecx, ecx
jne 0x404b1e
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.00404660
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x114], 0xff
mov byte [ebp - 0x110], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x2d60], 0
push 0x45cf70
call fcn.00401000
add esp, 4
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x45cf84
mov ecx, dword [ebp - 0x2d68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405104
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x2e70]
call fcn.0043df01
mov byte [ebp - 4], 3
mov dword [ebp - 0x2e74], 0
jmp 0x404e3c
mov eax, dword [ebp - 0x2e74]
add eax, 1
mov dword [ebp - 0x2e74], eax
mov ecx, dword [ebp - 0x2e74]
cmp ecx, dword [ebp - 0x12c]
jge 0x404ef5
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x2e74]
push eax
lea ecx, [ebp - 0x2e84]
push ecx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.00404680
mov dword [ebp - 0x2e94], eax
mov edx, dword [ebp - 0x2e94]
mov dword [ebp - 0x2e98], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2e98]
call fcn.004046c0
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x2e80], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e84]
call fcn.0043de93
mov eax, dword [ebp - 0x2e80]
and eax, 0xff
test eax, eax
je 0x404ef0
mov ecx, dword [ebp - 0x2e90]
mov edx, dword [ebp - 0x2e74]
mov dword [ecx + 0x5c], edx
mov dword [ebp - 0x2d60], 1
mov eax, dword [ebp - 0x2e90]
mov dword [eax + 4], 1
push 0x45cf8c
call fcn.00401000
add esp, 4
jmp 0x404ef5
jmp 0x404e2d
cmp dword [ebp - 0x2d60], 0
jne 0x4050f0
mov dword [ebp - 0x2e78], 0
cmp dword [ebp - 0x12c], 0
jle 0x405094
mov ecx, dword [ebp - 0x2e90]
cmp dword [ecx + 4], 0
je 0x405068
mov dword [ebp - 0x2e7c], 0
jmp 0x404f44
mov edx, dword [ebp - 0x2e7c]
add edx, 1
mov dword [ebp - 0x2e7c], edx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x34
call fcn.00404660
cmp dword [ebp - 0x2e7c], eax
jge 0x405006
mov eax, dword [ebp - 0x2e7c]
push eax
lea ecx, [ebp - 0x2e8c]
push ecx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x34
call fcn.00404680
mov dword [ebp - 0x2e9c], eax
mov edx, dword [ebp - 0x2e9c]
mov dword [ebp - 0x2ea0], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2ea0]
call fcn.00404600
push eax
lea ecx, [ebp - 0x2e70]
call fcn.004046c0
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x2e88], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e8c]
call fcn.0043de93
mov eax, dword [ebp - 0x2e88]
and eax, 0xff
test eax, eax
je 0x405001
mov dword [ebp - 0x2e78], 1
mov ecx, dword [ebp - 0x2e90]
mov edx, dword [ebp - 0x2e7c]
mov dword [ecx + 0x5c], edx
mov ecx, dword [ebp - 0x2e90]
call fcn.00405217
mov eax, dword [ebp - 0x2e90]
mov dword [eax + 4], 1
jmp 0x404f35
cmp dword [ebp - 0x2e78], 0
jne 0x405066
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.00404660
mov ecx, dword [ebp - 0x2e90]
cmp dword [ecx + 0x5c], eax
jge 0x40503c
mov edx, dword [ebp - 0x2e90]
mov eax, dword [ebp - 0x2e90]
mov ecx, dword [eax + 0x5c]
mov dword [edx + 0x5c], ecx
jmp 0x40504e
mov edx, dword [ebp - 0x12c]
sub edx, 1
mov eax, dword [ebp - 0x2e90]
mov dword [eax + 0x5c], edx
mov ecx, dword [ebp - 0x2e90]
call fcn.00405217
mov ecx, dword [ebp - 0x2e90]
mov dword [ecx + 4], 1
jmp 0x405092
mov edx, dword [ebp - 0x12c]
sub edx, 1
mov eax, dword [ebp - 0x2e90]
mov dword [eax + 0x5c], edx
mov ecx, dword [ebp - 0x2e90]
call fcn.00405217
mov ecx, dword [ebp - 0x2e90]
mov dword [ecx + 4], 1
jmp 0x4050f0
mov edx, dword [ebp - 0x2e90]
mov dword [edx + 4], 0
push 0x4681d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e70]
call fcn.0043de93
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043de93
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.0043de93
jmp 0x4051d4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e70]
call fcn.0043de93
jmp 0x40518c
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.00404660
test eax, eax
je 0x405142
mov eax, dword [ebp - 0x12c]
sub eax, 1
mov ecx, dword [ebp - 0x2e90]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp - 0x2e90]
mov dword [edx + 4], 1
mov ecx, dword [ebp - 0x2e90]
call fcn.00405217
jmp 0x40518c
mov eax, dword [ebp - 0x2e90]
mov dword [eax + 4], 0
push 0x4681d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043de93
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.0043de93
jmp 0x4051d4
push 0x4681d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x2d68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043de93
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.0043de93
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret