Function at 0x480cf0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x3738], ebx
je 0x480d4a
call fcn.0047a430
mov eax, dword [esi + 0x3738]
push 0x12c
push eax
call edi
test eax, eax
je 0x480d2e
mov ecx, dword [esi + 0x3738]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x3738]
cmp eax, ebx
je 0x480d4a
mov dword [esi + 0x3738], ebx
cmp eax, 0xffffffff
je 0x480d4a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x264]
cmp eax, ebx
je 0x480d8f
push ebx
push eax
call edi
test eax, eax
jne 0x480d73
mov edx, dword [esi + 0x264]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [esi + 0x264], ebx
jmp 0x480d95
mov eax, dword [esi + 0x264]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esi + 0xacc], bx
je 0x480dba
mov ecx, esi
call fcn.0047a430
push ebx
lea ecx, [esi + 0x44ac]
call fcn.004876a0
xor edx, edx
mov word [esi + 0xacc], dx
cmp dword [ebp + 8], ebx
jne 0x480e08
mov eax, dword [esi + 0x3758]
cmp eax, ebx
je 0x480dd7
mov dword [esi + 0x3758], ebx
cmp eax, 0xffffffff
je 0x480dd7
push eax
call edi
mov eax, dword [esi + 0x3740]
mov dword [esi + 0x3754], 0xffffffff
cmp eax, ebx
je 0x480f4d
mov dword [esi + 0x3740], ebx
cmp eax, 0xffffffff
je 0x480f4d
push eax
call edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x484]
mov dword [esi], ebx
mov dword [esi + 0x498], ebx
cmp eax, ebx
je 0x480e28
mov dword [esi + 0x484], ebx
cmp eax, 0xffffffff
je 0x480e28
push eax
call edi
mov eax, dword [esi + 0x47c]
mov dword [esi + 0x484], ebx
mov dword [esi + 0x480], ebx
mov byte [esi + 0x490], bl
mov dword [esi + 0x494], ebx
mov dword [esi + 0x488], ebx
cmp eax, ebx
je 0x480e7d
push ebx
push eax
call fcn.0049fc10
add esp, 8
cmp al, bl
je 0x480e7d
mov eax, dword [esi + 0x498]
mov ecx, dword [esi + 0x480]
mov edx, dword [0x50b39c]
push eax
push ecx
mov ecx, dword [edx + 0x423c]
call fcn.00490310
mov eax, dword [esi + 0x4494]
test al, 4
je 0x480e90
and eax, 0xfffffffb
mov dword [esi + 0x4494], eax
mov dword [esi + 0x40d0], ebx
mov dword [esi + 0x66e8], ebx
cmp dword [esi + 0x40d4], ebx
je 0x480ed5
mov eax, dword [esi + 0x47c]
mov dword [esi + 0x40d4], ebx
cmp eax, ebx
je 0x480ed5
push ebx
push eax
call fcn.0049fc10
add esp, 8
cmp al, bl
je 0x480ed5
mov eax, dword [0x50b39c]
mov ecx, dword [eax + 0x423c]
push ebx
push 1
call fcn.0048f8c0
mov eax, dword [esi + 0x6b0]
mov dword [esi + 0x40d8], ebx
cmp eax, ebx
je 0x480ef3
mov dword [esi + 0x6b0], ebx
cmp eax, 0xffffffff
je 0x480ef3
push eax
call edi
lea ecx, [esi + 0x4dd4]
call fcn.004ad430
mov eax, dword [esi + 0x4d40]
cmp eax, ebx
je 0x480f10
cmp eax, 0xffffffff
je 0x480f10
push eax
call edi
mov dword [esi + 0x4d40], ebx
xor ecx, ecx
mov word [esi + 0x6bc], cx
xor edx, edx
xor eax, eax
mov ecx, esi
mov word [esi + 0x8c4], dx
mov word [esi + 0x4a6], ax
call fcn.0047fcb0
mov ecx, esi
call fcn.0047fb70
mov ecx, dword [esi + 0x47c]
add ecx, 8
call fcn.0049d200
pop edi
pop esi
pop ebx
pop ebp
ret 4