Function at 0x402200
Capabilities:
Create thread
Inspect load icon resource
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b78a
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00418354
mov eax, dword [esi + 0x78]
test eax, eax
je 0x402251
mov eax, dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
mov eax, dword [esi + 0x484]
push 0x30
push eax
call ebx
mov eax, dword [esi + 0x45c]
cmp eax, 3
jne 0x402277
mov ecx, 0xffffff
jmp 0x402299
cmp eax, 1
jne 0x402283
mov ecx, 0x8c3410
jmp 0x402299
cmp eax, 4
jne 0x40228f
mov ecx, 0xffffff
jmp 0x402299
cmp eax, 5
jne 0x4022a4
mov ecx, 0x626262
lea eax, [esi + 0x464]
call fcn.00405090
push str.Max_Secure_Anti_Virus_Plus_Download_Manager
lea ecx, [esp + 0x14]
call fcn.004014b0
mov dword [esp + 0x450], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00404770
add eax, 0x10
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x450], 1
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0x464]
call fcn.00420e4e
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.00420e4e
mov eax, dword [esi + 0x460]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call ebx
mov eax, dword [esi + 0x460]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call ebx
mov eax, dword [esi + 0xb54]
test eax, eax
je 0x40233b
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x894]
push 1
push eax
push 0x30
push edx
call ebx
lea edi, [esi + 0x874]
xor ecx, ecx
mov eax, edi
call fcn.00405090
mov ecx, edi
call fcn.004050b0
push str.Downloading_Max_Secure_Anti_Virus_Plus...
mov ecx, edi
call fcn.00420e4e
mov eax, dword [esi + 0xb54]
test eax, eax
je 0x402378
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [esi + 0x554]
push 0x30
push eax
call ebx
lea edi, [esi + 0x534]
xor ecx, ecx
mov eax, edi
call fcn.00405090
mov ecx, edi
call fcn.004050b0
mov ecx, dword [0x46b100]
push ecx
mov ecx, edi
call fcn.00420e4e
mov eax, dword [esi + 0xb54]
test eax, eax
je 0x4023b7
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x5bc]
push 1
push eax
push 0x30
push edx
call ebx
lea edi, [esi + 0x59c]
xor ecx, ecx
mov eax, edi
call fcn.00405090
mov ecx, edi
call fcn.004050b0
mov eax, dword [0x46b104]
push eax
mov ecx, edi
call fcn.00420e4e
mov eax, dword [esi + 0xb54]
test eax, eax
je 0x4023f5
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x624]
push 1
push eax
push 0x30
push ecx
call ebx
lea edi, [esi + 0x604]
xor ecx, ecx
mov eax, edi
call fcn.00405090
mov ecx, edi
call fcn.004050b0
mov edx, dword [0x46b108]
push edx
mov ecx, edi
call fcn.00420e4e
mov eax, dword [esi + 0xb54]
test eax, eax
je 0x402434
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [esi + 0x68c]
push 0x30
push eax
call ebx
lea edi, [esi + 0x66c]
xor ecx, ecx
mov eax, edi
call fcn.00405090
mov ecx, edi
call fcn.004050b0
mov ecx, dword [0x46b10c]
push ecx
mov ecx, edi
call fcn.00420e4e
push 0xc
call fcn.00415923
xor edi, edi
add esp, 4
cmp eax, edi
je 0x40247a
mov dword [eax + 4], edi
mov dword [eax], vtable.CMaxFont.0
mov dword [eax + 8], 2
mov edi, eax
test edi, edi
je 0x4024a5
push 0x15
call fcn.00406020
push 1
test eax, eax
je 0x40249c
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x4ec]
push eax
push 0x30
push ecx
call ebx
push 1
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea edi, [esi + 0x4cc]
xor ecx, ecx
mov eax, edi
call fcn.00405090
mov ecx, edi
call fcn.004050b0
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00420e4e
lea edi, [esi + 0x6d4]
xor ecx, ecx
mov eax, edi
call fcn.00405090
mov ecx, edi
call fcn.004050b0
lea edi, [esi + 0x73c]
xor ecx, ecx
mov eax, edi
call fcn.00405090
mov ecx, edi
call fcn.004050b0
lea edi, [esi + 0x7a4]
xor ecx, ecx
mov eax, edi
call fcn.00405090
mov ecx, edi
call fcn.004050b0
lea edi, [esi + 0x80c]
xor ecx, ecx
mov eax, edi
call fcn.00405090
mov ecx, edi
call fcn.004050b0
lea edi, [esi + 0xb58]
mov ecx, edi
call fcn.0040a040
lea ecx, [esi + 0xc88]
call fcn.0040a040
mov eax, dword [0x46b0fc]
test eax, eax
je 0x40256b
mov eax, dword [eax + 4]
mov edx, dword [esi + 0xb78]
push 1
push eax
push 0x30
push edx
call ebx
mov eax, dword [0x46b0fc]
test eax, eax
je 0x40255d
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [esi + 0xca8]
push 0x30
push eax
call ebx
cmp dword [esi + 0x45c], 3
jne 0x40259a
push 0x484849
mov edx, 0x3088c
mov ecx, edi
call fcn.0040a4d0
push 0x484849
mov edx, 0x3088c
lea ecx, [esi + 0xc88]
call fcn.0040a4d0
mov ecx, dword [0x46b114]
push ecx
mov ecx, edi
call fcn.00420e4e
mov edx, dword [0x46b11c]
push edx
lea ecx, [esi + 0xc88]
call fcn.00420e4e
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea eax, [esp + 0x14]
push eax
push 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov byte [esp + 0x460], 2
push SysReAllocStringLen
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4026e6
mov ecx, dword [esp + 0x14]
push 0x40e
lea eax, [esp + 0x32]
xor edx, edx
push edi
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edi
mov word [esp + 0x38], dx
call fcn.00437170
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004163a8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402644
push 0x80004005
call fcn.004017a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push 0x455668
push edx
mov byte [esp + 0x45c], 3
call fcn.00404600
mov edi, dword [esp + 0x24]
xor eax, eax
add esp, 0xc
test edi, edi
setne al
test eax, eax
je 0x4026a3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push str.MaxDownloadMgr
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4026ba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
add edi, 0xfffffff0
mov dword [esp + 0x20], 0
mov byte [esp + 0x450], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4026e6
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
push 0
push 0x89
push 0x8a
lea edi, [esi + 0xe2c]
push 0x89
mov ecx, edi
call fcn.0041b459
mov ecx, edi
call fcn.0041b4ea
push 0
push 0x8b
push 0x8c
lea edi, [esi + 0xdb8]
push 0x8b
mov ecx, edi
call fcn.0041b459
mov ecx, edi
call fcn.0041b4ea
call fcn.00417e56
call fcn.00417e56
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x99
push eax
call edi
mov dword [esi + 0xef4], eax
call fcn.00417e56
call fcn.00417e56
mov eax, dword [eax + 0xc]
push 0x9a
push eax
call edi
mov ecx, dword [esi + 0xec0]
push 0x640000
push 0
push 0x401
push ecx
mov dword [esi + 0xef8], eax
call ebx
mov edx, dword [esi + 0xec0]
push 0
push 0
push 0x402
push edx
call ebx
push 0x1b90
call fcn.00415923
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x450], 4
test eax, eax
je 0x4027b8
push eax
call fcn.0040ffd0
jmp 0x4027ba
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x7c], eax
lea ecx, [esi + 0x74]
mov dword [eax + 0x1b7c], ecx
lea eax, [esp + 0x24]
push eax
push 0
push esi
push 0x403cf0
push 0
push 0
mov dword [esp + 0x3c], 0
call edi
lea ecx, [esp + 0x24]
push ecx
push 0
push esi
push 0x403110
push 0
push 0
mov dword [esi + 0xf0c], eax
call edi
mov dword [esi + 0xf08], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402815
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x450], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40283d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x450], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402868
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.004331c4
mov esp, ebp
pop ebp
ret