Function at 0x406100
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584d4f
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x5eb1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
xor esi, esi
mov dword [ebp - 0x264], 0x20019
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x294], 0xff
mov dword [ebp - 0x28c], esi
mov dword [ebp - method.CArray_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.virtual_0], vtable.CArray_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.0
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x298], esi
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x2a0], esi
mov dword [ebp - method.CArray_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.virtual_0], vtable.CArray_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.0
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2b4], esi
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.00407590
add esp, 8
mov byte [ebp - 4], 7
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x407585
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x260], edi
or ecx, 0xffffffff
mov byte [ebp - 4], 8
mov dword [ebp - 0x290], ecx
cmp dword [ebp - 0x2a0], ecx
jle 0x40736f
nop dword [eax]
xor al, al
mov dword [ebp - 0x284], eax
cmp ecx, 0xffffffff
jne 0x4062e2
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0
push eax
push dword [ebp - 0x264]
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x240], ecx
test ecx, ecx
jne 0x4062d3
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x4062ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
jmp 0x4062ad
xor ecx, ecx
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x264]
and eax, 0x300
mov byte [ebp - 4], 8
mov dword [ebp - 0x27c], eax
jmp 0x4063e2
mov ecx, dword [ebp - 0x240]
mov byte [ebp - 4], 8
jmp 0x4063e2
mov byte [ebp - 4], 0xb
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x407585
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x290]
mov byte [ebp - 4], 0xc
test eax, eax
js 0x407580
cmp eax, dword [ebp - 0x2a0]
jge 0x407580
mov ecx, dword [ebp - 0x2a4]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push dword [ecx + eax*4]
lea eax, [ebp - 0x258]
push str._s_s
push eax
call fcn.00404240
add esp, 0x10
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x264]
mov dword [ebp - 0x234], 0
push 0
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x240], ecx
test ecx, ecx
jne 0x4063ba
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x40639d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x264]
and eax, 0x300
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 8
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4063d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
test ecx, ecx
jne 0x407350
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x28c]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x407350
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x40732d
xor ecx, ecx
mov dword [ebp - 0x258], ecx
test eax, eax
je 0x40732d
nop dword [eax]
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x406451
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x270], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x294]
mov dword [ebp - 0x26c], 0
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x294], 0xff
push eax
push ecx
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4072ea
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov ecx, dword [ebp - 0x284]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x284], ecx
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x270]
test eax, eax
jne 0x40650f
test ecx, ecx
je 0x4064f9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x26c], 0
mov byte [ebp - 4], 8
test eax, eax
jne 0x4072ea
cmp byte [ebp - 0x284], al
jne 0x4066d0
lea eax, [esi + esi]
xor esi, esi
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push esi
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x23c], esi
push eax
push esi
push str.DisplayName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4072ea
mov eax, dword [ebp - 0x2c0]
cmp eax, 1
je 0x406570
cmp eax, 2
jne 0x4072ea
mov eax, dword [ebp - 0x234]
shr eax, 1
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0x10
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x407585
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
mov eax, dword [esi - 8]
mov ecx, 1
mov edx, dword [ebp - 0x244]
sub eax, edx
sub ecx, dword [esi - 4]
or eax, ecx
mov byte [ebp - 4], 0x11
jge 0x4065d8
push edx
lea ecx, [ebp - 0x234]
call fcn.00408150
mov esi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x244]
lea eax, [edx + edx]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x244]
push eax
push esi
lea eax, [ebp - 0x2c4]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406651
mov eax, dword [ebp - 0x2c4]
cmp eax, 1
je 0x406621
cmp eax, 2
jne 0x406651
mov ecx, dword [ebp - 0x244]
test esi, esi
je 0x406647
test ecx, ecx
je 0x406642
test cl, 1
jne 0x406651
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x406647
jmp 0x406651
xor eax, eax
mov word [esi], ax
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x23c], eax
mov ecx, dword [esi - 8]
lea eax, [esi - 0x10]
test esi, esi
jne 0x40665f
xor ecx, ecx
jmp 0x406676
push ecx
push esi
call fcn.00561908
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x407576
lea eax, [esi - 0x10]
cmp ecx, dword [eax + 8]
jg 0x407576
mov dword [eax + 4], ecx
xor eax, eax
mov word [esi + ecx*2], ax
push dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov byte [ebp - 4], 8
lea edx, [esi - 0x10]
test eax, eax
jne 0x4066bb
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4072e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4072e4
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4066d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x23c]
add eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push 0
lea eax, [ebp - 0x2c8]
push eax
push 0
push str.DisplayVersion
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4070eb
mov eax, dword [ebp - 0x2c8]
cmp eax, 1
je 0x406727
cmp eax, 2
jne 0x4070eb
mov eax, dword [ebp - 0x234]
shr eax, 1
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x13
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x407585
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
mov eax, dword [esi - 8]
mov ecx, 1
mov edx, dword [ebp - 0x234]
sub eax, edx
sub ecx, dword [esi - 4]
or eax, ecx
mov byte [ebp - 4], 0x14
jge 0x40678f
push edx
lea ecx, [ebp - 0x240]
call fcn.00408150
mov esi, dword [ebp - 0x240]
mov edx, dword [ebp - 0x234]
lea eax, [edx + edx]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push esi
lea eax, [ebp - 0x2cc]
push eax
push 0
push str.DisplayVersion
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406808
mov eax, dword [ebp - 0x2cc]
cmp eax, 1
je 0x4067d8
cmp eax, 2
jne 0x406808
mov ecx, dword [ebp - 0x234]
test esi, esi
je 0x4067fe
test ecx, ecx
je 0x4067f9
test cl, 1
jne 0x406808
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4067fe
jmp 0x406808
xor eax, eax
mov word [esi], ax
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x23c], eax
test esi, esi
jne 0x406810
xor eax, eax
jmp 0x406824
push dword [esi - 8]
push esi
call fcn.00561908
add esp, 8
test eax, eax
js 0x407576
cmp eax, dword [esi - 8]
jg 0x407576
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x407045
lea edi, [eax + ecx*2]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x234], edi
cmp eax, edi
jae 0x406a51
mov esi, eax
push 0x595f78
push esi
call fcn.0055d739
add esp, 8
test eax, eax
je 0x4068a2
mov edi, dword [ebp - 0x274]
nop dword [eax]
lea esi, [eax + 2]
inc edi
push 0x595f78
push esi
call fcn.0055d739
add esp, 8
test eax, eax
jne 0x406880
mov dword [ebp - 0x274], edi
mov edi, dword [ebp - 0x234]
test esi, esi
je 0x4068c1
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4068b0
sub ecx, edx
sar ecx, 1
jmp 0x4068c3
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, edi
jb 0x406861
mov edx, dword [ebp - 0x274]
mov esi, dword [ebp - 0x240]
test edx, edx
jle 0x406a51
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
mov edi, dword [eax - 0xc]
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x254], edi
cmp ecx, edi
mov dword [ebp - 0x244], ecx
mov edx, edi
cmovg edx, ecx
test edx, edx
js 0x407576
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x406931
push edx
lea ecx, [ebp + 0xc]
call fcn.00408150
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
jmp 0x406937
mov eax, dword [ebp - 0x248]
lea ecx, [eax + edi*2]
mov dword [ebp - 0x234], ecx
cmp eax, ecx
jae 0x406a2e
mov esi, eax
nop word [eax + eax]
push 0x595f78
push esi
call fcn.0055d739
mov edi, eax
add esp, 8
test edi, edi
je 0x4069f7
nop dword [eax + eax]
mov eax, dword [ebp - 0x254]
mov ecx, edi
sub ecx, dword [ebp - 0x248]
sar ecx, 1
sub eax, ecx
lea ecx, [edi + 2]
lea eax, [eax*2 - 2]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x4069bc
test ecx, ecx
jne 0x4069b1
call fcn.00561652
mov dword [eax], 0x16
call fcn.005612ff
mov eax, 0x16
jmp 0x4069be
push eax
push ecx
push edi
call fcn.0055ddc0
add esp, 0xc
xor eax, eax
push eax
call fcn.004032c0
push 0
call fcn.004032c0
mov eax, dword [ebp - 0x238]
xor ecx, ecx
dec dword [ebp - 0x254]
mov esi, edi
push 0x595f78
push edi
mov word [edi + eax], cx
call fcn.0055d739
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x406970
test esi, esi
je 0x406a11
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406a00
sub ecx, edx
sar ecx, 1
jmp 0x406a13
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, dword [ebp - 0x234]
jb 0x406950
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x244]
test ecx, ecx
js 0x407576
cmp ecx, dword [eax - 8]
jg 0x407576
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + ecx*2], dx
mov edi, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x254], edx
mov eax, dword [edi - 0xc]
lea eax, [edi + eax*2]
mov dword [ebp - 0x234], eax
cmp edi, eax
jae 0x406c61
mov esi, eax
push 0x595f7c
push edi
call fcn.0055d739
add esp, 8
test eax, eax
je 0x406ab2
mov esi, dword [ebp - 0x254]
nop word [eax + eax]
lea edi, [eax + 2]
inc esi
push 0x595f7c
push edi
call fcn.0055d739
add esp, 8
test eax, eax
jne 0x406a90
mov dword [ebp - 0x254], esi
mov esi, dword [ebp - 0x234]
test edi, edi
je 0x406ad1
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ac0
sub ecx, edx
sar ecx, 1
jmp 0x406ad3
xor ecx, ecx
lea edi, [edi + ecx*2]
add edi, 2
cmp edi, esi
jb 0x406a72
mov edx, dword [ebp - 0x254]
mov esi, dword [ebp - 0x240]
test edx, edx
jle 0x406c61
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
mov edi, dword [eax - 0xc]
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x244], edi
cmp ecx, edi
mov dword [ebp - 0x25c], ecx
mov edx, edi
cmovg edx, ecx
test edx, edx
js 0x407576
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x406b41
push edx
lea ecx, [ebp + 0xc]
call fcn.00408150
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
jmp 0x406b47
mov eax, dword [ebp - 0x248]
lea ecx, [eax + edi*2]
mov dword [ebp - 0x234], ecx
cmp eax, ecx
jae 0x406c3e
mov esi, eax
nop word [eax + eax]
push 0x595f7c
push esi
call fcn.0055d739
mov edi, eax
add esp, 8
test edi, edi
je 0x406c07
nop dword [eax + eax]
mov ecx, dword [ebp - 0x244]
mov edx, edi
sub edx, dword [ebp - 0x248]
sar edx, 1
sub ecx, edx
lea eax, [ecx*2 - 2]
mov dword [ebp - 0x238], eax
lea ecx, [edi + 2]
test eax, eax
je 0x406bcc
test ecx, ecx
jne 0x406bc1
call fcn.00561652
mov dword [eax], 0x16
call fcn.005612ff
mov eax, 0x16
jmp 0x406bce
push eax
push ecx
push edi
call fcn.0055ddc0
add esp, 0xc
xor eax, eax
push eax
call fcn.004032c0
push 0
call fcn.004032c0
mov eax, dword [ebp - 0x238]
xor ecx, ecx
dec dword [ebp - 0x244]
mov esi, edi
push 0x595f7c
push edi
mov word [edi + eax], cx
call fcn.0055d739
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x406b80
test esi, esi
je 0x406c21
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c10
sub ecx, edx
sar ecx, 1
jmp 0x406c23
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, dword [ebp - 0x234]
jb 0x406b60
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x25c]
test ecx, ecx
js 0x407576
cmp ecx, dword [eax - 8]
jg 0x407576
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + ecx*2], dx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x248], 0
mov eax, dword [edi - 0xc]
lea eax, [edi + eax*2]
mov dword [ebp - 0x25c], eax
cmp edi, eax
jae 0x406e7c
mov esi, dword [ebp - 0x248]
nop dword [eax + eax]
push 0x595f80
push edi
call fcn.0055d739
add esp, 8
test eax, eax
je 0x406cbe
lea edi, [eax + 2]
inc esi
push 0x595f80
push edi
call fcn.0055d739
add esp, 8
test eax, eax
jne 0x406ca2
mov dword [ebp - 0x248], esi
test edi, edi
je 0x406cd8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406cc7
sub ecx, edx
sar ecx, 1
jmp 0x406cda
xor ecx, ecx
lea edi, [edi + ecx*2]
add edi, 2
cmp edi, dword [ebp - 0x25c]
jb 0x406c90
mov ecx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x240]
test ecx, ecx
jle 0x406e77
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x244], eax
mov edi, dword [eax - 0xc]
mov edx, edi
sub edx, ecx
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], edx
mov edx, edi
cmp dword [ebp - 0x238], edi
cmovg edx, dword [ebp - 0x238]
test edx, edx
js 0x407576
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x406d54
push edx
lea ecx, [ebp + 0xc]
call fcn.00408150
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x244], eax
jmp 0x406d5a
mov eax, dword [ebp - 0x244]
lea ecx, [eax + edi*2]
mov dword [ebp - 0x250], ecx
cmp eax, ecx
jae 0x406e4e
mov esi, eax
nop dword [eax]
push 0x595f80
push esi
call fcn.0055d739
mov edi, eax
add esp, 8
test edi, edi
je 0x406e17
nop dword [eax + eax]
mov ecx, dword [ebp - 0x234]
mov edx, edi
sub edx, dword [ebp - 0x244]
sar edx, 1
sub ecx, edx
lea eax, [ecx*2 - 2]
mov dword [ebp - 0x25c], eax
lea ecx, [edi + 2]
test eax, eax
je 0x406ddc
test ecx, ecx
jne 0x406dd1
call fcn.00561652
mov dword [eax], 0x16
call fcn.005612ff
mov eax, 0x16
jmp 0x406dde
push eax
push ecx
push edi
call fcn.0055ddc0
add esp, 0xc
xor eax, eax
push eax
call fcn.004032c0
push 0
call fcn.004032c0
mov eax, dword [ebp - 0x25c]
xor ecx, ecx
dec dword [ebp - 0x234]
mov esi, edi
push 0x595f80
push edi
mov word [edi + eax], cx
call fcn.0055d739
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x406d90
test esi, esi
je 0x406e31
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406e20
sub ecx, edx
sar ecx, 1
jmp 0x406e33
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, dword [ebp - 0x250]
jb 0x406d70
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x238]
test ecx, ecx
js 0x407576
cmp ecx, dword [eax - 8]
jg 0x407576
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x248]
cmp ecx, 1
je 0x406e8e
cmp dword [ebp - 0x274], 1
je 0x406e97
cmp dword [ebp - 0x254], 1
je 0x406e97
mov byte [ebp - 0x249], 1
jmp 0x406e9e
mov byte [ebp - 0x249], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.004039d0
lea edi, [eax + 0x10]
mov dword [ebp - 0x250], edi
add esi, 0xfffffff0
mov byte [ebp - 4], 0x15
push esi
call fcn.004039d0
xorps xmm0, xmm0
mov byte [ebp - 4], 0x14
movups xmmword [ebp - 0x220], xmm0
lea esi, [eax + 0x10]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x230]
push eax
push str._d._d._d._d
push esi
movups xmmword [ebp - 0x230], xmm0
call fcn.00409b80
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push str._d._d._d._d
push edi
call fcn.00409b80
add esp, 0x38
xor eax, eax
nop dword [eax + eax]
mov ecx, dword [ebp + eax - 0x220]
cmp dword [ebp + eax - 0x230], ecx
jg 0x406fb7
jl 0x406f80
add eax, 4
cmp eax, 0x10
jl 0x406f30
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406f62
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x406f7c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x406fee
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406f98
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x406fb2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x406fee
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406fcf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x406fe9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
xor cl, cl
cmp byte [ebp - 0x249], cl
je 0x407005
test eax, eax
movzx ecx, cl
mov edx, 1
cmove ecx, edx
cmp dword [ebp - 0x274], 1
jne 0x407013
cmp eax, 0xffffffff
je 0x407039
cmp dword [ebp - 0x254], 1
jne 0x407021
cmp eax, 1
je 0x407039
test cl, cl
jne 0x407039
mov edx, dword [ebp - 0x240]
mov eax, esi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
jmp 0x4066a0
mov esi, dword [ebp - 0x240]
mov edi, dword [ebp - 0x260]
mov eax, dword [ebp - 0x288]
lea edx, [esi - 0x10]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x238], ecx
cmp edx, ecx
je 0x4070cf
lea eax, [ecx + 0xc]
mov dword [ebp - 0x250], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x4070c0
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4070c0
push edx
call fcn.004039d0
mov edx, dword [ebp - 0x250]
add esp, 4
mov dword [ebp - 0x25c], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4070b3
mov eax, dword [ebp - 0x238]
push dword [ebp - 0x238]
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, eax
call edx
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x288]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4070cf
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x288]
push esi
call fcn.00409540
mov byte [ebp - 4], 8
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4070eb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x23c]
xor esi, esi
add eax, eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x238]
push eax
push esi
lea eax, [ebp - 0x2d0]
push eax
push esi
push 0x595f84
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4072ea
mov eax, dword [ebp - 0x2d0]
cmp eax, 1
je 0x40713e
cmp eax, 2
jne 0x4072ea
mov esi, dword [ebp - 0x238]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
shr esi, 1
sub eax, esi
or eax, ecx
jge 0x407169
push esi
lea ecx, [ebp - 0x260]
call fcn.00408150
mov edi, dword [ebp - 0x260]
lea eax, [esi + esi]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x238]
push eax
push edi
lea eax, [ebp - 0x2d4]
push eax
push 0
push 0x595f84
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4071e2
mov eax, dword [ebp - 0x2d4]
cmp eax, 1
je 0x4071b2
cmp eax, 2
jne 0x4071e2
mov ecx, dword [ebp - 0x238]
test edi, edi
je 0x4071d8
test ecx, ecx
je 0x4071d3
test cl, 1
jne 0x4071e2
mov eax, ecx
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x4071d8
jmp 0x4071e2
xor eax, eax
mov word [edi], ax
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x23c], eax
lea esi, [edi - 0x10]
test edi, edi
jne 0x4071ed
xor eax, eax
jmp 0x407201
push dword [esi + 8]
push edi
call fcn.00561908
add esp, 8
test eax, eax
js 0x407576
cmp eax, dword [esi + 8]
jg 0x407576
xor ecx, ecx
mov dword [esi + 4], eax
push esi
mov word [edi + eax*2], cx
call fcn.004039d0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x238], esi
mov edx, dword [esi - 0xc]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x234], edx
test edx, edx
js 0x407576
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x407263
push edx
lea ecx, [ebp - 0x238]
call fcn.00408150
mov esi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
lea eax, [edx + 1]
push eax
push esi
call fcn.00561c33
mov eax, dword [ebp - 0x234]
lea edx, [esi - 0x10]
add esp, 8
mov dword [ebp - 0x244], edx
cmp eax, dword [edx + 8]
jg 0x407576
xor ecx, ecx
mov dword [edx + 4], eax
mov word [esi + eax*2], cx
cmp dword [edx + 4], ecx
jge 0x40729b
or esi, 0xffffffff
jmp 0x4072c6
push str..exe
push esi
call fcn.0055d739
mov edx, dword [ebp - 0x244]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x4072ba
or esi, 0xffffffff
jmp 0x4072c6
sub ecx, esi
sar ecx, 1
mov dword [ebp - 0x250], ecx
mov esi, ecx
mov byte [ebp - 4], 8
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4072df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x40730a
mov esi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x258]
mov edi, dword [ebp - 0x260]
inc ecx
mov dword [ebp - 0x258], ecx
cmp ecx, dword [ebp - 0x28c]
jae 0x40732d
jmp 0x406430
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x407323
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x407346
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], 0
mov ecx, dword [ebp - 0x290]
mov esi, dword [ebp - 0x23c]
inc ecx
mov dword [ebp - 0x290], ecx
cmp ecx, dword [ebp - 0x2a0]
jl 0x406250
cmp dword [edi - 0xc], 0
lea esi, [edi - 0x10]
jne 0x407411
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x238], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x4073bb
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x250]
cmp dword [ebp - 0x238], 0
je 0x407423
cmp dword [ebp - 0x264], 0x20019
jne 0x407423
mov dword [ebp - 0x264], 0x20119
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4073ef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x407585
mov esi, dword [ebp - 0x23c]
jmp 0x406220
mov ecx, dword [ebp - 0x2d8]
lea eax, [ebp - 0x260]
push eax
call fcn.00402490
mov eax, dword [ebp - 0x2b4]
xor esi, esi
test eax, eax
jle 0x40745f
nop
test esi, esi
js 0x407580
cmp esi, eax
jge 0x407580
mov eax, dword [ebp - 0x2b8]
push dword [eax + esi*4]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov eax, dword [ebp - 0x2b4]
inc esi
cmp esi, eax
jl 0x407430
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x407477
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2b8]
test ecx, ecx
je 0x4074bf
mov edi, dword [ebp - 0x2b4]
xor esi, esi
test edi, edi
jle 0x4074b6
nop dword [eax]
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4074b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2b8]
inc esi
cmp esi, edi
jl 0x407490
push ecx
call fcn.00425063
add esp, 4
mov ecx, dword [ebp - 0x2a4]
test ecx, ecx
je 0x407504
mov edi, dword [ebp - 0x2a0]
xor esi, esi
test edi, edi
jle 0x4074fb
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4074f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2a4]
inc esi
cmp esi, edi
jl 0x4074d5
push ecx
call fcn.00425063
add esp, 4
mov eax, dword [ebp - 0x270]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x407517
push eax
call esi
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x407524
push eax
call esi
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407541
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x407559
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00558ddd
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403690
call fcn.004250b5
push 0x80004005
call fcn.00403690
int3