Function at 0x10165e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp + 8]
push eax
push 0x1001df0
push dword [ebp + 8]
mov edi, 0x80004005
mov esi, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1015c81
mov eax, edi
jmp 0x1016832
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
je 0x10163e5
push ebx
or edi, 0xffffffff
push edi
push ebx
lea eax, [esi + 0xf8]
push eax
push 0x1002ed4
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x104]
push eax
push 0x1002eb8
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x158]
push eax
push 0x1002e9c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x164]
push eax
push 0x1002e7c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x170]
push eax
push 0x1002e60
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x140]
push eax
push 0x1002e40
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x110]
push eax
push 0x1002e28
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x11c]
push eax
push 0x1002e10
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x128]
push eax
push 0x1002dfc
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x134]
push eax
push 0x1002de4
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x14c]
push eax
push 0x1002dc4
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x17c]
push eax
push 0x1002dac
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x188]
push eax
push 0x1002d94
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x194]
push eax
push 0x1002d78
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x1a0]
push eax
push 0x1002d5c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x1ac]
push eax
push 0x1002d40
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push ebx
push edi
push ebx
lea eax, [esi + 0x1b8]
push eax
push 0x1002d24
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0xf8]
push eax
push edi
push eax
lea ecx, [esi + 0xfc]
push ecx
push 0x1002d04
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x104]
push eax
push edi
push eax
lea ecx, [esi + 0x108]
push ecx
push 0x1002ce8
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x158]
push eax
push edi
push eax
lea ecx, [esi + 0x15c]
push ecx
push 0x1002ccc
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x164]
push eax
push edi
push eax
lea ecx, [esi + 0x168]
push ecx
push 0x1002cac
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x170]
push eax
push edi
push eax
lea ecx, [esi + 0x174]
push ecx
push 0x1002c90
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x140]
push eax
push edi
push eax
lea ecx, [esi + 0x144]
push ecx
push 0x1002c70
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x110]
push eax
push edi
push eax
lea ecx, [esi + 0x114]
push ecx
push 0x1002c58
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x11c]
push eax
push edi
push eax
lea ecx, [esi + 0x120]
push ecx
push 0x1002c40
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x128]
push eax
push edi
push eax
lea ecx, [esi + 0x12c]
push ecx
push 0x1002c2c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x134]
push eax
push edi
push eax
lea ecx, [esi + 0x138]
push ecx
push 0x1002c14
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x14c]
push eax
push edi
push eax
lea ecx, [esi + 0x150]
push ecx
push 0x1002bf4
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x17c]
push eax
push edi
push eax
lea ecx, [esi + 0x180]
push ecx
push 0x1002bdc
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x188]
push eax
push edi
push eax
lea ecx, [esi + 0x18c]
push ecx
push 0x1002bc4
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x194]
push eax
push edi
push eax
lea ecx, [esi + 0x198]
push ecx
push 0x1002ba8
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x1a0]
push eax
push edi
push eax
lea ecx, [esi + 0x1a4]
push ecx
push 0x1002b8c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x1ac]
push eax
push edi
push eax
lea ecx, [esi + 0x1b0]
push ecx
push 0x1002b70
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x1b8]
push eax
push edi
push eax
lea ecx, [esi + 0x1bc]
push ecx
push 0x1002b54
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0xf8]
push eax
push dword [esi + 0xfc]
push eax
lea eax, [esi + 0xf4]
push eax
push 0x1002b3c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x104]
push eax
push dword [esi + 0x108]
push eax
lea eax, [esi + 0x100]
push eax
push 0x1002b28
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x158]
push eax
push dword [esi + 0x15c]
push eax
lea eax, [esi + 0x154]
push eax
push 0x1002b14
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x164]
push eax
push dword [esi + 0x168]
push eax
lea eax, [esi + 0x160]
push eax
push 0x1002afc
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x170]
push eax
push dword [esi + 0x174]
push eax
lea eax, [esi + 0x16c]
push eax
push 0x1002ae8
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x140]
push eax
push dword [esi + 0x144]
push eax
lea eax, [esi + 0x13c]
push eax
push 0x1002ad0
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x110]
push eax
push dword [esi + 0x114]
push eax
lea eax, [esi + 0x10c]
push eax
push 0x1002ac0
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x11c]
push eax
push dword [esi + 0x120]
push eax
lea eax, [esi + 0x118]
push eax
push 0x1002ab0
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x128]
push eax
push dword [esi + 0x12c]
push eax
lea eax, [esi + 0x124]
push eax
push 0x1002aa4
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x134]
push eax
push dword [esi + 0x138]
push eax
lea eax, [esi + 0x130]
push eax
push 0x1002a94
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x14c]
push eax
push dword [esi + 0x150]
push eax
lea eax, [esi + 0x148]
push eax
push 0x1002a7c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x17c]
push eax
push dword [esi + 0x180]
push eax
lea eax, [esi + 0x178]
push eax
push 0x1002a6c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x188]
push eax
push dword [esi + 0x18c]
push eax
lea eax, [esi + 0x184]
push eax
push 0x1002a4c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x194]
push eax
push dword [esi + 0x198]
push eax
lea eax, [esi + 0x190]
push eax
push 0x1002a38
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x1a0]
push eax
push dword [esi + 0x1a4]
push eax
lea eax, [esi + 0x19c]
push eax
push 0x1002a24
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x1ac]
push eax
push dword [esi + 0x1b0]
push eax
lea eax, [esi + 0x1a8]
push eax
push 0x1002a10
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov eax, dword [esi + 0x1b8]
push eax
push dword [esi + 0x1bc]
add esi, 0x1b4
push eax
push esi
push 0x10029fc
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
xor esi, esi
jmp 0x1016826
push dword [esi + 0xf4]
lea eax, [esi + 0x9c]
push dword [esi + 0xfc]
push dword [esi + 0xf8]
push eax
push 0x1002b3c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x100]
lea eax, [esi + 0xa0]
push dword [esi + 0x108]
push dword [esi + 0x104]
push eax
push 0x1002b28
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x154]
lea eax, [esi + 0xbc]
push dword [esi + 0x15c]
push dword [esi + 0x158]
push eax
push 0x1002b14
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x160]
lea eax, [esi + 0xc0]
push dword [esi + 0x168]
push dword [esi + 0x164]
push eax
push 0x1002afc
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x16c]
lea eax, [esi + 0xc4]
push dword [esi + 0x174]
push dword [esi + 0x170]
push eax
push 0x1002ae8
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x13c]
lea eax, [esi + 0xb4]
push dword [esi + 0x144]
push dword [esi + 0x140]
push eax
push 0x1002ad0
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x10c]
lea eax, [esi + 0xa4]
push dword [esi + 0x114]
push dword [esi + 0x110]
push eax
push 0x1002ac0
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x118]
lea eax, [esi + 0xa8]
push dword [esi + 0x120]
push dword [esi + 0x11c]
push eax
push 0x1002ab0
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x124]
lea eax, [esi + 0xac]
push dword [esi + 0x12c]
push dword [esi + 0x128]
push eax
push 0x1002aa4
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push dword [esi + 0x138]
push dword [esi + 0x134]
push eax
push 0x1002a94
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x148]
lea eax, [esi + 0xb8]
push dword [esi + 0x150]
push dword [esi + 0x14c]
push eax
push 0x1002a7c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x178]
lea eax, [esi + 0xc8]
push dword [esi + 0x180]
push dword [esi + 0x17c]
push eax
push 0x1002a6c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push 0x1e
push 0x64
push ebx
lea eax, [esi + 0xe4]
push eax
push 0x1002a5c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x184]
lea eax, [esi + 0xcc]
push dword [esi + 0x18c]
push dword [esi + 0x188]
push eax
push 0x1002a4c
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x190]
lea eax, [esi + 0xd0]
push dword [esi + 0x198]
push dword [esi + 0x194]
push eax
push 0x1002a38
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x19c]
lea eax, [esi + 0xd4]
push dword [esi + 0x1a4]
push dword [esi + 0x1a0]
push eax
push 0x1002a24
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x1a8]
lea eax, [esi + 0xd8]
push dword [esi + 0x1b0]
push dword [esi + 0x1ac]
push eax
push 0x1002a10
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push dword [esi + 0x1b4]
lea eax, [esi + 0xdc]
push dword [esi + 0x1bc]
push dword [esi + 0x1b8]
push eax
push 0x10029fc
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push 2
push 3
push 2
lea eax, [ebp - 8]
push eax
push 0x1002998
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
xor eax, eax
cmp dword [ebp - 8], 3
setne al
xor edi, edi
inc edi
push edi
push edi
push ebx
mov dword [esi + 0x90], eax
lea eax, [esi + 0x94]
push eax
push 0x10029ac
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push edi
push edi
push ebx
lea eax, [esi + 0x8c]
push eax
push 0x10029e4
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
push edi
push edi
push ebx
lea eax, [esi + 0x98]
push eax
push 0x10029c4
push dword [ebp + 8]
call fcn.0100a653
test eax, eax
jl 0x1016823
mov ecx, esi
call fcn.010159f6
mov eax, dword [esi + 0x1d4]
mov dword [esi + 0x1dc], eax
mov eax, dword [esi + 0x1d8]
mov dword [esi + 0x1e0], eax
mov eax, dword [esi + 0x200]
mov dword [esi + 0x208], eax
mov eax, dword [esi + 0x204]
mov dword [esi + 0x20c], eax
mov eax, dword [esi + 0x22c]
mov dword [esi + 0x234], eax
mov eax, dword [esi + 0x230]
mov dword [esi + 0x238], eax
mov eax, dword [esi + 0x284]
mov dword [esi + 0x28c], eax
mov eax, dword [esi + 0x288]
push ebx
mov dword [esi + 0x290], eax
add esi, 0x84
push esi
push ebx
push 0x1b
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
jne 0x1016820
mov dword [esi], ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 8