Function at 0x401dd4
Capabilities:
Create thread
Suspend thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x5bfbf6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61dc40]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ecx, str.__hostwnd
mov esi, edx
call fcn.004254af
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
mov dword [0x6394fc], eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x401e2c
push 0x639500
push dword [0x6394fc]
call ebp
xor esi, esi
cmp dword [0x6394fc], esi
je 0x402000
cmp dword [0x639500], esi
je 0x402000
call fcn.0047e050
push 0x4a
mov dword [0x637ecc], eax
call fcn.00480852
pop ecx
call fcn.004666aa
lea ecx, [eax + 4]
push ecx
push esi
push eax
push 0x4666dc
push esi
push esi
call fcn.005905f0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
cmp eax, esi
je 0x401e7f
push eax
call edi
call fcn.004e0de8
lea ecx, [eax + 4]
push ecx
push esi
push eax
push 0x4e0e24
push esi
push esi
call fcn.005905f0
add esp, 0x18
cmp eax, esi
je 0x401ea0
push eax
call edi
call fcn.004def29
lea ecx, [eax + 4]
push ecx
push esi
push eax
push 0x4def5b
push esi
push esi
call fcn.005905f0
add esp, 0x18
cmp eax, esi
je 0x401ec1
push eax
call edi
call fcn.0044b2bf
lea ecx, [eax + 4]
push ecx
push esi
push eax
push 0x44b31f
push esi
push esi
call fcn.005905f0
add esp, 0x18
cmp eax, esi
je 0x401ee2
push eax
call edi
call fcn.004f75db
push 1
call fcn.004f7617
mov edi, eax
cmp edi, esi
je 0x401eff
call fcn.004f75db
push eax
call fcn.004f76a5
call fcn.00462a1a
call fcn.00462d97
call fcn.00462a1a
push esi
call fcn.00462a60
push dword [0x6394fc]
call ebx
test eax, eax
jne 0x401f46
mov dword [0x6394fc], esi
mov dword [0x639500], esi
call fcn.004014ab
mov dword [0x6394fc], eax
cmp eax, esi
je 0x402000
push 0x639500
push eax
call ebp
mov eax, dword [0x6394fc]
cmp eax, esi
je 0x402000
cmp dword [0x639500], esi
je 0x402000
push esi
push esi
push 0x2501
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp edi, esi
jne 0x401f8b
call fcn.004f75db
push esi
call fcn.004f7617
test eax, eax
je 0x401f8b
call fcn.004f75db
push eax
call fcn.004f76a5
push dword [0x639500]
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x20], eax
cmp eax, esi
je 0x402000
push 6
pop ecx
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x401fd2
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
push esi
lea eax, [esp + 0x34]
push eax
call edi
test eax, eax
jne 0x401fbc
push 0xff
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x2c]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x402000
cmp eax, 0xffffffff
jne 0x401fd2
call fcn.00462a1a
push 1
call fcn.00462a60
call fcn.004e0de8
mov ebx, dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov eax, dword [edi + 4]
cmp eax, esi
je 0x40206f
push esi
push esi
push 0x12
push eax
call ebx
push dword [edi + 4]
push esi
push 0x1f03ff
call ebp
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x40206c
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402062
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], esi
call fcn.004def29
mov edi, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], edi
cmp eax, esi
je 0x4020d1
push esi
push esi
push 0x12
push eax
call ebx
push dword [edi + 4]
mov edi, 0x1f03ff
push esi
push edi
call ebp
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x4020c8
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4020be
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], esi
jmp 0x4020d6
mov edi, 0x1f03ff
call fcn.004666aa
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 4]
cmp eax, esi
je 0x402136
push esi
push esi
push 0x12
push eax
call ebx
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push esi
push edi
call ebp
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x40212f
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402125
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], esi
call fcn.0044b2bf
mov dword [esp + 0x20], eax
mov eax, dword [eax + 4]
cmp eax, esi
je 0x402187
push esi
push esi
push 0x12
push eax
call ebx
mov ebx, dword [esp + 0x20]
push dword [ebx + 4]
push esi
push edi
call ebp
mov edi, eax
cmp edi, esi
je 0x402184
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40217d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret