Function at 0x1000a220
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e84
call fcn.1001b910
mov eax, dword [0x1003bcc8]
xor eax, ebp
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 0x1000a263
mov ecx, dword [ebp - 0x1e80]
call fcn.10009d10
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx + 4]
cmp dword [edx + 4], 0
jne 0x1000a284
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000a920
mov eax, dword [ebp + 0x10]
mov dword [0x1003fcc8], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x1003fccc], ecx
cmp dword [ebp + 0xc], 0
jne 0x1000a33a
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000a2e8
push 0x2cc
push 0
lea edx, [ebp - 0x1e78]
push edx
call fcn.1001abd0
add esp, 0xc
mov dword [ebp - 0x1e78], 0x10007
call 0x1000a2cf
pop eax
mov dword [ebp - 0x1dc0], eax
mov dword [ebp - 0x1dc4], ebp
mov dword [ebp - 0x1db4], esp
xor eax, eax
jne 0x1000a2aa
jmp 0x1000a338
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.1001abd0
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 0x1000a338
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
jmp 0x1000a920
jmp 0x1000a34a
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.1001abd0
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.1001929c
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x1000a3ea
jmp 0x1000a8f3
push 0x420
push 0
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.1001abd0
add esp, 0xc
mov edx, dword [ebp - 0x10c]
mov dword [edx], 0x20
mov eax, dword [ebp - 0x10c]
mov dword [eax + 0x18], 0x400
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x128], 0x18
push 0x248
push 0
lea edx, [ebp - 0x378]
push edx
call fcn.1001abd0
add esp, 0xc
mov dword [ebp - 0x378], 0x248
mov dword [ebp - 0x380], 0
jmp 0x1000a484
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 0x1000a960
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]
mov eax, dword [edx + 0x38]
call eax
test eax, eax
jne 0x1000a50c
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003307c
mov eax, dword [ebp - 0x1e80]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1e80]
mov eax, dword [edx + 0x10]
call eax
jmp 0x1000a8f3
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 0x1000a5bf
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [ebp - 0xf4]
jne 0x1000a5bf
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x108]
push eax
push 0
push str.StackWalk64_Endless_Callstack_
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1e80]
mov eax, dword [edx + 0x10]
call eax
jmp 0x1000a8f3
mov ecx, dword [ebp - 0x108]
or ecx, dword [ebp - 0x104]
je 0x1000a87c
mov edx, dword [ebp - 0x10c]
push edx
lea eax, [ebp - 0xfa0]
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]
mov ecx, dword [eax + 0x28]
call ecx
test eax, eax
je 0x1000a673
mov edx, dword [ebp - 0x10c]
add edx, 0x1c
push edx
lea eax, [ebp - 0x1ba0]
push eax
call fcn.1000af10
add esp, 8
push 0x1000
push 0x400
lea ecx, [ebp - 0x17a0]
push ecx
mov edx, dword [ebp - 0x10c]
add edx, 0x1c
push edx
mov eax, dword [ebp - 0x1e80]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x3c]
call edx
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]
mov ecx, dword [eax + 0x3c]
call ecx
jmp 0x1000a6a0
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100330a8
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1e80]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx + 4]
cmp dword [edx + 0x18], 0
je 0x1000a73c
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0xf98]
push ecx
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x1e80]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
call edx
test eax, eax
je 0x1000a70f
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0xf94], eax
mov ecx, dword [ebp - 0x11c]
push ecx
lea edx, [ebp - 0xf90]
push edx
call fcn.1000af10
add esp, 8
jmp 0x1000a73c
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100330bc
mov edx, dword [ebp - 0x1e80]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [eax + 0x10]
call edx
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.10009aa0
test eax, eax
je 0x1000a84f
mov eax, dword [ebp - 0x358]
mov dword [ebp - 0x1e84], eax
cmp dword [ebp - 0x1e84], 8
ja case.default.0x1000a78c
mov ecx, dword [ebp - 0x1e84]
jmp dword [ecx*4 + 0x1000a938]
mov dword [ebp - 0xb8c], 0x100330d4
jmp 0x1000a809
mov dword [ebp - 0xb8c], 0x100330e0
jmp 0x1000a809
mov dword [ebp - 0xb8c], 0x100330e8
jmp 0x1000a809
mov dword [ebp - 0xb8c], 0x100330ec
jmp 0x1000a809
mov dword [ebp - 0xb8c], 0x100330f0
jmp 0x1000a809
mov dword [ebp - 0xb8c], 0x100330fc
jmp 0x1000a809
mov dword [ebp - 0xb8c], 0x10033108
jmp 0x1000a809
mov dword [ebp - 0xb8c], 0x1003310c
jmp 0x1000a809
mov dword [ebp - 0xb8c], 0x10033110
jmp 0x1000a809
mov dword [ebp - 0xb8c], 0
lea edx, [ebp - 0x354]
push edx
lea eax, [ebp - 0xb88]
push eax
call fcn.1000af10
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.1000af10
add esp, 8
jmp 0x1000a87c
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10033118
mov ecx, dword [ebp - 0x1e80]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1e80]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x1e7c], 1
cmp dword [ebp - 0x380], 0
jne 0x1000a899
mov dword [ebp - 0x1e7c], 0
lea ecx, [ebp - 0x1ba8]
push ecx
mov edx, dword [ebp - 0x1e7c]
push edx
mov eax, dword [ebp - 0x1e80]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1e80]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0xf8]
or ecx, dword [ebp - 0xf4]
jne 0x1000a8ee
lea edx, [ebp - 0x1ba8]
push edx
push 2
mov eax, dword [ebp - 0x1e80]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1e80]
mov eax, dword [edx + 0xc]
call eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000a8f3
jmp 0x1000a475
cmp dword [ebp - 0x10c], 0
je 0x1000a90b
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.100191bf
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x1000a91b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 0x12c]
xor ecx, ebp
call fcn.100184dc
mov esp, ebp
pop ebp
ret 0x10