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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46274f
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x47e700]
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.00407620
add esp, 8
mov byte [ebp - 4], 7
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x407615
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 0x4073ff
nop dword [eax]
xor al, al
mov dword [ebp - 0x284], eax
cmp ecx, 0xffffffff
jne 0x406372
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 0x406363
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x40633b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
jmp 0x40633d
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 0x406472
mov ecx, dword [ebp - 0x240]
mov byte [ebp - 4], 8
jmp 0x406472
mov byte [ebp - 4], 0xb
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x407615
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 0x407610
cmp eax, dword [ebp - 0x2a0]
jge 0x407610
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.00403ec0
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 reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x240], ecx
test ecx, ecx
jne 0x40644a
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x40642d
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 0x406466
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 0x4073e0
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 0x4073e0
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x4073bd
xor ecx, ecx
mov dword [ebp - 0x258], ecx
test eax, eax
je 0x4073bd
nop dword [eax]
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x4064e1
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 0x40737a
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 0x40659f
test ecx, ecx
je 0x406589
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 0x40737a
cmp byte [ebp - 0x284], al
jne 0x406760
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 0x40737a
mov eax, dword [ebp - 0x2c0]
cmp eax, 1
je 0x406600
cmp eax, 2
jne 0x40737a
mov eax, dword [ebp - 0x234]
shr eax, 1
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0x10
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x407615
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 0x406668
push edx
lea ecx, [ebp - 0x234]
call fcn.004081f0
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 0x4066e1
mov eax, dword [ebp - 0x2c4]
cmp eax, 1
je 0x4066b1
cmp eax, 2
jne 0x4066e1
mov ecx, dword [ebp - 0x244]
test esi, esi
je 0x4066d7
test ecx, ecx
je 0x4066d2
test cl, 1
jne 0x4066e1
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4066d7
jmp 0x4066e1
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 0x4066ef
xor ecx, ecx
jmp 0x406706
push ecx
push esi
call fcn.00440963
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x407606
lea eax, [esi - 0x10]
cmp ecx, dword [eax + 8]
jg 0x407606
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 0x40674b
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407374
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407374
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406760
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 0x40717b
mov eax, dword [ebp - 0x2c8]
cmp eax, 1
je 0x4067b7
cmp eax, 2
jne 0x40717b
mov eax, dword [ebp - 0x234]
shr eax, 1
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x13
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x407615
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 0x40681f
push edx
lea ecx, [ebp - 0x240]
call fcn.004081f0
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 0x406898
mov eax, dword [ebp - 0x2cc]
cmp eax, 1
je 0x406868
cmp eax, 2
jne 0x406898
mov ecx, dword [ebp - 0x234]
test esi, esi
je 0x40688e
test ecx, ecx
je 0x406889
test cl, 1
jne 0x406898
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40688e
jmp 0x406898
xor eax, eax
mov word [esi], ax
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x23c], eax
test esi, esi
jne 0x4068a0
xor eax, eax
jmp 0x4068b4
push dword [esi - 8]
push esi
call fcn.00440963
add esp, 8
test eax, eax
js 0x407606
cmp eax, dword [esi - 8]
jg 0x407606
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 0x4070d5
lea edi, [eax + ecx*2]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x234], edi
cmp eax, edi
jae 0x406ae1
mov esi, eax
push 0x466a68
push esi
call fcn.0043c7ee
add esp, 8
test eax, eax
je 0x406932
mov edi, dword [ebp - 0x274]
nop dword [eax]
lea esi, [eax + 2]
inc edi
push 0x466a68
push esi
call fcn.0043c7ee
add esp, 8
test eax, eax
jne 0x406910
mov dword [ebp - 0x274], edi
mov edi, dword [ebp - 0x234]
test esi, esi
je 0x406951
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406940
sub ecx, edx
sar ecx, 1
jmp 0x406953
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, edi
jb 0x4068f1
mov edx, dword [ebp - 0x274]
mov esi, dword [ebp - 0x240]
test edx, edx
jle 0x406ae1
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 0x407606
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x4069c1
push edx
lea ecx, [ebp + 0xc]
call fcn.004081f0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
jmp 0x4069c7
mov eax, dword [ebp - 0x248]
lea ecx, [eax + edi*2]
mov dword [ebp - 0x234], ecx
cmp eax, ecx
jae 0x406abe
mov esi, eax
nop word [eax + eax]
push 0x466a68
push esi
call fcn.0043c7ee
mov edi, eax
add esp, 8
test edi, edi
je 0x406a87
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 0x406a4c
test ecx, ecx
jne 0x406a41
call fcn.004406ad
mov dword [eax], 0x16
call fcn.004403af
mov eax, 0x16
jmp 0x406a4e
push eax
push ecx
push edi
call fcn.0043ce70
add esp, 0xc
xor eax, eax
push eax
call fcn.00402f40
push 0
call fcn.00402f40
mov eax, dword [ebp - 0x238]
xor ecx, ecx
dec dword [ebp - 0x254]
mov esi, edi
push 0x466a68
push edi
mov word [edi + eax], cx
call fcn.0043c7ee
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x406a00
test esi, esi
je 0x406aa1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406a90
sub ecx, edx
sar ecx, 1
jmp 0x406aa3
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, dword [ebp - 0x234]
jb 0x4069e0
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x244]
test ecx, ecx
js 0x407606
cmp ecx, dword [eax - 8]
jg 0x407606
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 0x406cf1
mov esi, eax
push 0x466a6c
push edi
call fcn.0043c7ee
add esp, 8
test eax, eax
je 0x406b42
mov esi, dword [ebp - 0x254]
nop word [eax + eax]
lea edi, [eax + 2]
inc esi
push 0x466a6c
push edi
call fcn.0043c7ee
add esp, 8
test eax, eax
jne 0x406b20
mov dword [ebp - 0x254], esi
mov esi, dword [ebp - 0x234]
test edi, edi
je 0x406b61
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406b50
sub ecx, edx
sar ecx, 1
jmp 0x406b63
xor ecx, ecx
lea edi, [edi + ecx*2]
add edi, 2
cmp edi, esi
jb 0x406b02
mov edx, dword [ebp - 0x254]
mov esi, dword [ebp - 0x240]
test edx, edx
jle 0x406cf1
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 0x407606
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x406bd1
push edx
lea ecx, [ebp + 0xc]
call fcn.004081f0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
jmp 0x406bd7
mov eax, dword [ebp - 0x248]
lea ecx, [eax + edi*2]
mov dword [ebp - 0x234], ecx
cmp eax, ecx
jae 0x406cce
mov esi, eax
nop word [eax + eax]
push 0x466a6c
push esi
call fcn.0043c7ee
mov edi, eax
add esp, 8
test edi, edi
je 0x406c97
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 0x406c5c
test ecx, ecx
jne 0x406c51
call fcn.004406ad
mov dword [eax], 0x16
call fcn.004403af
mov eax, 0x16
jmp 0x406c5e
push eax
push ecx
push edi
call fcn.0043ce70
add esp, 0xc
xor eax, eax
push eax
call fcn.00402f40
push 0
call fcn.00402f40
mov eax, dword [ebp - 0x238]
xor ecx, ecx
dec dword [ebp - 0x244]
mov esi, edi
push 0x466a6c
push edi
mov word [edi + eax], cx
call fcn.0043c7ee
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x406c10
test esi, esi
je 0x406cb1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ca0
sub ecx, edx
sar ecx, 1
jmp 0x406cb3
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, dword [ebp - 0x234]
jb 0x406bf0
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x25c]
test ecx, ecx
js 0x407606
cmp ecx, dword [eax - 8]
jg 0x407606
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 0x406f0c
mov esi, dword [ebp - 0x248]
nop dword [eax + eax]
push 0x466a70
push edi
call fcn.0043c7ee
add esp, 8
test eax, eax
je 0x406d4e
lea edi, [eax + 2]
inc esi
push 0x466a70
push edi
call fcn.0043c7ee
add esp, 8
test eax, eax
jne 0x406d32
mov dword [ebp - 0x248], esi
test edi, edi
je 0x406d68
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d57
sub ecx, edx
sar ecx, 1
jmp 0x406d6a
xor ecx, ecx
lea edi, [edi + ecx*2]
add edi, 2
cmp edi, dword [ebp - 0x25c]
jb 0x406d20
mov ecx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x240]
test ecx, ecx
jle 0x406f07
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 0x407606
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x406de4
push edx
lea ecx, [ebp + 0xc]
call fcn.004081f0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x244], eax
jmp 0x406dea
mov eax, dword [ebp - 0x244]
lea ecx, [eax + edi*2]
mov dword [ebp - 0x250], ecx
cmp eax, ecx
jae 0x406ede
mov esi, eax
nop dword [eax]
push 0x466a70
push esi
call fcn.0043c7ee
mov edi, eax
add esp, 8
test edi, edi
je 0x406ea7
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 0x406e6c
test ecx, ecx
jne 0x406e61
call fcn.004406ad
mov dword [eax], 0x16
call fcn.004403af
mov eax, 0x16
jmp 0x406e6e
push eax
push ecx
push edi
call fcn.0043ce70
add esp, 0xc
xor eax, eax
push eax
call fcn.00402f40
push 0
call fcn.00402f40
mov eax, dword [ebp - 0x25c]
xor ecx, ecx
dec dword [ebp - 0x234]
mov esi, edi
push 0x466a70
push edi
mov word [edi + eax], cx
call fcn.0043c7ee
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x406e20
test esi, esi
je 0x406ec1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406eb0
sub ecx, edx
sar ecx, 1
jmp 0x406ec3
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, dword [ebp - 0x250]
jb 0x406e00
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x238]
test ecx, ecx
js 0x407606
cmp ecx, dword [eax - 8]
jg 0x407606
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 0x406f1e
cmp dword [ebp - 0x274], 1
je 0x406f27
cmp dword [ebp - 0x254], 1
je 0x406f27
mov byte [ebp - 0x249], 1
jmp 0x406f2e
mov byte [ebp - 0x249], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00403650
lea edi, [eax + 0x10]
mov dword [ebp - 0x250], edi
add esi, 0xfffffff0
mov byte [ebp - 4], 0x15
push esi
call fcn.00403650
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 0x46691c
push esi
movups xmmword [ebp - 0x230], xmm0
call fcn.00409c20
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 0x46691c
push edi
call fcn.00409c20
add esp, 0x38
xor eax, eax
nop dword [eax + eax]
mov ecx, dword [ebp + eax - 0x220]
cmp dword [ebp + eax - 0x230], ecx
jg 0x407047
jl 0x407010
add eax, 4
cmp eax, 0x10
jl 0x406fc0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406ff2
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 0x40700c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x40707e
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407028
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 0x407042
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x40707e
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40705f
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 0x407079
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 0x407095
test eax, eax
movzx ecx, cl
mov edx, 1
cmove ecx, edx
cmp dword [ebp - 0x274], 1
jne 0x4070a3
cmp eax, 0xffffffff
je 0x4070c9
cmp dword [ebp - 0x254], 1
jne 0x4070b1
cmp eax, 1
je 0x4070c9
test cl, cl
jne 0x4070c9
mov edx, dword [ebp - 0x240]
mov eax, esi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
jmp 0x406730
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 0x40715f
lea eax, [ecx + 0xc]
mov dword [ebp - 0x250], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x407150
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x407150
push edx
call fcn.00403650
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 0x407143
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 0x40715f
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x288]
push esi
call fcn.004095e0
mov byte [ebp - 4], 8
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40717b
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 0x466a74
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40737a
mov eax, dword [ebp - 0x2d0]
cmp eax, 1
je 0x4071ce
cmp eax, 2
jne 0x40737a
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 0x4071f9
push esi
lea ecx, [ebp - 0x260]
call fcn.004081f0
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 0x466a74
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407272
mov eax, dword [ebp - 0x2d4]
cmp eax, 1
je 0x407242
cmp eax, 2
jne 0x407272
mov ecx, dword [ebp - 0x238]
test edi, edi
je 0x407268
test ecx, ecx
je 0x407263
test cl, 1
jne 0x407272
mov eax, ecx
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x407268
jmp 0x407272
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 0x40727d
xor eax, eax
jmp 0x407291
push dword [esi + 8]
push edi
call fcn.00440963
add esp, 8
test eax, eax
js 0x407606
cmp eax, dword [esi + 8]
jg 0x407606
xor ecx, ecx
mov dword [esi + 4], eax
push esi
mov word [edi + eax*2], cx
call fcn.00403650
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 0x407606
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4072f3
push edx
lea ecx, [ebp - 0x238]
call fcn.004081f0
mov esi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
lea eax, [edx + 1]
push eax
push esi
call fcn.00440c8e
mov eax, dword [ebp - 0x234]
lea edx, [esi - 0x10]
add esp, 8
mov dword [ebp - 0x244], edx
cmp eax, dword [edx + 8]
jg 0x407606
xor ecx, ecx
mov dword [edx + 4], eax
mov word [esi + eax*2], cx
cmp dword [edx + 4], ecx
jge 0x40732b
or esi, 0xffffffff
jmp 0x407356
push str..exe
push esi
call fcn.0043c7ee
mov edx, dword [ebp - 0x244]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x40734a
or esi, 0xffffffff
jmp 0x407356
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 0x40736f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x40739a
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 0x4073bd
jmp 0x4064c0
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x4073b3
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 0x4073d6
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 0x4062e0
cmp dword [edi - 0xc], 0
lea esi, [edi - 0x10]
jne 0x4074a1
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 0x40744b
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 0x4074b3
cmp dword [ebp - 0x264], 0x20019
jne 0x4074b3
mov dword [ebp - 0x264], 0x20119
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40747f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x407615
mov esi, dword [ebp - 0x23c]
jmp 0x4062b0
mov ecx, dword [ebp - 0x2d8]
lea eax, [ebp - 0x260]
push eax
call fcn.00401b30
mov eax, dword [ebp - 0x2b4]
xor esi, esi
test eax, eax
jle 0x4074ef
nop
test esi, esi
js 0x407610
cmp esi, eax
jge 0x407610
mov eax, dword [ebp - 0x2b8]
push dword [eax + esi*4]
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov eax, dword [ebp - 0x2b4]
inc esi
cmp esi, eax
jl 0x4074c0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x407507
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2b8]
test ecx, ecx
je 0x40754f
mov edi, dword [ebp - 0x2b4]
xor esi, esi
test edi, edi
jle 0x407546
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 0x407541
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 0x407520
push ecx
call fcn.00429bbb
add esp, 4
mov ecx, dword [ebp - 0x2a4]
test ecx, ecx
je 0x407594
mov edi, dword [ebp - 0x2a0]
xor esi, esi
test edi, edi
jle 0x40758b
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407586
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 0x407565
push ecx
call fcn.00429bbb
add esp, 4
mov eax, dword [ebp - 0x270]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4075a7
push eax
call esi
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x4075b4
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 0x4075d1
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 0x4075e9
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.00438287
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403310
call fcn.00429c0d
push 0x80004005
call fcn.00403310
int3