Function at 0x41de10
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x45b864
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x461788
xor ebx, ebx
mov dword [esp + 0x24], 5
mov dword [0x485b08], ebx
call fcn.004232d0
mov eax, dword [esi + 0xc]
push eax
call fcn.0042f740
mov eax, dword [esi + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
add esp, 4
cmp eax, ebx
je 0x41de69
push eax
call ebp
mov eax, dword [esi + 0x1574]
cmp eax, ebx
je 0x41de7e
push ebx
push ebx
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0x2cf4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x41de9c
push eax
call ebp
mov eax, dword [esi + 0x2c80]
cmp eax, ebx
je 0x41dea9
push eax
call ebp
mov eax, dword [esi + 0x2b38]
cmp eax, ebx
je 0x41deb6
push eax
call ebp
mov eax, dword [esi + 0x2b3c]
cmp eax, ebx
je 0x41dec3
push eax
call ebp
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x41decd
push eax
call ebp
mov ecx, esi
call fcn.004297d0
mov eax, dword [esi + 0x2b34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x41deed
push eax
call edi
mov dword [esi + 0x2b34], ebx
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x41defa
push eax
call edi
mov dword [esi + 0x1c], ebx
mov eax, dword [esi + 0x2c94]
cmp eax, ebx
je 0x41df0d
push eax
call edi
mov dword [esi + 0x2c94], ebx
mov eax, dword [0x485b10]
cmp eax, ebx
je 0x41df29
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x485b10], ebx
mov dword [0x485b14], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x41df33
push eax
call ebp
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x41df40
push eax
call edi
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x41df4d
push eax
call edi
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x41df5a
push eax
call edi
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x41df67
push eax
call edi
mov dword [esi + 0x2c], ebx
mov ecx, esi
call fcn.00425330
mov ecx, esi
call fcn.0042a8c0
mov ebp, dword [esi + 0x2ca0]
cmp ebp, ebx
je 0x41df95
mov ecx, ebp
call fcn.00434480
push ebp
call fcn.00451f5e
add esp, 4
mov dword [esi + 0x2ca0], ebx
mov eax, dword [esi + 0x1564]
cmp eax, ebx
je 0x41dfae
push eax
call fcn.00451f5e
add esp, 4
mov dword [esi + 0x1564], ebx
mov eax, dword [esi + 0x1580]
cmp eax, ebx
je 0x41dff8
lea ecx, [esp + 0x10]
mov ebp, 0x103
push ecx
push eax
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41dfe5
cmp dword [esp + 0x10], ebp
jne 0x41dfe5
mov edx, dword [esi + 0x1580]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x1580]
cmp eax, ebx
je 0x41dff8
push eax
call edi
mov dword [esi + 0x1580], ebx
mov eax, dword [esi + 0x2b38]
cmp eax, ebx
je 0x41e00b
push eax
call edi
mov dword [esi + 0x2b38], ebx
mov eax, dword [esi + 0x2b3c]
cmp eax, ebx
je 0x41e01e
push eax
call edi
mov dword [esi + 0x2b3c], ebx
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x41e02b
push eax
call edi
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x41e038
push eax
call edi
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x41e045
push eax
call edi
mov dword [esi + 0x48], ebx
mov eax, dword [esi + 0x2c80]
cmp eax, ebx
je 0x41e058
push eax
call edi
mov dword [esi + 0x2c80], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41e065
push eax
call edi
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x41e072
push eax
call edi
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x2b54]
cmp eax, ebx
je 0x41e085
push eax
call edi
mov dword [esi + 0x2b54], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x41e092
push eax
call edi
mov dword [esi + 8], ebx
cmp dword [0x481a98], ebx
jne 0x41e0a1
mov ecx, esi
call fcn.004251a0
call fcn.0042b1e0
lea edi, [esi + 0x2cf4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x2cec]
lea ebp, [esi + 0x2ce8]
mov byte [esp + 0x24], 4
mov dword [esp + 0x10], eax
mov edi, dword [eax]
cmp edi, eax
je 0x41e0ec
mov eax, edi
mov edi, dword [edi]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.00422600
cmp edi, dword [esp + 0x10]
jne 0x41e0d5
mov eax, dword [ebp + 4]
push eax
call fcn.00451f5e
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x2ce0]
lea ebp, [esi + 0x2cdc]
add esp, 4
mov byte [esp + 0x24], 3
mov edi, dword [eax]
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x41e130
mov eax, edi
mov edi, dword [edi]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebp
call fcn.00422600
cmp edi, dword [esp + 0x10]
jne 0x41e119
mov eax, dword [ebp + 4]
push eax
call fcn.00451f5e
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x2cd4]
lea ebp, [esi + 0x2cd0]
add esp, 4
mov byte [esp + 0x24], 2
mov edi, dword [eax]
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x41e174
mov eax, edi
mov edi, dword [edi]
lea edx, [esp + 0x18]
push eax
push edx
mov ecx, ebp
call fcn.00422600
cmp edi, dword [esp + 0x10]
jne 0x41e15d
mov eax, dword [ebp + 4]
push eax
call fcn.00451f5e
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x2cc8]
lea ebp, [esi + 0x2cc4]
add esp, 4
mov byte [esp + 0x24], 1
mov edi, dword [eax]
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x41e1b8
mov eax, edi
mov edi, dword [edi]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.00422600
cmp edi, dword [esp + 0x10]
jne 0x41e1a1
mov eax, dword [ebp + 4]
push eax
call fcn.00451f5e
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov ebp, dword [esi + 0x2cbc]
add esp, 4
mov byte [esp + 0x24], bl
mov edi, dword [ebp]
cmp edi, ebp
je 0x41e21d
lea ecx, [esp + 0x18]
push ebx
mov eax, edi
mov edi, dword [edi]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.00422550
mov eax, dword [eax]
push eax
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
call fcn.00451f5e
mov ecx, dword [esi + 0x2cc0]
add esp, 4
dec ecx
cmp edi, ebp
mov dword [esi + 0x2cc0], ecx
jne 0x41e1db
mov edx, dword [esi + 0x2cbc]
push edx
call fcn.00451f5e
mov dword [esi + 0x2cbc], ebx
mov dword [esi + 0x2cc0], ebx
mov ebp, dword [esi + 0x2cb0]
add esp, 4
mov edi, dword [ebp]
cmp edi, ebp
je 0x41e272
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.00451f5e
mov ecx, dword [esi + 0x2cb4]
add esp, 4
dec ecx
cmp edi, ebp
mov dword [esi + 0x2cb4], ecx
jne 0x41e245
mov eax, dword [esi + 0x2cb0]
push eax
call fcn.00451f5e
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x2cb0], ebx
mov dword [esi + 0x2cb4], ebx
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret