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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a57f
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x5f31c0]
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.00407f80
add esp, 8
mov byte [ebp - 4], 7
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x407f75
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 0x407d5f
nop dword [eax]
xor al, al
mov dword [ebp - 0x284], eax
cmp ecx, 0xffffffff
jne 0x406cd2
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 0x406cc3
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x406c9b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
jmp 0x406c9d
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 0x406dd2
mov ecx, dword [ebp - 0x240]
mov byte [ebp - 4], 8
jmp 0x406dd2
mov byte [ebp - 4], 0xb
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x407f75
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 0x407f70
cmp eax, dword [ebp - 0x2a0]
jge 0x407f70
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.00404820
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 0x406daa
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x406d8d
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 0x406dc6
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 0x407d40
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 0x407d40
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x407d1d
xor ecx, ecx
mov dword [ebp - 0x258], ecx
test eax, eax
je 0x407d1d
nop dword [eax]
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x406e41
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 0x407cda
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 0x406eff
test ecx, ecx
je 0x406ee9
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 0x407cda
cmp byte [ebp - 0x284], al
jne 0x4070c0
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 0x407cda
mov eax, dword [ebp - 0x2c0]
cmp eax, 1
je 0x406f60
cmp eax, 2
jne 0x407cda
mov eax, dword [ebp - 0x234]
shr eax, 1
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0x10
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x407f75
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 0x406fc8
push edx
lea ecx, [ebp - 0x234]
call fcn.00408b40
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 0x407041
mov eax, dword [ebp - 0x2c4]
cmp eax, 1
je 0x407011
cmp eax, 2
jne 0x407041
mov ecx, dword [ebp - 0x244]
test esi, esi
je 0x407037
test ecx, ecx
je 0x407032
test cl, 1
jne 0x407041
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x407037
jmp 0x407041
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 0x40704f
xor ecx, ecx
jmp 0x407066
push ecx
push esi
call fcn.00566c08
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x407f66
lea eax, [esi - 0x10]
cmp ecx, dword [eax + 8]
jg 0x407f66
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 0x4070ab
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407cd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407cd4
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4070c0
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 0x407adb
mov eax, dword [ebp - 0x2c8]
cmp eax, 1
je 0x407117
cmp eax, 2
jne 0x407adb
mov eax, dword [ebp - 0x234]
shr eax, 1
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x13
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x407f75
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 0x40717f
push edx
lea ecx, [ebp - 0x240]
call fcn.00408b40
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 0x4071f8
mov eax, dword [ebp - 0x2cc]
cmp eax, 1
je 0x4071c8
cmp eax, 2
jne 0x4071f8
mov ecx, dword [ebp - 0x234]
test esi, esi
je 0x4071ee
test ecx, ecx
je 0x4071e9
test cl, 1
jne 0x4071f8
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4071ee
jmp 0x4071f8
xor eax, eax
mov word [esi], ax
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x23c], eax
test esi, esi
jne 0x407200
xor eax, eax
jmp 0x407214
push dword [esi - 8]
push esi
call fcn.00566c08
add esp, 8
test eax, eax
js 0x407f66
cmp eax, dword [esi - 8]
jg 0x407f66
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 0x407a35
lea edi, [eax + ecx*2]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x234], edi
cmp eax, edi
jae 0x407441
mov esi, eax
push 0x59c188
push esi
call fcn.00562a29
add esp, 8
test eax, eax
je 0x407292
mov edi, dword [ebp - 0x274]
nop dword [eax]
lea esi, [eax + 2]
inc edi
push 0x59c188
push esi
call fcn.00562a29
add esp, 8
test eax, eax
jne 0x407270
mov dword [ebp - 0x274], edi
mov edi, dword [ebp - 0x234]
test esi, esi
je 0x4072b1
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4072a0
sub ecx, edx
sar ecx, 1
jmp 0x4072b3
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, edi
jb 0x407251
mov edx, dword [ebp - 0x274]
mov esi, dword [ebp - 0x240]
test edx, edx
jle 0x407441
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 0x407f66
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x407321
push edx
lea ecx, [ebp + 0xc]
call fcn.00408b40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
jmp 0x407327
mov eax, dword [ebp - 0x248]
lea ecx, [eax + edi*2]
mov dword [ebp - 0x234], ecx
cmp eax, ecx
jae 0x40741e
mov esi, eax
nop word [eax + eax]
push 0x59c188
push esi
call fcn.00562a29
mov edi, eax
add esp, 8
test edi, edi
je 0x4073e7
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 0x4073ac
test ecx, ecx
jne 0x4073a1
call fcn.00566952
mov dword [eax], 0x16
call fcn.005665ff
mov eax, 0x16
jmp 0x4073ae
push eax
push ecx
push edi
call fcn.005630b0
add esp, 0xc
xor eax, eax
push eax
call fcn.004038a0
push 0
call fcn.004038a0
mov eax, dword [ebp - 0x238]
xor ecx, ecx
dec dword [ebp - 0x254]
mov esi, edi
push 0x59c188
push edi
mov word [edi + eax], cx
call fcn.00562a29
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x407360
test esi, esi
je 0x407401
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4073f0
sub ecx, edx
sar ecx, 1
jmp 0x407403
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, dword [ebp - 0x234]
jb 0x407340
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x244]
test ecx, ecx
js 0x407f66
cmp ecx, dword [eax - 8]
jg 0x407f66
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 0x407651
mov esi, eax
push 0x59c18c
push edi
call fcn.00562a29
add esp, 8
test eax, eax
je 0x4074a2
mov esi, dword [ebp - 0x254]
nop word [eax + eax]
lea edi, [eax + 2]
inc esi
push 0x59c18c
push edi
call fcn.00562a29
add esp, 8
test eax, eax
jne 0x407480
mov dword [ebp - 0x254], esi
mov esi, dword [ebp - 0x234]
test edi, edi
je 0x4074c1
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4074b0
sub ecx, edx
sar ecx, 1
jmp 0x4074c3
xor ecx, ecx
lea edi, [edi + ecx*2]
add edi, 2
cmp edi, esi
jb 0x407462
mov edx, dword [ebp - 0x254]
mov esi, dword [ebp - 0x240]
test edx, edx
jle 0x407651
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 0x407f66
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x407531
push edx
lea ecx, [ebp + 0xc]
call fcn.00408b40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
jmp 0x407537
mov eax, dword [ebp - 0x248]
lea ecx, [eax + edi*2]
mov dword [ebp - 0x234], ecx
cmp eax, ecx
jae 0x40762e
mov esi, eax
nop word [eax + eax]
push 0x59c18c
push esi
call fcn.00562a29
mov edi, eax
add esp, 8
test edi, edi
je 0x4075f7
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 0x4075bc
test ecx, ecx
jne 0x4075b1
call fcn.00566952
mov dword [eax], 0x16
call fcn.005665ff
mov eax, 0x16
jmp 0x4075be
push eax
push ecx
push edi
call fcn.005630b0
add esp, 0xc
xor eax, eax
push eax
call fcn.004038a0
push 0
call fcn.004038a0
mov eax, dword [ebp - 0x238]
xor ecx, ecx
dec dword [ebp - 0x244]
mov esi, edi
push 0x59c18c
push edi
mov word [edi + eax], cx
call fcn.00562a29
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x407570
test esi, esi
je 0x407611
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407600
sub ecx, edx
sar ecx, 1
jmp 0x407613
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, dword [ebp - 0x234]
jb 0x407550
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x25c]
test ecx, ecx
js 0x407f66
cmp ecx, dword [eax - 8]
jg 0x407f66
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 0x40786c
mov esi, dword [ebp - 0x248]
nop dword [eax + eax]
push 0x59c190
push edi
call fcn.00562a29
add esp, 8
test eax, eax
je 0x4076ae
lea edi, [eax + 2]
inc esi
push 0x59c190
push edi
call fcn.00562a29
add esp, 8
test eax, eax
jne 0x407692
mov dword [ebp - 0x248], esi
test edi, edi
je 0x4076c8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4076b7
sub ecx, edx
sar ecx, 1
jmp 0x4076ca
xor ecx, ecx
lea edi, [edi + ecx*2]
add edi, 2
cmp edi, dword [ebp - 0x25c]
jb 0x407680
mov ecx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x240]
test ecx, ecx
jle 0x407867
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 0x407f66
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x407744
push edx
lea ecx, [ebp + 0xc]
call fcn.00408b40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x244], eax
jmp 0x40774a
mov eax, dword [ebp - 0x244]
lea ecx, [eax + edi*2]
mov dword [ebp - 0x250], ecx
cmp eax, ecx
jae 0x40783e
mov esi, eax
nop dword [eax]
push 0x59c190
push esi
call fcn.00562a29
mov edi, eax
add esp, 8
test edi, edi
je 0x407807
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 0x4077cc
test ecx, ecx
jne 0x4077c1
call fcn.00566952
mov dword [eax], 0x16
call fcn.005665ff
mov eax, 0x16
jmp 0x4077ce
push eax
push ecx
push edi
call fcn.005630b0
add esp, 0xc
xor eax, eax
push eax
call fcn.004038a0
push 0
call fcn.004038a0
mov eax, dword [ebp - 0x25c]
xor ecx, ecx
dec dword [ebp - 0x234]
mov esi, edi
push 0x59c190
push edi
mov word [edi + eax], cx
call fcn.00562a29
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x407780
test esi, esi
je 0x407821
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407810
sub ecx, edx
sar ecx, 1
jmp 0x407823
xor ecx, ecx
lea esi, [esi + ecx*2]
add esi, 2
cmp esi, dword [ebp - 0x250]
jb 0x407760
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x238]
test ecx, ecx
js 0x407f66
cmp ecx, dword [eax - 8]
jg 0x407f66
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 0x40787e
cmp dword [ebp - 0x274], 1
je 0x407887
cmp dword [ebp - 0x254], 1
je 0x407887
mov byte [ebp - 0x249], 1
jmp 0x40788e
mov byte [ebp - 0x249], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00403fb0
lea edi, [eax + 0x10]
mov dword [ebp - 0x250], edi
add esi, 0xfffffff0
mov byte [ebp - 4], 0x15
push esi
call fcn.00403fb0
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 0x59c03c
push esi
movups xmmword [ebp - 0x230], xmm0
call fcn.0040a570
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 0x59c03c
push edi
call fcn.0040a570
add esp, 0x38
xor eax, eax
nop dword [eax + eax]
mov ecx, dword [ebp + eax - 0x220]
cmp dword [ebp + eax - 0x230], ecx
jg 0x4079a7
jl 0x407970
add eax, 4
cmp eax, 0x10
jl 0x407920
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407952
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 0x40796c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x4079de
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407988
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 0x4079a2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x4079de
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4079bf
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 0x4079d9
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 0x4079f5
test eax, eax
movzx ecx, cl
mov edx, 1
cmove ecx, edx
cmp dword [ebp - 0x274], 1
jne 0x407a03
cmp eax, 0xffffffff
je 0x407a29
cmp dword [ebp - 0x254], 1
jne 0x407a11
cmp eax, 1
je 0x407a29
test cl, cl
jne 0x407a29
mov edx, dword [ebp - 0x240]
mov eax, esi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
jmp 0x407090
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 0x407abf
lea eax, [ecx + 0xc]
mov dword [ebp - 0x250], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x407ab0
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x407ab0
push edx
call fcn.00403fb0
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 0x407aa3
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 0x407abf
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x288]
push esi
call fcn.00409f30
mov byte [ebp - 4], 8
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407adb
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 0x59c194
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407cda
mov eax, dword [ebp - 0x2d0]
cmp eax, 1
je 0x407b2e
cmp eax, 2
jne 0x407cda
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 0x407b59
push esi
lea ecx, [ebp - 0x260]
call fcn.00408b40
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 0x59c194
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407bd2
mov eax, dword [ebp - 0x2d4]
cmp eax, 1
je 0x407ba2
cmp eax, 2
jne 0x407bd2
mov ecx, dword [ebp - 0x238]
test edi, edi
je 0x407bc8
test ecx, ecx
je 0x407bc3
test cl, 1
jne 0x407bd2
mov eax, ecx
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x407bc8
jmp 0x407bd2
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 0x407bdd
xor eax, eax
jmp 0x407bf1
push dword [esi + 8]
push edi
call fcn.00566c08
add esp, 8
test eax, eax
js 0x407f66
cmp eax, dword [esi + 8]
jg 0x407f66
xor ecx, ecx
mov dword [esi + 4], eax
push esi
mov word [edi + eax*2], cx
call fcn.00403fb0
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 0x407f66
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x407c53
push edx
lea ecx, [ebp - 0x238]
call fcn.00408b40
mov esi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
lea eax, [edx + 1]
push eax
push esi
call fcn.00566f33
mov eax, dword [ebp - 0x234]
lea edx, [esi - 0x10]
add esp, 8
mov dword [ebp - 0x244], edx
cmp eax, dword [edx + 8]
jg 0x407f66
xor ecx, ecx
mov dword [edx + 4], eax
mov word [esi + eax*2], cx
cmp dword [edx + 4], ecx
jge 0x407c8b
or esi, 0xffffffff
jmp 0x407cb6
push str..exe
push esi
call fcn.00562a29
mov edx, dword [ebp - 0x244]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x407caa
or esi, 0xffffffff
jmp 0x407cb6
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 0x407ccf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x407cfa
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 0x407d1d
jmp 0x406e20
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x407d13
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 0x407d36
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 0x406c40
cmp dword [edi - 0xc], 0
lea esi, [edi - 0x10]
jne 0x407e01
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 0x407dab
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 0x407e13
cmp dword [ebp - 0x264], 0x20019
jne 0x407e13
mov dword [ebp - 0x264], 0x20119
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407ddf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x407f75
mov esi, dword [ebp - 0x23c]
jmp 0x406c10
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 0x407e4f
nop
test esi, esi
js 0x407f70
cmp esi, eax
jge 0x407f70
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 0x407e20
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x407e67
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2b8]
test ecx, ecx
je 0x407eaf
mov edi, dword [ebp - 0x2b4]
xor esi, esi
test edi, edi
jle 0x407ea6
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 0x407ea1
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 0x407e80
push ecx
call fcn.0042a3f0
add esp, 4
mov ecx, dword [ebp - 0x2a4]
test ecx, ecx
je 0x407ef4
mov edi, dword [ebp - 0x2a0]
xor esi, esi
test edi, edi
jle 0x407eeb
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407ee6
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 0x407ec5
push ecx
call fcn.0042a3f0
add esp, 4
mov eax, dword [ebp - 0x270]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x407f07
push eax
call esi
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x407f14
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 0x407f31
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 0x407f49
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.0055e0c1
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403c70
call fcn.0042a442
push 0x80004005
call fcn.00403c70
int3