Function at 0x470890
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65aae9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x750990]
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.0044d0c0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004ab610
jmp 0x4708fc
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004aacb0
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004ab6a0
push eax
lea ecx, [ebp - 0x1c]
call fcn.004b1130
movzx edx, al
test edx, edx
je 0x4709f1
lea ecx, [ebp - 0x1c]
call fcn.00470140
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4709ec
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x40], 0
je 0x4709bd
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 0x470983
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 0x4709ac
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 0x4709b3
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 0x4709de
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.004baaa0
mov dword [ebp - 0x3c], eax
jmp 0x4709e5
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
jmp 0x4708ee
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.0047d390
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.0044d0f0
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.0044d0c0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004ab610
jmp 0x470a31
push 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004aacb0
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004ab6a0
push eax
lea ecx, [ebp - 0x24]
call fcn.004b1130
movzx eax, al
test eax, eax
je 0x470adb
lea ecx, [ebp - 0x24]
call fcn.00470140
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x470ad6
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 0x470aa2
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 0x470ac8
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 0x470acf
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x18], 0
jmp 0x470a23
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0047d390
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.0044d0f0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.0044d080
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.0044d080
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004aaa70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004aaa70
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.004a15b0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.00476d10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret