Function at 0x1003d5f0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22e8
call fcn.1007ef50
push esi
push edi
push ecx
lea edi, [ebp - 0x22e8]
mov ecx, 0x8ba
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x10159140]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1b10], 0
mov byte [ebp - 0x21c5], 1
mov dword [ebp - 0x21cc], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x1003d64c
mov ecx, dword [ebp - 8]
call fcn.1003cfb0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
cmp dword [edx + 0x2d0], 0
jne 0x1003d676
mov esi, esp
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.1007e7c0
xor eax, eax
jmp 0x1003de65
mov eax, dword [ebp + 0x10]
mov dword [0x1015b190], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x1015b194], ecx
cmp dword [ebp + 0xc], 0
jne 0x1003d788
mov esi, esp
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadId]
cmp esi, esp
call fcn.1007e7c0
mov esi, eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, esp
call fcn.1007e7c0
cmp esi, eax
jne 0x1003d71b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
cmp dword [ecx + 4], 0
je 0x1003d6dd
mov edx, dword [ebp - 8]
mov esi, dword [edx + 4]
add esi, 4
mov ecx, 0xb3
lea edi, [ebp - 0x2d8]
rep movsd dword es:[edi], dword [esi]
jmp 0x1003d719
push 0x2cc
push 0
lea eax, [ebp - 0x2d8]
push eax
call fcn.100823d0
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10007
call 0x1003d702
pop eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ebp
mov dword [ebp - 0x214], esp
xor ecx, ecx
jne 0x1003d6dd
jmp 0x1003d786
mov esi, esp
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.1007e7c0
push 0x2cc
push 0
lea eax, [ebp - 0x2d8]
push eax
call fcn.100823d0
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10007
mov esi, esp
lea ecx, [ebp - 0x2d8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
cmp esi, esp
call fcn.1007e7c0
test eax, eax
jne 0x1003d786
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.1007e7c0
xor eax, eax
jmp 0x1003de65
jmp 0x1003d798
mov ecx, 0xb3
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x2d8]
rep movsd dword es:[edi], dword [esi]
push 0x108
push 0
lea ecx, [ebp - 0x22d8]
push ecx
call fcn.100823d0
add esp, 0xc
mov dword [ebp - 0x22e0], 0x14c
mov edx, dword [ebp - 0x220]
xor eax, eax
mov dword [ebp - 0x22d8], edx
mov dword [ebp - 0x22d4], eax
mov dword [ebp - 0x22cc], 3
mov ecx, dword [ebp - 0x224]
xor edx, edx
mov dword [ebp - 0x22b8], ecx
mov dword [ebp - 0x22b4], edx
mov dword [ebp - 0x22ac], 3
mov eax, dword [ebp - 0x214]
xor ecx, ecx
mov dword [ebp - 0x22a8], eax
mov dword [ebp - 0x22a4], ecx
mov dword [ebp - 0x229c], 3
push 0x420
call fcn.100da0e0
add esp, 4
mov dword [ebp - 0x1b10], eax
cmp dword [ebp - 0x1b10], 0
jne 0x1003d838
jmp 0x1003de05
push 0x420
push 0
mov edx, dword [ebp - 0x1b10]
push edx
call fcn.100823d0
add esp, 0xc
mov eax, dword [ebp - 0x1b10]
mov dword [eax], 0x20
mov ecx, dword [ebp - 0x1b10]
mov dword [ecx + 0x18], 0x400
push 0x18
push 0
lea edx, [ebp - 0x21bc]
push edx
call fcn.100823d0
add esp, 0xc
mov dword [ebp - 0x21bc], 0x18
push 0x688
push 0
lea eax, [ebp - 0x219c]
push eax
call fcn.100823d0
add esp, 0xc
mov dword [ebp - 0x219c], 0x688
mov dword [ebp - 0x21c4], 0
jmp 0x1003d8bf
mov ecx, dword [ebp - 0x21c4]
add ecx, 1
mov dword [ebp - 0x21c4], ecx
mov esi, esp
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x2e4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x2dc]
push ecx
push 0x1003e870
lea edx, [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x22d8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x22e0]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x300]
call ecx
cmp esi, esp
call fcn.1007e7c0
test eax, eax
jne 0x1003d94b
mov esi, esp
mov edx, dword [ebp - 0x22d4]
push edx
mov eax, dword [ebp - 0x22d8]
push eax
push 0
push 0x101250e4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
call eax
cmp esi, esp
call fcn.1007e7c0
jmp 0x1003de05
mov ecx, dword [ebp - 0x22d8]
mov edx, dword [ebp - 0x22d4]
mov dword [ebp - 0x1b08], ecx
mov dword [ebp - 0x1b04], edx
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x1b00], 0
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x1700], 0
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x1300], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0xf00], xmm0
mov dword [ebp - 0xef8], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0xef0], 0
mov dword [ebp - 0xef4], 0
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x6e0], 0
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0xae8], 0
mov eax, dword [ebp - 0x22d8]
cmp eax, dword [ebp - 0x22c8]
jne 0x1003da56
mov ecx, dword [ebp - 0x22d4]
cmp ecx, dword [ebp - 0x22c4]
jne 0x1003da56
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1c], 0
jle 0x1003da45
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x21cc]
cmp ecx, dword [eax + 0x1c]
jle 0x1003da45
mov esi, esp
mov edx, dword [ebp - 0x22d4]
push edx
mov eax, dword [ebp - 0x22d8]
push eax
push 0
push str.StackWalk64_Endless_Callstack_
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
call eax
cmp esi, esp
call fcn.1007e7c0
jmp 0x1003de05
mov ecx, dword [ebp - 0x21cc]
add ecx, 1
mov dword [ebp - 0x21cc], ecx
jmp 0x1003da60
mov dword [ebp - 0x21cc], 0
mov edx, dword [ebp - 0x22d8]
or edx, dword [ebp - 0x22d4]
je 0x1003dd71
mov esi, esp
mov eax, dword [ebp - 0x1b10]
push eax
lea ecx, [ebp - 0xf00]
push ecx
mov edx, dword [ebp - 0x22d4]
push edx
mov eax, dword [ebp - 0x22d8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x2f0]
call edx
cmp esi, esp
call fcn.1007e7c0
test eax, eax
je 0x1003db35
mov eax, dword [ebp - 0x1b10]
add eax, 0x1c
push eax
push 0x400
lea ecx, [ebp - 0x1b00]
push ecx
call fcn.1003e930
add esp, 0xc
mov esi, esp
push 0x1000
push 0x400
lea edx, [ebp - 0x1700]
push edx
mov eax, dword [ebp - 0x1b10]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x304]
call eax
cmp esi, esp
call fcn.1007e7c0
mov esi, esp
push 0
push 0x400
lea ecx, [ebp - 0x1300]
push ecx
mov edx, dword [ebp - 0x1b10]
add edx, 0x1c
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x304]
call edx
cmp esi, esp
call fcn.1007e7c0
jmp 0x1003db6e
mov esi, esp
mov eax, dword [ebp - 0x22d4]
push eax
mov ecx, dword [ebp - 0x22d8]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, esp
call fcn.1007e7c0
push eax
push 0x10125110
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x10]
call edx
cmp esi, esp
call fcn.1007e7c0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0x2e0], 0
je 0x1003dc21
mov esi, esp
lea edx, [ebp - 0x21bc]
push edx
lea eax, [ebp - 0xef8]
push eax
mov ecx, dword [ebp - 0x22d4]
push ecx
mov edx, dword [ebp - 0x22d8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x2e0]
call ecx
cmp esi, esp
call fcn.1007e7c0
test eax, eax
je 0x1003dbe8
mov edx, dword [ebp - 0x21b4]
mov dword [ebp - 0xef4], edx
mov eax, dword [ebp - 0x21b0]
push eax
push 0x400
lea ecx, [ebp - 0xef0]
push ecx
call fcn.1003e930
add esp, 0xc
jmp 0x1003dc21
mov esi, esp
mov edx, dword [ebp - 0x22d4]
push edx
mov eax, dword [ebp - 0x22d8]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, esp
call fcn.1007e7c0
push eax
push 0x10125124
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
call eax
cmp esi, esp
call fcn.1007e7c0
lea ecx, [ebp - 0x219c]
push ecx
mov edx, dword [ebp - 0x22d4]
push edx
mov eax, dword [ebp - 0x22d8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call fcn.1003ec90
test eax, eax
je 0x1003dd38
mov ecx, dword [ebp - 0x217c]
mov dword [ebp - 0x22e8], ecx
cmp dword [ebp - 0x22e8], 8
ja case.default.0x1003dc6b
mov edx, dword [ebp - 0x22e8]
jmp dword [edx*4 + 0x1003def4]
mov dword [ebp - 0xaec], 0x1012513c
jmp 0x1003dce8
mov dword [ebp - 0xaec], 0x10125148
jmp 0x1003dce8
mov dword [ebp - 0xaec], 0x10125150
jmp 0x1003dce8
mov dword [ebp - 0xaec], 0x10125154
jmp 0x1003dce8
mov dword [ebp - 0xaec], 0x10125158
jmp 0x1003dce8
mov dword [ebp - 0xaec], 0x10125164
jmp 0x1003dce8
mov dword [ebp - 0xaec], 0x10125170
jmp 0x1003dce8
mov dword [ebp - 0xaec], 0x10125174
jmp 0x1003dce8
mov dword [ebp - 0xaec], 0x10125178
jmp 0x1003dce8
mov dword [ebp - 0xaec], 0
lea eax, [ebp - 0x2178]
push eax
push 0x400
lea ecx, [ebp - 0xae8]
push ecx
call fcn.1003e930
add esp, 0xc
mov edx, dword [ebp - 0x2194]
mov eax, dword [ebp - 0x2190]
mov dword [ebp - 0x6e8], edx
mov dword [ebp - 0x6e4], eax
lea ecx, [ebp - 0x2058]
push ecx
push 0x400
lea edx, [ebp - 0x6e0]
push edx
call fcn.1003e930
add esp, 0xc
jmp 0x1003dd71
mov esi, esp
mov eax, dword [ebp - 0x22d4]
push eax
mov ecx, dword [ebp - 0x22d8]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, esp
call fcn.1007e7c0
push eax
push 0x10125180
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x10]
call edx
cmp esi, esp
call fcn.1007e7c0
mov dword [ebp - 0x22e4], 1
cmp dword [ebp - 0x21c4], 0
jne 0x1003dd8e
mov dword [ebp - 0x22e4], 0
mov byte [ebp - 0x21c5], 0
mov esi, esp
lea eax, [ebp - 0x1b08]
push eax
mov ecx, dword [ebp - 0x22e4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0xc]
call edx
cmp esi, esp
call fcn.1007e7c0
mov eax, dword [ebp - 0x22c8]
or eax, dword [ebp - 0x22c4]
jne 0x1003de00
mov byte [ebp - 0x21c5], 1
mov esi, esp
lea ecx, [ebp - 0x1b08]
push ecx
push 2
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0xc]
call edx
cmp esi, esp
call fcn.1007e7c0
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.1007e7c0
jmp 0x1003de05
jmp 0x1003d8b0
cmp dword [ebp - 0x1b10], 0
je 0x1003de1d
mov eax, dword [ebp - 0x1b10]
push eax
call fcn.10097ed0
add esp, 4
movzx ecx, byte [ebp - 0x21c5]
test ecx, ecx
jne 0x1003de47
mov esi, esp
lea edx, [ebp - 0x1b08]
push edx
push 2
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
call eax
cmp esi, esp
call fcn.1007e7c0
cmp dword [ebp + 0xc], 0
jne 0x1003de60
mov esi, esp
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.1007e7c0
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x1003de98]
call fcn.1007e760
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007e0c0
add esp, 0x22e8
cmp ebp, esp
call fcn.1007e7c0
mov esp, ebp
pop ebp
ret 0x10