Function at 0x100123a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
sub esp, 0x70
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x60], 0
push edi
push esi
xor al, al
mov dword [esp + 0x6c], esi
mov byte [esp + 0x1b], al
mov ebx, ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x60], ebx
push eax
push esi
push 0x2001d
push esi
push esi
push esi
push str.SOFTWAREDownloadManager
mov ebp, 0x1005bdb0
mov word [esp + 0x8c], 0xff
push reloc.WS2_32.dll_accept
mov dword [esp + 0x84], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x54], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp + 0x20]
lea edi, [esi + 0x7c]
test eax, eax
je 0x10013189
mov ecx, dword [ebx + 0x1b4c]
lea edi, [ebx + 0x1b4c]
test ecx, ecx
je 0x1001243c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edi
push 0
push 0x2001b
push 0
push 0
push 0
push str.ConfigTime
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [edi]
test ecx, ecx
je 0x100124c1
cmp dword [esp + 0x18], 1
jne 0x10012488
mov eax, dword [ebx + 0x1168]
push 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100124c1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100124c1
mov eax, dword [esp + 0x18]
cmp dword [ebx + 0x1168], eax
je 0x1001317f
mov dword [ebx + 0x1168], eax
mov ecx, ebx
call fcn.10011ef0
lea eax, [esp + 0x48]
push eax
push 1
push 0
push str.menuExt
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x100526e8
mov dword [esp + 0x4c], 0x14
mov dword [esp + 0x54], 0x80
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x40], eax
movzx eax, al
and eax, 0xf
mov dword [esp + 0x58], ecx
dec eax
mov dword [esp + 0x1c], 4
cmp eax, 3
ja case.default.0x10012521
jmp dword [eax*4 + 0x10013504]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ecx
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.default.0x10012521
cmp dword [esp + 0x18], eax
mov ecx, dword [esp + 0x2c]
setne al
mov byte [ecx + ebx], al
jmp case.default.0x10012521
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ecx
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.default.0x10012521
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [ecx + ebx], eax
jmp case.default.0x10012521
mov eax, dword [esp + 0x48]
test eax, eax
je case.default.0x10012521
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.default.0x10012521
cmp dword [esp + 0x18], 1
mov ecx, dword [esp + 0x2c]
sete al
mov byte [ecx + ebx], al
jmp case.default.0x10012521
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push ecx
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.default.0x10012521
mov eax, dword [esp + 0x1c]
shr eax, 1
lea eax, [eax*2 + 2]
cmp esi, eax
jae 0x10012614
push eax
lea ecx, [esp + 0x64]
call fcn.100049c0
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
test eax, eax
je case.default.0x10012521
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
push ebp
push 0
push 0
push dword [esp + 0x68]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.default.0x10012521
mov ecx, dword [esp + 0x1c]
shr ecx, 1
test esi, esi
je 0x1001264e
lea eax, [esi - 1]
shr eax, 1
cmp ecx, eax
cmovb eax, ecx
jmp 0x10012650
xor eax, eax
push eax
push ebp
call fcn.100014c8
xor ecx, ecx
mov dword [esp + 0x6c], eax
add esp, 8
mov word [ebp + eax*2], cx
mov eax, dword [esp + 0x40]
test al, 0x20
je 0x1001268e
lea ecx, [esp + 0x60]
call fcn.10004cf0
sub esp, 8
lea ecx, [esp + 0x68]
call fcn.10004df0
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x40]
test al, 0x10
je 0x100126dc
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebx]
cmp eax, 0x1005bdb0
je 0x100126b1
add eax, 0xfffffffc
push eax
call dword [sym.imp.msvcrt.dll_free]
mov ecx, dword [esp + 0x30]
add esp, 4
mov eax, dword [esp + 0x64]
mov dword [ecx + ebx], ebp
mov ebp, 0x1005bdb0
mov dword [ecx + ebx + 8], esi
xor esi, esi
mov dword [ecx + ebx + 4], eax
mov al, byte [esp + 0x6c]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
jmp 0x10012792
or ecx, 0xffffffff
mov eax, ebp
movzx edx, word [eax]
dec ecx
test dx, dx
je 0x100126fc
cmp dx, word [esp + 0x54]
jae 0x10012ab8
add eax, 2
test ecx, ecx
jne 0x100126e1
xor al, al
push 0
push dword [esp + 0x70]
mov byte [esp + 0x84], al
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0x6c]
push eax
push ebp
mov dword [esp + 0x80], 0x1005bdb0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov byte [esp + 0x8d], 0
call fcn.10003870
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebx]
cmp eax, 0x1005bdb0
je 0x1001275f
push eax
call dword [sym.imp.msvcrt.dll_free]
mov ecx, dword [esp + 0x30]
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + ebx + 4], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + ebx + 8], eax
mov al, byte [esp + 0x7c]
mov dword [esp + 0x70], 0x1005bdb0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov byte [ecx + ebx + 0xc], al
add edi, 0xc
sub dword [esp + 0x4c], 1
jne 0x100124f5
lea eax, [esp + 0x28]
push eax
push 1
push 0
push str.SpecialKeys
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10012a66
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 4
push eax
push 0
push 0
push str.UseKeyToForce
push dword [esp + 0x3c]
call edi
cmp dword [esp + 0x18], 0
je 0x10012936
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.ShiftF
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x10012836
cmp dword [esp + 0x18], eax
mov al, byte [ebx + 0x1ae4]
setne cl
and al, 0xfe
or cl, al
mov byte [ebx + 0x1ae4], cl
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.CtrlF
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x10012876
mov ecx, dword [esp + 0x18]
mov al, byte [ebx + 0x1ae4]
neg ecx
sbb cl, cl
and al, 0xfd
and cl, 2
or cl, al
mov byte [ebx + 0x1ae4], cl
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.AltF
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x100128b6
mov ecx, dword [esp + 0x18]
mov al, byte [ebx + 0x1ae4]
neg ecx
sbb cl, cl
and al, 0xfb
and cl, 4
or cl, al
mov byte [ebx + 0x1ae4], cl
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.InsF
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x100128f6
mov ecx, dword [esp + 0x18]
mov al, byte [ebx + 0x1ae4]
neg ecx
sbb cl, cl
and al, 0xf7
and cl, 8
or cl, al
mov byte [ebx + 0x1ae4], cl
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.CheckMouse
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x10012936
mov ecx, dword [esp + 0x18]
mov al, byte [ebx + 0x1ae4]
neg ecx
sbb cl, cl
and al, 0x7f
and cl, 0x80
or cl, al
mov byte [ebx + 0x1ae4], cl
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 4
push eax
push 0
push 0
push str.UseKeyToPrevent
push dword [esp + 0x3c]
call edi
cmp dword [esp + 0x18], 0
je 0x10012a66
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.ShiftP
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x100129a6
cmp dword [esp + 0x18], eax
mov al, byte [ebx + 0x1ae5]
setne cl
and al, 0xfe
or cl, al
mov byte [ebx + 0x1ae5], cl
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.CtrlP
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x100129e6
mov ecx, dword [esp + 0x18]
mov al, byte [ebx + 0x1ae5]
neg ecx
sbb cl, cl
and al, 0xfd
and cl, 2
or cl, al
mov byte [ebx + 0x1ae5], cl
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.AltP
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x10012a26
mov ecx, dword [esp + 0x18]
mov al, byte [ebx + 0x1ae5]
neg ecx
sbb cl, cl
and al, 0xfb
and cl, 4
or cl, al
mov byte [ebx + 0x1ae5], cl
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.DelP
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x10012a66
mov ecx, dword [esp + 0x18]
mov al, byte [ebx + 0x1ae5]
neg ecx
sbb cl, cl
and al, 0xef
and cl, 0x10
or cl, al
mov byte [ebx + 0x1ae5], cl
cmp esi, 0x20a
jae 0x10012a84
push 0x20a
lea ecx, [esp + 0x64]
call fcn.100049c0
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
lea eax, [esp + 0x38]
push eax
push 0x20019
push 0
push str.IDMBI
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10012c19
xor ecx, ecx
mov dword [esp + 0x4c], ecx
test esi, esi
je 0x10012abf
lea eax, [esi - 1]
shr eax, 1
jmp 0x10012ac1
mov al, 2
jmp 0x100126fe
xor eax, eax
push 0
push 0
push 0
push 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
push ebp
push ecx
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10012c13
test esi, esi
je 0x10012afa
lea ecx, [esi - 1]
shr ecx, 1
cmp dword [esp + 0x24], ecx
cmovb ecx, dword [esp + 0x24]
jmp 0x10012afc
xor ecx, ecx
push ecx
push ebp
call fcn.100014c8
mov edi, eax
xor ecx, ecx
add esp, 8
mov dword [esp + 0x64], edi
lea eax, [edi + edi]
mov word [eax + ebp], cx
test edi, edi
je 0x10012c09
lea eax, [esp + 0x50]
push eax
push 0xf003f
push ecx
push ebp
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10012c09
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 1
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 4
push eax
push 0
push 0
push 0x10056090
push dword [esp + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], 0
mov esi, 0x1278
mov ecx, 0x1268
cmovne esi, ecx
add esi, ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x10012bc2
lea eax, [eax*2 + 4]
cmp dword [esi + 8], eax
jae 0x10012ba5
push eax
mov ecx, esi
call fcn.100049c0
test eax, eax
je 0x10012bc2
mov ecx, dword [esi + 4]
mov edx, 0x7c
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
inc ecx
xor edx, edx
mov dword [esi + 4], ecx
mov word [eax + ecx*2], dx
test edi, edi
jle 0x10012c05
mov eax, dword [esi + 4]
add eax, edi
lea eax, [eax*2 + 2]
cmp dword [esi + 8], eax
jae 0x10012be3
push eax
mov ecx, esi
call fcn.100049c0
test eax, eax
je 0x10012c05
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea edx, [eax + ecx*2]
lea eax, [edi + ecx]
xor ecx, ecx
mov dword [esi + 4], eax
lea eax, [edi + edi]
push eax
push ebp
push edx
mov word [edx + eax], cx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x4c]
inc ecx
jmp 0x10012aa9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x34]
push eax
push 0x20019
push 0
push str.DwnlPanel
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10012e22
lea eax, [esp + 0x44]
push eax
push 0x20019
push 0
push str.MinSize
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.DonlCaptWP
push dword [esp + 0x48]
call edi
test eax, eax
jne 0x10012c8a
cmp dword [esp + 0x18], 1
sete al
mov byte [ebx + 0x117f], al
mov eax, dword [ebx + 0x11a8]
xor ecx, ecx
mov dword [ebx + 0x11ac], 0
mov dword [esp + 0x2c], 0
mov byte [eax], 0
lea eax, [ebx + 0x1324]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ecx
test esi, esi
je 0x10012cc0
lea eax, [esi - 1]
shr eax, 1
jmp 0x10012cc2
xor eax, eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 4
push eax
lea eax, [esp + 0x44]
push eax
push 0
lea eax, [esp + 0x34]
push eax
push ebp
push ecx
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10012e1c
mov ecx, dword [esp + 0x24]
cmp ecx, 5
ja 0x10012e12
test esi, esi
je 0x10012d15
lea eax, [esi - 1]
shr eax, 1
cmp ecx, eax
cmovb eax, ecx
jmp 0x10012d17
xor eax, eax
push eax
push ebp
call fcn.100014c8
mov edi, eax
add esp, 8
xor eax, eax
mov dword [esp + 0x64], edi
mov word [ebp + edi*2], ax
test edi, edi
je 0x10012e12
cmp dword [esp + 0x3c], 4
jne 0x10012e12
cmp dword [esp + 0x18], 1
jne 0x10012e12
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10012daf
cmp dword [esp + 0x2c], 0x64
jge 0x10012daf
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x44]
push ecx
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10012daf
cmp dword [esp + 0x3c], 4
jne 0x10012daf
mov ecx, dword [esp + 0x40]
push eax
push dword [esp + 0x70]
add ecx, 0xfffffff0
push edi
push ebp
call fcn.10003870
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
inc dword [esp + 0x2c]
mov dword [ecx], eax
add ecx, 0x14
mov dword [esp + 0x40], ecx
mov eax, dword [ebx + 0x11ac]
test eax, eax
je 0x10012dfb
add eax, 2
cmp dword [ebx + 0x11b0], eax
jae 0x10012dd4
push eax
lea ecx, [ebx + 0x11a8]
call fcn.100035c0
test eax, eax
je 0x10012dfb
mov ecx, dword [ebx + 0x11ac]
mov eax, dword [ebx + 0x11a8]
mov byte [ecx + eax], 0x7c
mov ecx, dword [ebx + 0x11ac]
mov eax, dword [ebx + 0x11a8]
inc ecx
mov dword [ebx + 0x11ac], ecx
mov byte [ecx + eax], 0
push dword [ebx + 0x11ac]
lea ecx, [ebx + 0x11a8]
push dword [esp + 0x70]
push edi
push ebp
call fcn.10003870
mov ecx, dword [esp + 0x4c]
inc ecx
jmp 0x10012cb1
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x30]
push eax
push 0x20019
push 0
push str.DwnlSelPanel
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10013159
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.PanelMode
push dword [esp + 0x44]
call edi
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x10012e7a
cmp ecx, 2
setne al
mov byte [ebx + 0x1180], al
cmp ecx, 3
jne 0x10013159
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
push dword [esp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10013159
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x10013159
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10013159
lea ecx, [eax + 2]
mov word [esp + 0x7c], 0xff
imul ecx, edx
xor esi, esi
mov edi, 0x1005bdb0
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x78], esi
test ecx, ecx
jle 0x10012f0e
lea ecx, [ecx*2 + 2]
test ecx, ecx
je 0x10012f0e
push ecx
lea ecx, [esp + 0x74]
call fcn.100049c0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
lea ecx, [eax*2 + 2]
mov eax, dword [esp + 0x68]
cmp eax, ecx
jae 0x10012f2f
push ecx
lea ecx, [esp + 0x64]
call fcn.100049c0
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
test eax, eax
je 0x10012f38
dec eax
shr eax, 1
jmp 0x10012f3a
xor eax, eax
push 0
push 0
push 0
inc eax
mov dword [esp + 0x4c], 0
push 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push dword [esp + 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100130b0
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x10012f85
lea ecx, [ebx - 1]
shr ecx, 1
cmp dword [esp + 0x24], ecx
cmovb ecx, dword [esp + 0x24]
jmp 0x10012f87
xor ecx, ecx
push ecx
push ebp
call fcn.100014c8
xor edx, edx
mov dword [esp + 0x54], eax
add esp, 8
lea ecx, [eax + eax]
mov dword [esp + 0x58], ecx
mov word [ecx + ebp], dx
test eax, eax
je 0x1001307a
test esi, esi
je 0x10012fe5
lea eax, [esi*2 + 4]
cmp dword [esp + 0x78], eax
jae 0x10012fd1
push eax
lea ecx, [esp + 0x74]
call fcn.100049c0
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
test eax, eax
je 0x10012fe5
mov eax, 0x7c
mov word [edi + esi*2], ax
inc esi
xor eax, eax
mov dword [esp + 0x74], esi
mov word [edi + esi*2], ax
movzx eax, word [ebp]
cmp eax, 0x2a
je 0x1001302a
cmp eax, 0x7e
je 0x1001302a
lea eax, [esi*2 + 4]
cmp dword [esp + 0x78], eax
jae 0x10013016
push eax
lea ecx, [esp + 0x74]
call fcn.100049c0
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
test eax, eax
je 0x1001302a
mov eax, 0x7e
mov word [edi + esi*2], ax
inc esi
xor eax, eax
mov dword [esp + 0x74], esi
mov word [edi + esi*2], ax
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x1001307a
add eax, esi
lea eax, [eax*2 + 2]
cmp dword [esp + 0x78], eax
jae 0x10013057
push eax
lea ecx, [esp + 0x74]
call fcn.100049c0
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
test eax, eax
je 0x1001307a
mov ecx, dword [esp + 0x58]
lea eax, [edi + esi*2]
add esi, dword [esp + 0x4c]
xor edx, edx
push ecx
push ebp
push eax
mov dword [esp + 0x80], esi
mov word [eax + ecx], dx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
push 0
push 0
push 0
push 0
mov dword [esp + 0x34], eax
inc ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x50], ecx
push eax
push ebp
push ecx
push dword [esp + 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10012f71
mov ebx, dword [esp + 0x5c]
or ecx, 0xffffffff
mov eax, ebp
movzx edx, word [eax]
dec ecx
test dx, dx
je 0x100130d0
cmp dx, word [esp + 0x54]
jae 0x10013209
add eax, 2
test ecx, ecx
jne 0x100130b5
xor al, al
push 0
push dword [esp + 0x80]
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 0x1005bdb0
push esi
push edi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov byte [esp + 0x7c], al
mov byte [esp + 0x7d], 0
call fcn.10003870
mov eax, dword [ebx + 0x1208]
mov esi, dword [sym.imp.msvcrt.dll_free]
cmp eax, 0x1005bdb0
je 0x10013120
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x1208], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x120c], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x1210], eax
mov al, byte [esp + 0x6c]
mov byte [ebx + 0x1214], al
cmp edi, 0x1005bdb0
je 0x10013159
lea eax, [edi - 4]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x20]
mov edx, ebx
call fcn.10042be0
mov edx, dword [esp + 0x20]
push ecx
call fcn.10005b80
add esp, 4
mov ecx, ebx
call fcn.10013690
mov ecx, ebx
call fcn.10013bb0
mov edi, 0x7c
mov byte [esp + 0x17], 1
mov eax, dword [ebx + 0x1174]
lea esi, [ebx + 0x1298]
shr eax, 0x1c
and al, 1
cmp dword [ebx + 0x129c], 0
mov byte [0x1005be00], al
je 0x10013210
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 4]
cmp dword [esi + 8], eax
jae 0x100131c6
push eax
mov ecx, esi
call fcn.100049c0
test eax, eax
je 0x100131db
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov word [eax + ecx*2], di
mov ecx, dword [esi + 4]
mov eax, dword [esi]
inc ecx
xor edx, edx
mov dword [esi + 4], ecx
mov word [eax + ecx*2], dx
mov eax, dword [esi + 4]
lea eax, [eax*2 + 0x24e]
cmp dword [esi + 8], eax
jae 0x100131f6
push eax
mov ecx, esi
call fcn.100049c0
test eax, eax
je 0x10013253
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea edi, [eax + ecx*2]
lea eax, [ecx + 0x126]
mov dword [esi + 4], eax
jmp 0x1001323e
mov al, 2
jmp 0x100130d2
cmp dword [esi + 8], 0x24e
jae 0x10013235
push 0x24e
mov ecx, esi
call fcn.100049c0
test eax, eax
jne 0x10013235
mov dword [esi + 4], eax
xor ecx, ecx
mov eax, dword [esi]
mov word [eax], cx
jmp 0x10013253
mov edi, dword [esi]
mov dword [esi + 4], 0x126
xor eax, eax
mov ecx, 0x93
mov esi, 0x100527e0
mov word [edi + 0x24c], ax
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x12ec], 0
lea esi, [ebx + 0x12d8]
je 0x10013361
mov edi, dword [ebx + 0x12ec]
mov eax, dword [ebx + 0x12e8]
mov dword [esp + 0x5c], eax
test edi, edi
jle 0x100132af
lea ecx, [edi + edi]
lea eax, [ecx + 2]
cmp dword [esi + 8], eax
jae 0x10013294
push eax
mov ecx, esi
call fcn.100049c0
test eax, eax
je 0x100132af
lea ecx, [edi + edi]
mov eax, dword [esi]
xor edx, edx
push ecx
push dword [esp + 0x60]
mov dword [esi + 4], edi
push eax
mov word [eax + ecx], dx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x100132bd
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], 0
mov word [eax], cx
mov ecx, esi
call fcn.1000a7a0
mov edi, dword [sym.imp.msvcrt.dll_free]
mov ecx, ebx
call fcn.10013520
mov ecx, dword [ebx + 0x1b4c]
test ecx, ecx
je 0x100132f3
mov eax, dword [ebx + 0x1b44]
test eax, eax
je 0x100132f3
push 1
push eax
push 5
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10013304
push eax
call esi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1001330f
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1001331a
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10013325
push eax
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10013330
push eax
call esi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1001333b
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10013346
push eax
call esi
cmp dword [ebx + 0x1168], 0xffffffff
jne 0x100134e0
mov ecx, ebx
call fcn.1000fe60
xor bl, bl
jmp 0x100134e4
cmp dword [esi + 8], 0x412
jae 0x10013376
push 0x412
mov ecx, esi
call fcn.100049c0
mov eax, dword [ebx + 0x12e0]
test eax, eax
je 0x10013385
dec eax
shr eax, 1
jmp 0x10013387
xor eax, eax
push eax
push dword [esi]
push dword [0x1005be04]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100132c4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100133af
dec ecx
shr ecx, 1
cmp eax, ecx
cmovb ecx, eax
jmp 0x100133b1
xor ecx, ecx
push ecx
push dword [esi]
call fcn.100014c8
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 4], eax
mov word [ecx + eax*2], dx
mov ecx, esi
call fcn.1000a7a0
push 0x36
mov word [esp + 0x88], 0xff
mov dword [esp + 0x84], 0x32
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100133f4
add edi, 4
mov dword [esp + 0x70], edi
test edi, edi
je 0x10013435
xor eax, eax
mov dword [esp + 0x74], 9
mov word [edi + 0x12], ax
mov eax, dword [str.IDMan.exe]
mov dword [edi], eax
mov eax, dword [0x10056108]
mov dword [edi + 4], eax
mov eax, dword [0x1005610c]
mov dword [edi + 8], eax
mov eax, dword [0x10056110]
mov dword [edi + 0xc], eax
mov ax, word [0x10056114]
mov word [edi + 0x10], ax
jmp 0x10013452
mov dword [esp + 0x70], 0x1005bdb0
mov edi, 0x1005bdb0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov eax, dword [esi]
lea ecx, [ebx + 0x12e8]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x5c], eax
test eax, eax
jle 0x100134a9
lea esi, [eax + eax]
lea eax, [esi + 2]
cmp dword [ecx + 8], eax
jae 0x10013484
push eax
call fcn.100049c0
lea ecx, [ebx + 0x12e8]
test eax, eax
je 0x100134a9
mov eax, dword [ecx]
mov edx, dword [esp + 0x5c]
push esi
push dword [esp + 0x5c]
mov dword [ecx + 4], edx
xor ecx, ecx
push eax
mov word [esi + eax], cx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ecx, [ebx + 0x12e8]
jmp 0x100134b7
mov eax, dword [ecx]
xor edx, edx
mov dword [ecx + 4], 0
mov word [eax], dx
lea edx, [esp + 0x70]
call fcn.1000a630
cmp edi, 0x1005bdb0
je 0x100132c4
lea eax, [edi - 4]
mov edi, dword [sym.imp.msvcrt.dll_free]
push eax
call edi
add esp, 4
jmp 0x100132ca
mov bl, byte [esp + 0x17]
cmp ebp, 0x1005bdb0
je 0x100134f5
lea ecx, [ebp - 4]
push ecx
call edi
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x70
ret 4