Function at 0x476ce7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f93a7
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x5550ec]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [0x55a320]
mov ebx, 0x55a320
mov ecx, ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
xor edi, edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x14], edi
push 0x20019
push str.SOFTWAREkingsoft_antivirus_recommend
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [esp + 0x20]
mov byte [esp + 0x84], 1
call fcn.00409d6a
test eax, eax
je 0x476d86
cmp dword [esp + 0x14], edi
je 0x476d67
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
call fcn.004012f9
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], edi
push eax
lea esi, [esp + 0x24]
xor edi, edi
call fcn.00409d9d
test eax, eax
je 0x476dba
cmp dword [esp + 0x14], edi
je 0x476db1
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x476d6a
push dword [esp + 0x1c]
lea esi, [esp + 0x1c]
call fcn.00401918
push dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x24]
mov edi, eax
call fcn.00409d9d
mov edi, dword [esp + 0x18]
xor esi, esi
cmp edi, esi
mov dword [esp + 0x20], eax
jne 0x476dec
xor eax, eax
jmp 0x476df4
push edi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [esp + 0x18]
call fcn.00401385
cmp dword [esp + 0x20], esi
je 0x476e1b
cmp dword [esp + 0x14], esi
je 0x476e13
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
jmp 0x476d6a
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov byte [esp + 0x78], 2
cmp dword [edi - 0xc], esi
je 0x476ef9
mov eax, dword [0x55a320]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x513fa8
lea eax, [esp + 0x28]
mov byte [esp + 0x7c], 3
push eax
lea ecx, [esp + 0x28]
lea ebx, [esp + 0x20]
mov dword [esp + 0x28], esi
call fcn.00407a5b
lea edi, [esp + 0x1c]
mov byte [esp + 0x78], 4
call fcn.00402a4c
mov byte [esp + 0x78], 3
mov eax, dword [esp + 0x24]
jmp 0x476ec7
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
mov dword [esp + 0x28], eax
pop ecx
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x30]
call fcn.004539b6
push 0x513fa8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
lea ebx, [esp + 0x20]
call fcn.00407a5b
lea edi, [esp + 0x1c]
mov byte [esp + 0x78], 5
call fcn.00402a4c
mov byte [esp + 0x78], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jne 0x476e7f
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x30]
test eax, eax
je 0x476ef9
mov edx, dword [esp + 0x34]
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ecx, 3
je 0x476f0c
lea esi, [esp + 0x2c]
call fcn.0040ae49
cmp dword [esp + 0x14], 0
jmp 0x476da5
cmp ecx, 2
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
ja 0x476f21
call edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
test eax, eax
lea ebx, [eax + 8]
je 0x476f34
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ecx, 1
ja 0x476f3e
call edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
test eax, eax
lea esi, [eax + 4]
je 0x476f4c
sub edx, eax
sar edx, 2
jne 0x476f52
call edi
mov eax, dword [esp + 0x30]
push 0
push 0
push dword [ebx]
push dword [esi]
lea esi, [esp + 0x5c]
push dword [eax]
call fcn.0049ce29
lea eax, [esp + 0x5c]
push eax
call fcn.0049d623
pop ecx
mov edx, eax
mov ecx, esi
lea eax, [esp + 0x3c]
call fcn.0049d561
xor edi, edi
push edi
push 0x15180
push dword [esp + 0x50]
push dword [esp + 0x50]
call fcn.004ea220
cmp eax, edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea esi, [esp + 0x2c]
jge 0x476fc9
call fcn.0040ae49
cmp dword [esp + 0x14], edi
je 0x476fb4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
jmp 0x476d71
call fcn.0040ae49
cmp dword [esp + 0x14], edi
je 0x476fde
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x476fb6