Function at 0x415859
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x477560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
push 0
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call fcn.00402770
mov eax, dword [esi + 0x2d4]
add eax, 0xfffffc08
cmp eax, 0x28
mov dword [esp + 0x1c], 1
ja case.0x4158a3.1017
movzx eax, byte [eax + 0x415ad8]
jmp dword [eax*4 + 0x415ac4]
push str.Summary
jmp 0x4158c4
push str.Options
jmp 0x4158c4
push str.Backup
jmp 0x4158c4
push str.Settings
lea ecx, [esp + 0xc]
call fcn.00402c40
mov eax, dword [esp + 8]
test eax, eax
je 0x415972
push 0x47e490
push eax
call fcn.004578d3
add esp, 8
test eax, eax
je 0x415972
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push str.Warning:_Scan_in_progress__By_going_to
push edx
call fcn.00402a60
push str._you_will_have_to_abort_the_scan._nDo_you_still_wish_to_abort_the_scan_
push eax
lea eax, [esp + 0x20]
mov bl, 2
push eax
mov byte [esp + 0x34], bl
call fcn.00405860
add esp, 0x18
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.00402990
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41594d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415998
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x415998
mov eax, str.Warning:_Scan_in_progress___nDo_you_still_wish_to_abort_the_scan_
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415980
sub eax, edx
push eax
push str.Warning:_Scan_in_progress___nDo_you_still_wish_to_abort_the_scan_
lea ecx, [esp + 0x10]
call fcn.00402770
mov eax, dword [esi + 0x2c8]
test eax, eax
mov ebx, dword [esp + 8]
mov ecx, esi
je 0x415a81
push 0x14
push str.Abort_Scan_
push ebx
call fcn.004680b6
cmp eax, 7
jne 0x4159e9
mov eax, dword [esi + 0x1c]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x415aa7
push edi
push str.RegSweepSTOPSCANNING
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x2c8]
mov ecx, dword [eax + 0x28]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x415a5d
mov edx, dword [esi + 0xf0]
mov ecx, dword [edx + eax*4 - 4]
test ecx, ecx
je 0x415a5d
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xf4]
mov ecx, dword [esi + 0xf0]
mov dword [ecx + eax*4 - 4], 0
mov eax, dword [esi + 0xf4]
push 0xffffffffffffffff
dec eax
push eax
lea ecx, [esi + 0xec]
call fcn.00465f07
push 0
mov ecx, esi
call fcn.00413ca0
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x2d4]
test eax, eax
pop edi
mov ecx, esi
jne 0x415a81
call fcn.00413b30
jmp 0x415a8f
push 0
mov byte [esi + 0x2d8], 1
call fcn.00466957
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415ab1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret