Function at 0x41d790
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x439a7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x440d3c
mov eax, dword [esi + 0x924]
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageA]
xor ebp, ebp
mov dword [esp + 0x20], 1
push ebp
push ebp
push 0x12
push eax
mov dword [esi + 0x14], ebp
call edi
mov ecx, dword [esi + 0x64]
push ebp
push ebp
push 0x12
push ecx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call edi
push ebp
call edi
lea eax, [esi + 0xc74]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x45a6c0]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, ebp
je 0x41d80d
push eax
call ebx
mov ecx, dword [esi + 0x4c]
cmp ecx, ebp
je 0x41d819
call fcn.00425e90
mov eax, dword [0x45a1e4]
cmp eax, ebp
je 0x41d835
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x45a1e4], ebp
mov dword [0x45a1e8], ebp
mov eax, dword [esi + 0x34]
cmp eax, ebp
je 0x41d83f
push eax
call ebx
mov eax, dword [esi + 0x30]
cmp eax, ebp
je 0x41d84d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x34]
cmp eax, ebp
je 0x41d85b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x41d865
push eax
call ebx
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], 0x103
cmp eax, ebp
je 0x41d8ba
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41d8ad
cmp dword [esp + 0x10], 0x103
jne 0x41d8ad
mov eax, dword [esi + 0x24]
cmp eax, ebp
je 0x41d8a2
push eax
call ebx
push ebp
call edi
push 0x64
call edi
push ebp
call edi
mov eax, dword [esi + 0x1c]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], ebp
mov eax, dword [esi + 0x24]
cmp eax, ebp
je 0x41d8cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], ebp
mov eax, dword [esi + 0x20]
cmp eax, ebp
je 0x41d8d5
push eax
call ebx
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x41d926
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41d915
cmp dword [esp + 0x10], 0x103
jne 0x41d915
mov eax, dword [esi + 0x20]
cmp eax, ebp
je 0x41d90a
push eax
call ebx
push ebp
call edi
push 0x64
call edi
push ebp
call edi
mov eax, dword [esi + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x41d926
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebp
mov eax, dword [esi + 0x20]
cmp eax, ebp
je 0x41d937
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], ebp
mov eax, dword [esi + 0x40]
cmp eax, ebp
je 0x41d941
push eax
call ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebp
je 0x41d996
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41d981
cmp dword [esp + 0x10], 0x103
jne 0x41d981
mov eax, dword [esi + 0x40]
cmp eax, ebp
je 0x41d976
push eax
call ebx
push ebp
call edi
push 0x64
call edi
push ebp
call edi
mov edx, dword [esi + 0x3c]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x3c]
cmp eax, ebp
je 0x41d996
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov dword [esi + 0x3c], ebp
jmp 0x41d99c
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x40]
cmp eax, ebp
je 0x41d9a9
push eax
call ebx
mov dword [esi + 0x40], ebp
mov eax, dword [esi + 0x68]
cmp eax, ebp
je 0x41d9e2
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41d9d5
cmp dword [esp + 0x10], 0x103
jne 0x41d9d5
mov edx, dword [esi + 0x68]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x68]
cmp eax, ebp
je 0x41d9e2
push eax
call ebx
mov dword [esi + 0x68], ebp
mov edi, dword [esi + 0xb48]
cmp edi, ebp
je 0x41da02
mov ecx, edi
call fcn.004170f0
push edi
call fcn.004303de
add esp, 4
mov dword [esi + 0xb48], ebp
mov ecx, dword [esi + 0x4c]
cmp ecx, ebp
je 0x41da12
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x4c], ebp
mov eax, dword [esi + 0x904]
cmp eax, ebp
je 0x41da25
push eax
call fcn.004303de
add esp, 4
mov eax, dword [esi + 0x930]
mov dword [esi + 0x904], ebp
cmp eax, ebp
je 0x41da70
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41da5d
cmp dword [esp + 0x10], 0x103
jne 0x41da5d
mov edx, dword [esi + 0x930]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x930]
cmp eax, ebp
je 0x41da70
push eax
call ebx
mov dword [esi + 0x930], ebp
mov eax, dword [esi + 0x2c]
cmp eax, ebp
je 0x41da7a
push eax
call ebx
mov eax, dword [esi + 0x44]
mov dword [esi + 0x2c], ebp
cmp eax, ebp
je 0x41dab6
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41daa9
cmp dword [esp + 0x10], 0x103
jne 0x41daa9
mov edx, dword [esi + 0x44]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x44]
cmp eax, ebp
je 0x41dab6
push eax
call ebx
mov dword [esi + 0x44], ebp
mov eax, dword [0x45a6c0]
cmp eax, ebp
je 0x41dac8
push eax
call ebx
mov dword [0x45a6c0], ebp
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x41dad5
push eax
call ebx
mov dword [esi + 0x58], ebp
lea edi, [esi + 0xc74]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ebx, dword [esi + 0xc68]
mov edi, dword [ebx]
cmp edi, ebx
je 0x41db22
mov eax, edi
mov edi, dword [edi]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call fcn.004303de
mov ecx, dword [esi + 0xc6c]
add esp, 4
dec ecx
cmp edi, ebx
mov dword [esi + 0xc6c], ecx
jne 0x41daf5
mov eax, dword [esi + 0xc68]
push eax
call fcn.004303de
mov dword [esi + 0xc68], ebp
mov dword [esi + 0xc6c], ebp
mov ebx, dword [esi + 0xc5c]
add esp, 4
mov edi, dword [ebx]
cmp edi, ebx
je 0x41db76
mov eax, edi
mov edi, dword [edi]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call fcn.004303de
mov ecx, dword [esi + 0xc60]
add esp, 4
dec ecx
cmp edi, ebx
mov dword [esi + 0xc60], ecx
jne 0x41db49
mov eax, dword [esi + 0xc5c]
push eax
call fcn.004303de
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0xc5c], ebp
mov dword [esi + 0xc60], ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret