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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58eebf
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x5fb1a0]
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 - 0x28c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 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 - 0x298], 0xff
mov dword [ebp - 0x290], 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 - 0x2a8], esi
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x2a4], 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 - 0x2bc], esi
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b8], esi
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.00407f90
add esp, 8
mov byte [ebp - 4], 7
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x407f85
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x258], edi
or ecx, 0xffffffff
mov byte [ebp - 4], 8
mov dword [ebp - 0x294], ecx
cmp dword [ebp - 0x2a4], ecx
jle 0x407d71
nop dword [eax]
xor al, al
mov dword [ebp - 0x288], eax
cmp ecx, 0xffffffff
jne 0x406d02
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 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 - 0x244], ecx
test ecx, ecx
jne 0x406cf3
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x406ccb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
jmp 0x406ccd
xor ecx, ecx
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x264]
and eax, 0x300
mov byte [ebp - 4], 8
mov dword [ebp - 0x280], eax
jmp 0x406e02
mov ecx, dword [ebp - 0x244]
mov byte [ebp - 4], 8
jmp 0x406e02
mov byte [ebp - 4], 0xb
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x407f85
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x294]
mov byte [ebp - 4], 0xc
test eax, eax
js 0x407f80
cmp eax, dword [ebp - 0x2a4]
jge 0x407f80
mov ecx, dword [ebp - 0x2a8]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push dword [ecx + eax*4]
lea eax, [ebp - 0x250]
push str._s_s
push eax
call fcn.00404830
add esp, 0x10
mov esi, dword [ebp - 0x250]
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 - 0x244], ecx
test ecx, ecx
jne 0x406dda
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x406dbd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x264]
and eax, 0x300
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 8
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406df6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x244]
test ecx, ecx
jne 0x407d52
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x290]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x407d52
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x407d2f
xor ecx, ecx
mov dword [ebp - 0x250], ecx
test eax, eax
je 0x407d2f
nop dword [eax]
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x406e71
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x270], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x298]
mov dword [ebp - 0x26c], 0
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x298], 0xff
push eax
push ecx
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x407cec
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov ecx, dword [ebp - 0x288]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x288], 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 - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x270]
test eax, eax
jne 0x406f2f
test ecx, ecx
je 0x406f19
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 0x407cec
cmp byte [ebp - 0x288], al
jne 0x4070f0
lea eax, [esi + esi]
xor esi, esi
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push esi
lea eax, [ebp - 0x2c4]
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 0x407cec
mov eax, dword [ebp - 0x2c4]
cmp eax, 1
je 0x406f90
cmp eax, 2
jne 0x407cec
mov eax, dword [ebp - 0x234]
shr eax, 1
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 0x10
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x407f85
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 - 0x240]
sub eax, edx
sub ecx, dword [esi - 4]
or eax, ecx
mov byte [ebp - 4], 0x11
jge 0x406ff8
push edx
lea ecx, [ebp - 0x234]
call fcn.00408b50
mov esi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x240]
lea eax, [edx + edx]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x240]
push eax
push esi
lea eax, [ebp - 0x2c8]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407071
mov eax, dword [ebp - 0x2c8]
cmp eax, 1
je 0x407041
cmp eax, 2
jne 0x407071
mov ecx, dword [ebp - 0x240]
test esi, esi
je 0x407067
test ecx, ecx
je 0x407062
test cl, 1
jne 0x407071
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x407067
jmp 0x407071
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 0x40707f
xor ecx, ecx
jmp 0x407096
push ecx
push esi
call fcn.0056712f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x407f76
lea eax, [esi - 0x10]
cmp ecx, dword [eax + 8]
jg 0x407f76
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 0x4070db
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407ce6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407ce6
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4070f0
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 - 0x2cc]
push eax
push 0
push str.DisplayVersion
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407aed
mov eax, dword [ebp - 0x2cc]
cmp eax, 1
je 0x407147
cmp eax, 2
jne 0x407aed
mov eax, dword [ebp - 0x234]
shr eax, 1
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x13
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x407f85
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], 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 0x4071af
push edx
lea ecx, [ebp - 0x278]
call fcn.00408b50
mov esi, dword [ebp - 0x278]
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 - 0x2d0]
push eax
push 0
push str.DisplayVersion
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407228
mov eax, dword [ebp - 0x2d0]
cmp eax, 1
je 0x4071f8
cmp eax, 2
jne 0x407228
mov ecx, dword [ebp - 0x234]
test esi, esi
je 0x40721e
test ecx, ecx
je 0x407219
test cl, 1
jne 0x407228
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40721e
jmp 0x407228
xor eax, eax
mov word [esi], ax
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x23c], eax
lea edx, [esi - 0x10]
mov dword [ebp - 0x244], edx
test esi, esi
jne 0x407239
xor eax, eax
jmp 0x407250
push dword [edx + 8]
push esi
call fcn.0056712f
add esp, 8
test eax, eax
js 0x407f76
lea edx, [esi - 0x10]
cmp eax, dword [edx + 8]
jg 0x407f76
mov dword [edx + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x238], eax
mov eax, dword [eax - 0xc]
test eax, eax
je 0x407a4c
mov esi, dword [ebp - 0x238]
xor edx, edx
mov dword [ebp - 0x274], edx
lea edi, [esi + eax*2]
mov dword [ebp - 0x238], edi
cmp esi, edi
jae 0x407471
push 0x5a1188
push esi
call fcn.00562f40
add esp, 8
test eax, eax
je 0x4072d2
mov edi, dword [ebp - 0x274]
nop dword [eax]
lea esi, [eax + 2]
inc edi
push 0x5a1188
push esi
call fcn.00562f40
add esp, 8
test eax, eax
jne 0x4072b0
mov dword [ebp - 0x274], edi
mov edi, dword [ebp - 0x238]
test esi, esi
je 0x4072f1
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4072e0
sub ecx, edx
sar ecx, 1
jmp 0x4072f3
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, edi
jb 0x407295
mov edx, dword [ebp - 0x274]
test edx, edx
jle 0x407471
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], esi
mov edi, dword [esi - 0xc]
mov eax, edi
sub eax, edx
mov dword [ebp - 0x25c], edi
cmp eax, edi
mov dword [ebp - 0x24c], eax
mov edx, edi
cmovg edx, eax
test edx, edx
js 0x407f76
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x407359
push edx
lea ecx, [ebp + 0xc]
call fcn.00408b50
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], esi
lea eax, [esi + edi*2]
mov dword [ebp - 0x238], eax
cmp esi, eax
jae 0x40744e
mov edx, esi
mov dword [ebp - 0x240], esi
push 0x5a1188
push edx
call fcn.00562f40
mov esi, eax
add esp, 8
test esi, esi
je 0x40740c
nop word [eax + eax]
mov ecx, esi
lea eax, [esi + 2]
sub ecx, dword [ebp - 0x234]
sar ecx, 1
sub edi, ecx
lea edi, [edi*2 - 2]
test edi, edi
je 0x4073d0
test eax, eax
jne 0x4073c5
call fcn.00566e79
mov dword [eax], 0x16
call fcn.00566c6f
mov eax, 0x16
jmp 0x4073d2
push edi
push eax
push esi
call fcn.005635d0
add esp, 0xc
xor eax, eax
push eax
call fcn.004038f0
push 0
call fcn.004038f0
xor eax, eax
mov dword [ebp - 0x240], esi
mov word [esi + edi], ax
mov edi, dword [ebp - 0x25c]
push 0x5a1188
dec edi
push esi
mov dword [ebp - 0x25c], edi
call fcn.00562f40
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x407390
mov edx, dword [ebp - 0x240]
test edx, edx
je 0x407431
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407420
sub ecx, esi
sar ecx, 1
jmp 0x407433
xor ecx, ecx
lea edx, [edx + ecx*2]
add edx, 2
mov dword [ebp - 0x240], edx
cmp edx, dword [ebp - 0x238]
jb 0x407372
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
js 0x407f76
cmp ecx, dword [esi - 8]
jg 0x407f76
mov dword [esi - 0xc], ecx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + ecx*2], dx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x25c], ecx
mov eax, dword [esi - 0xc]
lea edi, [esi + eax*2]
mov dword [ebp - 0x238], edi
cmp esi, edi
jae 0x407671
push 0x5a118c
push esi
call fcn.00562f40
add esp, 8
test eax, eax
je 0x4074d2
mov edi, dword [ebp - 0x25c]
nop dword [eax + eax]
lea esi, [eax + 2]
inc edi
push 0x5a118c
push esi
call fcn.00562f40
add esp, 8
test eax, eax
jne 0x4074b0
mov dword [ebp - 0x25c], edi
mov edi, dword [ebp - 0x238]
test esi, esi
je 0x4074f1
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4074e0
sub ecx, edx
sar ecx, 1
jmp 0x4074f3
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, edi
jb 0x407490
mov ecx, dword [ebp - 0x25c]
test ecx, ecx
jle 0x407671
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], esi
mov edi, dword [esi - 0xc]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x24c], edi
cmp eax, edi
mov dword [ebp - 0x254], eax
mov edx, edi
cmovg edx, eax
test edx, edx
js 0x407f76
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x407559
push edx
lea ecx, [ebp + 0xc]
call fcn.00408b50
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], esi
lea eax, [esi + edi*2]
mov dword [ebp - 0x238], eax
cmp esi, eax
jae 0x40764e
mov edx, esi
mov dword [ebp - 0x240], esi
push 0x5a118c
push edx
call fcn.00562f40
mov esi, eax
add esp, 8
test esi, esi
je 0x40760c
nop word [eax + eax]
mov edx, esi
lea eax, [esi + 2]
sub edx, dword [ebp - 0x234]
sar edx, 1
sub edi, edx
lea edi, [edi*2 - 2]
test edi, edi
je 0x4075d0
test eax, eax
jne 0x4075c5
call fcn.00566e79
mov dword [eax], 0x16
call fcn.00566c6f
mov eax, 0x16
jmp 0x4075d2
push edi
push eax
push esi
call fcn.005635d0
add esp, 0xc
xor eax, eax
push eax
call fcn.004038f0
push 0
call fcn.004038f0
xor eax, eax
mov dword [ebp - 0x240], esi
mov word [esi + edi], ax
mov edi, dword [ebp - 0x24c]
push 0x5a118c
dec edi
push esi
mov dword [ebp - 0x24c], edi
call fcn.00562f40
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x407590
mov edx, dword [ebp - 0x240]
test edx, edx
je 0x407631
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407620
sub ecx, esi
sar ecx, 1
jmp 0x407633
xor ecx, ecx
lea edx, [edx + ecx*2]
add edx, 2
mov dword [ebp - 0x240], edx
cmp edx, dword [ebp - 0x238]
jb 0x407572
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x254]
test ecx, ecx
js 0x407f76
cmp ecx, dword [esi - 8]
jg 0x407f76
mov dword [esi - 0xc], ecx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + ecx*2], dx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x240], 0
mov eax, dword [esi - 0xc]
lea edi, [esi + eax*2]
mov dword [ebp - 0x254], edi
cmp esi, edi
jae 0x40787c
push 0x5a1190
push esi
call fcn.00562f40
add esp, 8
test eax, eax
je 0x4076d2
mov edi, dword [ebp - 0x240]
nop word [eax + eax]
lea esi, [eax + 2]
inc edi
push 0x5a1190
push esi
call fcn.00562f40
add esp, 8
test eax, eax
jne 0x4076b0
mov dword [ebp - 0x240], edi
mov edi, dword [ebp - 0x254]
test esi, esi
je 0x4076f1
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4076e0
sub ecx, edx
sar ecx, 1
jmp 0x4076f3
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, edi
jb 0x407692
mov eax, dword [ebp - 0x240]
test eax, eax
jle 0x407877
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24c], esi
mov edi, dword [esi - 0xc]
mov ecx, edi
sub ecx, eax
mov dword [ebp - 0x238], edi
cmp ecx, edi
mov dword [ebp - 0x260], ecx
mov edx, edi
cmovg edx, ecx
test edx, edx
js 0x407f76
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x407759
push edx
lea ecx, [ebp + 0xc]
call fcn.00408b50
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24c], esi
lea eax, [esi + edi*2]
mov dword [ebp - 0x254], eax
cmp esi, eax
jae 0x40784e
mov edx, esi
mov dword [ebp - 0x234], esi
push 0x5a1190
push edx
call fcn.00562f40
mov esi, eax
add esp, 8
test esi, esi
je 0x40780c
nop word [eax + eax]
mov edx, esi
lea eax, [esi + 2]
sub edx, dword [ebp - 0x24c]
sar edx, 1
sub edi, edx
lea edi, [edi*2 - 2]
test edi, edi
je 0x4077d0
test eax, eax
jne 0x4077c5
call fcn.00566e79
mov dword [eax], 0x16
call fcn.00566c6f
mov eax, 0x16
jmp 0x4077d2
push edi
push eax
push esi
call fcn.005635d0
add esp, 0xc
xor eax, eax
push eax
call fcn.004038f0
push 0
call fcn.004038f0
xor eax, eax
mov dword [ebp - 0x234], esi
mov word [esi + edi], ax
mov edi, dword [ebp - 0x238]
push 0x5a1190
dec edi
push esi
mov dword [ebp - 0x238], edi
call fcn.00562f40
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x407790
mov edx, dword [ebp - 0x234]
test edx, edx
je 0x407831
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407820
sub ecx, esi
sar ecx, 1
jmp 0x407833
xor ecx, ecx
lea edx, [edx + ecx*2]
add edx, 2
mov dword [ebp - 0x234], edx
cmp edx, dword [ebp - 0x254]
jb 0x407772
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x260]
test ecx, ecx
js 0x407f76
cmp ecx, dword [esi - 8]
jg 0x407f76
mov dword [esi - 0xc], ecx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x240]
cmp eax, 1
je 0x40788e
cmp dword [ebp - 0x274], 1
je 0x407897
cmp dword [ebp - 0x25c], 1
je 0x407897
mov byte [ebp - 0x245], 1
jmp 0x40789e
mov byte [ebp - 0x245], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00404000
lea edi, [eax + 0x10]
mov dword [ebp - 0x260], edi
push dword [ebp - 0x244]
mov byte [ebp - 4], 0x15
call fcn.00404000
xorps xmm0, xmm0
mov byte [ebp - 4], 0x14
movups xmmword [ebp - 0x230], xmm0
lea esi, [eax + 0x10]
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 0x5a103c
push esi
movups xmmword [ebp - 0x220], xmm0
call fcn.0040a560
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 0x5a103c
push edi
call fcn.0040a560
add esp, 0x38
xor eax, eax
nop dword [eax]
mov ecx, dword [ebp + eax - 0x230]
cmp dword [ebp + eax - 0x220], ecx
jg 0x4079bb
jl 0x407984
add eax, 4
cmp eax, 0x10
jl 0x407930
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407966
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 0x407980
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x4079f2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40799c
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 0x4079b6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x4079f2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4079d3
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 0x4079ed
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
xor cl, cl
cmp byte [ebp - 0x245], cl
je 0x407a09
test eax, eax
movzx ecx, cl
mov edx, 1
cmove ecx, edx
cmp dword [ebp - 0x274], 1
jne 0x407a17
cmp eax, 0xffffffff
je 0x407a3a
cmp dword [ebp - 0x25c], 1
jne 0x407a25
cmp eax, 1
je 0x407a3a
mov edx, dword [ebp - 0x244]
test cl, cl
jne 0x407a40
mov byte [ebp - 4], 8
mov eax, esi
jmp 0x4070c0
mov edx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x278]
mov edi, dword [ebp - 0x258]
mov eax, dword [ebp - 0x28c]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x254], ecx
cmp edx, ecx
je 0x407ad4
lea eax, [ecx + 0xc]
mov dword [ebp - 0x260], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x407abf
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x407abf
push edx
call fcn.00404000
mov edx, dword [ebp - 0x260]
add esp, 4
mov dword [ebp - 0x238], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407ab2
mov eax, dword [ebp - 0x254]
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, esi
call edx
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x28c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x407ace
push dword [edx + 4]
mov ecx, dword [ebp - 0x28c]
push esi
call fcn.00409f20
mov edx, dword [ebp - 0x244]
mov byte [ebp - 4], 8
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407aed
mov ecx, dword [edx]
push edx
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 - 0x2d4]
push eax
push esi
push 0x5a1194
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407cec
mov eax, dword [ebp - 0x2d4]
cmp eax, 1
je 0x407b40
cmp eax, 2
jne 0x407cec
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 0x407b6b
push esi
lea ecx, [ebp - 0x258]
call fcn.00408b50
mov edi, dword [ebp - 0x258]
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 - 0x2d8]
push eax
push 0
push 0x5a1194
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407be4
mov eax, dword [ebp - 0x2d8]
cmp eax, 1
je 0x407bb4
cmp eax, 2
jne 0x407be4
mov ecx, dword [ebp - 0x238]
test edi, edi
je 0x407bda
test ecx, ecx
je 0x407bd5
test cl, 1
jne 0x407be4
mov eax, ecx
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x407bda
jmp 0x407be4
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 0x407bef
xor eax, eax
jmp 0x407c03
push dword [esi + 8]
push edi
call fcn.0056712f
add esp, 8
test eax, eax
js 0x407f76
cmp eax, dword [esi + 8]
jg 0x407f76
xor ecx, ecx
mov dword [esi + 4], eax
push esi
mov word [edi + eax*2], cx
call fcn.00404000
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 - 0x24c], edx
test edx, edx
js 0x407f76
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x407c65
push edx
lea ecx, [ebp - 0x238]
call fcn.00408b50
mov esi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x24c]
lea eax, [edx + 1]
push eax
push esi
call fcn.00567458
mov eax, dword [ebp - 0x24c]
lea edx, [esi - 0x10]
add esp, 8
mov dword [ebp - 0x234], edx
cmp eax, dword [edx + 8]
jg 0x407f76
xor ecx, ecx
mov dword [edx + 4], eax
mov word [esi + eax*2], cx
cmp dword [edx + 4], ecx
jge 0x407c9d
or esi, 0xffffffff
jmp 0x407cc8
push str..exe
push esi
call fcn.00562f40
mov edx, dword [ebp - 0x234]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x407cbc
or esi, 0xffffffff
jmp 0x407cc8
sub ecx, esi
sar ecx, 1
mov dword [ebp - 0x260], ecx
mov esi, ecx
mov byte [ebp - 4], 8
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407ce1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x407d0c
mov esi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x250]
mov edi, dword [ebp - 0x258]
inc ecx
mov dword [ebp - 0x250], ecx
cmp ecx, dword [ebp - 0x290]
jae 0x407d2f
jmp 0x406e50
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x407d25
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 - 0x284]
test eax, eax
je 0x407d48
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], 0
mov ecx, dword [ebp - 0x294]
mov esi, dword [ebp - 0x23c]
inc ecx
mov dword [ebp - 0x294], ecx
cmp ecx, dword [ebp - 0x2a4]
jl 0x406c70
add edi, 0xfffffff0
cmp dword [edi + 4], 0
jne 0x407e0b
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 esi, eax
test esi, esi
je 0x407db5
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x238], 0
je 0x407e1d
cmp dword [ebp - 0x264], 0x20019
jne 0x407e1d
mov dword [ebp - 0x264], 0x20119
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x407de9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x407f85
mov esi, dword [ebp - 0x23c]
jmp 0x406c40
mov ecx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x258]
push eax
call fcn.004024c0
mov eax, dword [ebp - 0x2b8]
xor esi, esi
test eax, eax
jle 0x407e5f
nop dword [eax]
test esi, esi
js 0x407f80
cmp esi, eax
jge 0x407f80
mov eax, dword [ebp - 0x2bc]
push dword [eax + esi*4]
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov eax, dword [ebp - 0x2b8]
inc esi
cmp esi, eax
jl 0x407e30
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x407e74
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2bc]
test ecx, ecx
je 0x407ebf
mov edi, dword [ebp - 0x2b8]
xor esi, esi
test edi, edi
jle 0x407eb6
nop word [eax + 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 0x407eb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2bc]
inc esi
cmp esi, edi
jl 0x407e90
push ecx
call fcn.0042a659
add esp, 4
mov ecx, dword [ebp - 0x2a8]
test ecx, ecx
je 0x407f04
mov edi, dword [ebp - 0x2a4]
xor esi, esi
test edi, edi
jle 0x407efb
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407ef6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2a8]
inc esi
cmp esi, edi
jl 0x407ed5
push ecx
call fcn.0042a659
add esp, 4
mov eax, dword [ebp - 0x270]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x407f17
push eax
call esi
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x407f24
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 0x407f41
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 0x407f59
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.0055e52e
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403cc0
call fcn.0042a6ab
push 0x80004005
call fcn.00403cc0
int3