Function at 0x420590
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x4630df0]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
push esi
cmp eax, ebx
push edi
jne 0x420613
cmp dword [0x461c00c], ebx
je 0x4205df
mov eax, dword [0x4c437c]
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [0x461c00c]
push ebx
push ecx
mov dword [0x4c437c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x461c00c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x461c00c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
call fcn.00412710
mov eax, dword [0x4630df0]
add esp, 8
inc eax
mov dword [0x4630df0], eax
call fcn.00420a90
mov word [0x455ef3c], bx
mov dword [0x4554074], ebx
mov dword [0x4e2650], ebx
mov eax, dword [0x4630df0]
mov esi, 1
cmp eax, esi
jne 0x4206db
cmp dword [0x455ef44], ebx
jne 0x420638
mov dword [0x455ef44], esi
jmp 0x4206bc
push 1
mov ecx, 8
mov esi, 0x455703c
mov edi, 0x454f278
push 0x20
push 0x454f278
rep movsd dword es:[edi], dword [esi]
push str.f_encor1c
call fcn.0048bb90
push 1
mov ecx, 8
mov esi, 0x4556280
mov edi, 0x455aa58
push 0x20
push 0x455aa58
rep movsd dword es:[edi], dword [esi]
push str.f_encor1c
call fcn.0048bb90
mov edi, 0x454f278
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x455aa58
mov byte [0x454f37f], cl
mov byte [0x454f381], cl
or ecx, 0xffffffff
mov esi, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [0x455ab5f], cl
mov byte [0x455ab61], cl
mov eax, dword [0x4b7ff8]
mov dword [0x455ef40], ebx
push eax
call fcn.00411990
mov eax, dword [0x4630df0]
add esp, 4
inc eax
mov dword [0x4630df0], eax
cmp dword [0x4630df0], 2
jne 0x4206e6
mov ebp, esi
push ebp
call fcn.00420b70
add esp, 4
cmp eax, esi
jne 0x420911
push 0xf0
push 0x140
push 0xd9
mov dword [0x4630df0], 3
call fcn.00488190
add esp, 0xc
mov eax, dword [0x4630df0]
mov ebp, 4
cmp eax, 3
jne 0x4207be
mov edi, 0x4b800c
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 2
mov edi, 2
mov eax, 0xa
push ebx
lea ecx, [ecx + ecx*8]
push edi
shr ecx, 6
add ecx, edi
mov dword [0x454e0f8], edi
sub eax, ecx
push ecx
shl eax, 6
cdq
sub eax, edx
push 0xc0
sar eax, 1
push eax
mov dword [0x4552e2c], ecx
mov dword [0x455eed4], eax
mov dword [0x4552a0c], 0xc0
call fcn.00448610
add esp, 0x18
mov dword [0x455ef48], eax
call fcn.0045ef50
mov eax, dword [0x54c83c]
mov dword [0x4630df0], ebp
cmp eax, ebx
mov dword [0x4554074], edi
je 0x4207ca
mov eax, dword [0x455eeb0]
push eax
call fcn.004011c0
mov ecx, dword [0x4552f28]
push ecx
call fcn.004011c0
add esp, 8
cmp dword [0x4630df0], ebp
jne 0x420a20
mov eax, dword [0x455ef48]
cmp eax, ebx
je 0x420861
cmp dword [eax + 0x78], esi
jl 0x420861
mov eax, dword [0x4ebffdc]
cmp eax, 7
jne 0x4207f0
mov dword [0x461b414], esi
push eax
push 0x4b800c
push str._s__d_
push 0x455b468
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x454e0f8]
push ebx
push 0x455b468
push ebx
lea eax, [eax + eax*2]
push esi
shl eax, 4
sub eax, 0x10
mov edi, 0x455b468
cdq
sub eax, edx
mov edx, dword [0x4552a0c]
sar eax, 1
add eax, edx
or ecx, 0xffffffff
push eax
xor eax, eax
mov edx, dword [0x4552e2c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx*8]
sub eax, ecx
shl eax, 3
cdq
sub eax, edx
mov edx, dword [0x455eed4]
sar eax, 1
add eax, edx
push eax
call fcn.0041d860
add esp, 0x28
call fcn.0045ef60
cmp eax, esi
jne 0x42097f
push ebx
mov ecx, 8
mov esi, 0x454f278
mov edi, 0x455703c
push 0x20
push 0x455703c
rep movsd dword es:[edi], dword [esi]
push str.f_encor1c
call fcn.0048bb90
push ebx
mov ecx, 8
mov esi, 0x455aa58
mov edi, 0x4556280
push 0x20
push 0x4556280
rep movsd dword es:[edi], dword [esi]
push str.f_encor1c
call fcn.0048bb90
mov ecx, 0x41
xor eax, eax
mov edi, 0x454f278
mov byte [0x454f37f], bl
mov byte [0x454f381], bl
mov byte [0x455ab5f], bl
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x455aa58
mov byte [0x455ab61], bl
push 2
rep stosd dword es:[edi], eax
call fcn.00479bc0
mov eax, dword [0x455ef48]
add esp, 0x24
cmp eax, ebx
je 0x420a20
push eax
call fcn.004011c0
add esp, 4
mov dword [0x455ef48], ebx
jmp 0x420a20
cmp eax, 2
jne 0x420943
push 0xf0
push 0x140
push 0xd9
call fcn.00488190
mov ecx, dword [0x45600f4]
add esp, 0xc
push ebx
push ebx
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x420718
cmp eax, ebx
jge 0x420718
mov edi, 0x4b8850
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4630df0], 0x64
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x455b468
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x420a29
cmp eax, 0xfffffff9
jne 0x4209b5
mov edi, 0x4ebe4d8
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4630df0], 0x64
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x455b468
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x420a29
cmp eax, ebx
jge 0x4209ea
mov edi, 0x461b65c
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4630df0], 0x64
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x455b468
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x420a29
cmp eax, 0xfffffff8
jne 0x420a20
mov edi, 0x4ebe4d8
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4630df0], 0x64
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x455b468
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x420a29
cmp dword [0x4630df0], 0x64
jne 0x420a51
call fcn.0045ec30
mov eax, dword [0x455ef48]
cmp eax, ebx
je 0x420a46
push eax
call fcn.004011c0
add esp, 4
mov dword [0x455ef48], ebx
call fcn.00420e10
inc dword [0x4630df0]
mov eax, dword [0x4630df0]
pop edi
pop esi
pop ebp
cmp eax, 0x65
pop ebx
jne 0x420a85
push 0x455b468
call fcn.00420e20
add esp, 4
test eax, eax
je 0x420a85
push 0x3e8
mov dword [0x4630df0], 2
call dword [sym.imp.KERNEL32.dll_Sleep]
ret