Function at 0x419aa0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e84
call fcn.0047d260
mov eax, dword [0x4d3804]
mov dword [ebp - 0x12c], eax
push esi
push edi
mov dword [ebp - 0x1e80], ecx
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x1e80]
cmp dword [eax + 0x10], 0
jne 0x419ae1
mov ecx, dword [ebp - 0x1e80]
call fcn.00419700
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx + 4]
cmp dword [edx + 4], 0
jne 0x419b02
push 0x45a
call dword [sym.imp.kernel32.dll_SetLastError]
xor eax, eax
jmp 0x41a16e
mov eax, dword [ebp + 0x10]
mov dword [0x4d48e0], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x4d48e4], ecx
cmp dword [ebp + 0xc], 0
jne 0x419bb8
call dword [sym.imp.kernel32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x419b66
push 0x2cc
push 0
lea edx, [ebp - 0x1e78]
push edx
call fcn.0047ca40
add esp, 0xc
mov dword [ebp - 0x1e78], 0x10007
call 0x419b4d
pop eax
mov dword [ebp - 0x1dc0], eax
mov dword [ebp - 0x1dc4], ebp
mov dword [ebp - 0x1db4], esp
xor eax, eax
jne 0x419b28
jmp 0x419bb6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_SuspendThread]
push 0x2cc
push 0
lea edx, [ebp - 0x1e78]
push edx
call fcn.0047ca40
add esp, 0xc
mov dword [ebp - 0x1e78], 0x10007
lea eax, [ebp - 0x1e78]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_GetThreadContext]
test eax, eax
jne 0x419bb6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_ResumeThread]
xor eax, eax
jmp 0x41a16e
jmp 0x419bc8
mov esi, dword [ebp + 0xc]
mov ecx, 0xb3
lea edi, [ebp - 0x1e78]
rep movsd dword es:[edi], dword [esi]
push 0x108
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.0047ca40
add esp, 0xc
mov dword [ebp - 0x37c], 0x14c
mov ecx, dword [ebp - 0x1dc0]
xor edx, edx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0xfc], 3
mov eax, dword [ebp - 0x1dc4]
xor ecx, ecx
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], 3
mov edx, dword [ebp - 0x1db4]
xor eax, eax
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xcc], 3
push 0x420
call fcn.0047d781
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x419c63
jmp 0x41a141
push 0x420
push 0
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.0047ca40
add esp, 0xc
mov edx, dword [ebp - 0x10c]
mov dword [edx], 0x20
mov eax, dword [ebp - 0x10c]
mov dword [eax + 0x18], 0x400
push 0x18
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.0047ca40
add esp, 0xc
mov dword [ebp - 0x128], 0x18
push 0x248
push 0
lea edx, [ebp - 0x378]
push edx
call fcn.0047ca40
add esp, 0xc
mov dword [ebp - 0x378], 0x248
mov dword [ebp - 0x380], 0
jmp 0x419cea
mov eax, dword [ebp - 0x380]
add eax, 1
mov dword [ebp - 0x380], eax
push 0
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x14]
push eax
push 0x41a1b0
lea ecx, [ebp - 0x1e78]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x37c]
push eax
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx + 4]
call dword [edx + 0x38]
test eax, eax
jne 0x419d6e
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x4b296c
mov edx, dword [ebp - 0x1e80]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1e80]
call dword [eax + 0x10]
jmp 0x41a141
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x1ba8], ecx
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x1ba4], edx
mov byte [ebp - 0x1ba0], 0
mov byte [ebp - 0x17a0], 0
mov byte [ebp - 0x13a0], 0
mov dword [ebp - 0xfa0], 0
mov dword [ebp - 0xf9c], 0
mov dword [ebp - 0xf98], 0
mov byte [ebp - 0xf90], 0
mov dword [ebp - 0xf94], 0
mov byte [ebp - 0x780], 0
mov byte [ebp - 0xb88], 0
mov eax, dword [ebp - 0x108]
cmp eax, dword [ebp - 0xf8]
jne 0x419e1f
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [ebp - 0xf4]
jne 0x419e1f
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x108]
push eax
push 0
push 0x4b2978
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1e80]
call dword [edx + 0x10]
jmp 0x41a141
mov eax, dword [ebp - 0x108]
or eax, dword [ebp - 0x104]
je 0x41a0ce
mov ecx, dword [ebp - 0x10c]
push ecx
lea edx, [ebp - 0xfa0]
push edx
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x1e80]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx + 4]
call dword [edx + 0x28]
test eax, eax
je 0x419ecd
mov eax, dword [ebp - 0x10c]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x1ba0]
push ecx
call fcn.0047d160
add esp, 8
push 0x1000
push 0x400
lea edx, [ebp - 0x17a0]
push edx
mov eax, dword [ebp - 0x10c]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx + 4]
call dword [edx + 0x3c]
push 0
push 0x400
lea eax, [ebp - 0x13a0]
push eax
mov ecx, dword [ebp - 0x10c]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 0x1e80]
mov eax, dword [edx + 4]
call dword [eax + 0x3c]
jmp 0x419ef8
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x4b2998
mov eax, dword [ebp - 0x1e80]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1e80]
call dword [edx + 0x10]
mov eax, dword [ebp - 0x1e80]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0x18], 0
je 0x419f90
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0xf98]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x1e80]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x1e80]
mov eax, dword [edx + 4]
call dword [eax + 0x18]
test eax, eax
je 0x419f65
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0xf94], ecx
mov edx, dword [ebp - 0x11c]
push edx
lea eax, [ebp - 0xf90]
push eax
call fcn.0047d160
add esp, 8
jmp 0x419f90
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x4b29ac
mov eax, dword [ebp - 0x1e80]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1e80]
call dword [edx + 0x10]
lea eax, [ebp - 0x378]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x1e80]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x1e80]
mov ecx, dword [edx + 4]
call fcn.0041b470
test eax, eax
je 0x41a0a3
mov eax, dword [ebp - 0x358]
mov dword [ebp - 0x1e84], eax
cmp dword [ebp - 0x1e84], 8
ja case.default.0x419fe0
mov ecx, dword [ebp - 0x1e84]
jmp dword [ecx*4 + 0x41a181]
mov dword [ebp - 0xb8c], 0x4b29c4
jmp 0x41a05d
mov dword [ebp - 0xb8c], 0x4b29d0
jmp 0x41a05d
mov dword [ebp - 0xb8c], 0x4b29d8
jmp 0x41a05d
mov dword [ebp - 0xb8c], 0x4b29dc
jmp 0x41a05d
mov dword [ebp - 0xb8c], 0x4b29e0
jmp 0x41a05d
mov dword [ebp - 0xb8c], 0x4b29ec
jmp 0x41a05d
mov dword [ebp - 0xb8c], 0x4b29f8
jmp 0x41a05d
mov dword [ebp - 0xb8c], 0x4b29fc
jmp 0x41a05d
mov dword [ebp - 0xb8c], 0x4b2a00
jmp 0x41a05d
mov dword [ebp - 0xb8c], 0
lea edx, [ebp - 0x354]
push edx
lea eax, [ebp - 0xb88]
push eax
call fcn.0047d160
add esp, 8
mov ecx, dword [ebp - 0x370]
mov dword [ebp - 0x788], ecx
mov edx, dword [ebp - 0x36c]
mov dword [ebp - 0x784], edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x780]
push ecx
call fcn.0047d160
add esp, 8
jmp 0x41a0ce
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x4b2a08
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1e80]
call dword [edx + 0x10]
mov dword [ebp - 0x1e7c], 1
cmp dword [ebp - 0x380], 0
jne 0x41a0eb
mov dword [ebp - 0x1e7c], 0
lea eax, [ebp - 0x1ba8]
push eax
mov ecx, dword [ebp - 0x1e7c]
push ecx
mov edx, dword [ebp - 0x1e80]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1e80]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xf8]
or ecx, dword [ebp - 0xf4]
jne 0x41a13c
lea edx, [ebp - 0x1ba8]
push edx
push 2
mov eax, dword [ebp - 0x1e80]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1e80]
call dword [edx + 0xc]
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x41a141
jmp 0x419cdb
cmp dword [ebp - 0x10c], 0
je 0x41a159
mov eax, dword [ebp - 0x10c]
push eax
call fcn.0047d669
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x41a169
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, 1
mov ecx, dword [ebp - 0x12c]
call fcn.0047bda9
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10