Function at 0x4082a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x461677
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov edi, ecx
push edi
mov dword [esp + 0x1c], edi
call fcn.004087d0
test al, al
jne 0x40831f
push str.initialize_excutor_error_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 8
push 3
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
mov ecx, edi
call edx
jmp 0x4086ca
mov ecx, dword [edi + 0x3cc]
xor ebx, ebx
cmp ecx, ebx
je 0x40833c
mov eax, dword [edi + 0x3d0]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x20], eax
jne 0x40834b
lea ecx, [edi + 0x270]
call fcn.00409c40
push 1
jmp 0x408308
xor esi, esi
cmp eax, ebx
mov byte [esp + 0x17], bl
mov dword [esp + 0x1c], esi
jbe 0x40861a
lea ecx, [ecx]
mov ecx, dword [edi + 0x3cc]
cmp ecx, ebx
je 0x408379
mov eax, dword [edi + 0x3d0]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40837e
call fcn.00446328
mov eax, dword [edi + 0x3cc]
mov edi, dword [eax + esi*4]
mov ecx, edi
call fcn.0040d940
cmp dword [edi + 0x90], 3
je 0x4085ed
mov eax, dword [esp + 0x18]
mov esi, edi
mov dword [edi + 0x90], 1
call fcn.00406420
cmp al, bl
je 0x4084f8
mov ecx, edi
call fcn.0040d940
cmp dword [edi + 0x90], 3
je 0x4085e9
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
cmp edx, ebx
ja 0x4083e0
cmp eax, ebx
jbe 0x408523
mov ecx, dword [0x47f7d0]
cmp ecx, ebx
jne 0x408459
push 0x40
call fcn.0042a2c4
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebx
mov dword [esp + 0x168], 1
je 0x408444
lea ecx, [esi + 8]
mov dword [esi], vtable.CBaseLog.0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
push ebx
mov byte [esp + 0x16c], 2
push 0x46902c
mov byte [esi + 4], bl
mov dword [esi + 0x24], ebx
call fcn.00401d40
lea ecx, [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x408446
xor esi, esi
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
mov dword [0x47f7d0], ecx
push str._REPAIR_Check_UpdateFile_frist_failed_n
push 2
call fcn.00411cc0
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0x48]
mov eax, dword [edx + 0x10]
add esi, 0x48
add esp, 8
mov ecx, esi
call eax
mov eax, dword [esi + 0xa0]
cmp eax, 0xffffffff
je 0x4084cc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0xa8]
cmp eax, ebx
mov dword [esi + 0xa0], 0xffffffff
mov byte [esi + 0x9c], 1
je 0x4084b5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xa8], ebx
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x4084cc
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xa4], ebx
mov byte [esi + 0xb0], 8
mov byte [esi + 0xb8], bl
mov byte [esi + 0x10], bl
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov eax, dword [esp + 0x18]
mov esi, edi
call fcn.00406420
test al, al
jne 0x4083b8
push str._REPAIR_DownloadedUpdateFile_failed_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
mov ecx, dword [edi + 4]
add esp, 8
cmp dword [edi + 0x7c], 0x10
jb 0x4085b6
mov eax, dword [edi + 0x68]
jmp 0x4085b9
push str._REPAIR_Check_UpdateFile_failed_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
push 0x10
lea ecx, [edi + 0x14c]
push ecx
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.00445a61
add esp, 0x18
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x2c]
call fcn.00411810
push 0xc
push str._check_error
lea eax, [esp + 0x30]
mov dword [esp + 0x170], ebx
call fcn.00404450
cmp dword [esp + 0x40], 0x10
mov esi, dword [esp + 0x2c]
jae 0x408582
lea esi, [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00406600
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov dword [esp + 0x168], 0xffffffff
cmp dword [esp + 0x40], 0x10
jb 0x4085e0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042a2ef
add esp, 4
jmp 0x4085e0
lea eax, [edi + 0x68]
push ecx
push eax
push str._s_download_failed__d_
lea edx, [esp + 0x60]
push pe_nt_image_headers32
push edx
call fcn.00445b8d
mov eax, dword [esp + 0x2c]
add esp, 0x14
push eax
lea esi, [esp + 0x58]
call fcn.00406600
cmp dword [edi + 0x90], 3
jne 0x408604
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
add esi, 1
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x1c], esi
jb 0x408360
jmp 0x40861a
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 4
call eax
mov edi, dword [esp + 0x18]
mov byte [esp + 0x17], 1
mov edx, dword [edi + 0x48]
mov eax, dword [edx + 0x10]
lea esi, [edi + 0x48]
mov ecx, esi
call eax
mov eax, dword [esi + 0xa0]
cmp eax, 0xffffffff
je 0x40867a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0xa8]
cmp eax, ebx
mov dword [esi + 0xa0], 0xffffffff
mov byte [esi + 0x9c], 1
je 0x408663
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xa8], ebx
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x40867a
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xa4], ebx
cmp byte [esp + 0x17], bl
mov byte [esi + 0xb0], 8
mov byte [esi + 0xb8], bl
mov byte [esi + 0x10], bl
je 0x4086a8
push str._REPAIR_has_error_return_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 8
jmp 0x4086c1
cmp byte [edi + 0x1c8], bl
je 0x4086b6
push edi
call fcn.00408b00
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push 6
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00445276
mov esp, ebp
pop ebp
ret