Function at 0x46ad10
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec739
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CPCUOnlineWebServices.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], vtable.CPCUOnlineWebServices.1.0
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00445b30
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00476f60
jmp 0x46ad7c
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00470d00
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.0046aa80
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a7170
movzx edx, al
test edx, edx
je 0x46ae71
lea ecx, [ebp - 0x1c]
call fcn.0046a580
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46ae6c
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x40], 0
je 0x46ae3d
mov dword [ebp - 0x50], 0x64
push 0x64
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46ae03
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x64
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x46ae2c
push 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x34], eax
jmp 0x46ae33
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x46ae5e
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.00470d40
mov dword [ebp - 0x3c], eax
jmp 0x46ae65
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
jmp 0x46ad6e
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00470f70
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00445b60
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.00445b30
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00476f60
jmp 0x46aeb1
push 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00470d00
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0046aa80
push eax
lea ecx, [ebp - 0x24]
call fcn.004a7170
movzx eax, al
test eax, eax
je 0x46af5b
lea ecx, [ebp - 0x24]
call fcn.0046a580
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x46af56
mov dword [ebp - 0x5c], 0x64
push 0x64
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46af22
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x64
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x46af48
push 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x44], eax
jmp 0x46af4f
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x18], 0
jmp 0x46aea3
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00470f70
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.00445b60
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00445af0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.00445af0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004a0ce0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004a0ce0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00497a10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.00470c60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret