Function at 0x405a80
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x54c
push ebx
push ebp
mov ebp, dword [esp + 0x558]
push esi
push edi
mov dword [esp + 0x14], 1
mov eax, dword [ebp + 0x2a]
mov edi, str.regsvr32__s
test ah, 0x20
je 0x405b05
cmp word [ebp + 2], 0x1f4
jne 0x405ac6
mov eax, dword [ebp + 0x16]
test eax, eax
je 0x405abb
cmp word [eax], 0
jne 0x405acb
mov eax, dword [0x420e58]
cmp word [eax], 0
jne 0x405acb
mov eax, dword [0x420e5c]
push eax
lea eax, [esp + 0x88]
push str._s___s_
push eax
call fcn.00411f6f
lea ecx, [esp + 0x90]
push 1
push ecx
push str.regedit
call fcn.00403470
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
test ah, 0x40
je 0x405bfc
push str.oleaut32.dll
xor ebx, ebx
call dword [0x42110c]
mov edi, eax
test edi, edi
je 0x405bb0
push str.LoadTypeLibEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x405b95
cmp word [ebp + 2], 0x1f4
jne 0x405b56
mov eax, dword [ebp + 0x16]
test eax, eax
je 0x405b4b
cmp word [eax], bx
jne 0x405b5b
mov eax, dword [0x420e58]
cmp word [eax], 0
jne 0x405b5b
mov eax, dword [0x420e5c]
push 0x104
lea edx, [esp + 0x358]
push eax
push edx
call fcn.00412090
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x354]
push eax
push 1
push ecx
call esi
test eax, eax
jl 0x405b95
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x405bb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54c
ret
cmp word [ebp + 2], 0x1f4
je 0x405bf7
mov eax, dword [0x420e5c]
lea ecx, [esp + 0x84]
push eax
push str._q___s_
push ecx
call fcn.00411f6f
lea edx, [esp + 0x90]
push 1
push edx
push str.regtlib
call fcn.00403470
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
mov edi, str.regtlib__q
mov ax, word [ebp + 2]
cmp ax, 0x1f4
jne 0x405d9a
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunOnce]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [0x42115c]
test eax, eax
je 0x405c74
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunOnce]
lea edx, [esp + 0x10]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [0x42115c]
test eax, eax
je 0x405c74
pop edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
mov eax, dword [0x420e4c]
cmp eax, 0x64
jge 0x405d80
mov esi, 0x2d0
mov ecx, dword [str.ICLaunch]
push eax
push ecx
lea edx, [esp + 0x28]
push str._s_3.3d
push edx
call fcn.00411f6f
mov edx, dword [0x420e4c]
add esp, 0x10
inc edx
lea eax, [esp + 0x1c]
mov dword [0x420e4c], edx
lea ecx, [esp + 0x84]
push eax
lea edx, [esp + 0x1c]
xor ebx, ebx
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push ebx
push eax
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
call dword [0x421158]
test eax, eax
jne 0x405d03
mov eax, dword [0x420e4c]
cmp eax, 0x64
jl 0x405c87
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
mov edx, dword [0x420e5c]
lea eax, [esp + 0x84]
push edx
push edi
push 0x41cd74
push eax
call fcn.00411f6f
lea ecx, [esp + 0x94]
push ecx
call fcn.00411d78
add esp, 0x14
lea edx, [eax + eax + 2]
lea eax, [esp + 0x84]
lea ecx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
push eax
push 1
push ebx
push ecx
push edx
call dword [0x421154]
test eax, eax
jne 0x405d7c
mov eax, dword [ebp + 0x2a]
test ah, 0x60
jne 0x405d80
push ebx
call fcn.00405870
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
cmp ax, 0x17
je 0x405da6
cmp ax, 0x19
jne 0x405db0
push 1
call fcn.00405870
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret