Function at 0x40a760
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e74
call fcn.00415140
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x40a78a
mov ecx, dword [ebp - 4]
call fcn.0040a3e0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
cmp dword [edx + 4], 0
jne 0x40a7a8
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40ada6
mov eax, dword [ebp + 0x10]
mov dword [0x436564], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x436560], ecx
cmp dword [ebp + 0xc], 0
jne 0x40a85e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x40a80c
push 0x2cc
push 0
lea edx, [ebp - 0x404]
push edx
call fcn.0040c070
add esp, 0xc
mov dword [ebp - 0x404], 0x10007
call 0x40a7f3
pop eax
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x350], ebp
mov dword [ebp - 0x340], esp
xor eax, eax
jne 0x40a7ce
jmp 0x40a85c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea edx, [ebp - 0x404]
push edx
call fcn.0040c070
add esp, 0xc
mov dword [ebp - 0x404], 0x10007
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x40a85c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
jmp 0x40ada6
jmp 0x40a86e
mov ecx, 0xb3
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
push 0x108
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.0040c070
add esp, 0xc
mov dword [ebp - 0x18], 0x14c
mov ecx, dword [ebp - 0x34c]
xor edx, edx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x12c], 3
mov eax, dword [ebp - 0x350]
xor ecx, ecx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x10c], 3
mov edx, dword [ebp - 0x340]
xor eax, eax
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xfc], 3
push 0x420
call fcn.0040c753
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40a905
jmp 0x40ad7f
push 0x420
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040c070
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [edx], 0x20
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0x400
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x30], 0x18
push 0x248
push 0
lea edx, [ebp - 0x64c]
push edx
call fcn.0040c070
add esp, 0xc
mov dword [ebp - 0x64c], 0x248
mov dword [ebp - 0xc], 0
jmp 0x40a978
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x14]
push eax
push 0x40ade0
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x38]
call eax
test eax, eax
jne 0x40a9eb
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StackWalk64
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
jmp 0x40ad7f
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x1e74], ecx
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x1e70], edx
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x1e6c], 0
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x1a6c], 0
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x166c], 0
xorpd xmm0, xmm0
movlpd qword [ebp - 0x126c], xmm0
mov dword [ebp - 0x1264], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x125c], 0
mov dword [ebp - 0x1260], 0
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0xa4c], 0
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0xe54], 0
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 0x128]
jne 0x40aac6
mov ecx, dword [ebp - 0x134]
cmp ecx, dword [ebp - 0x124]
jne 0x40aac6
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x138]
push eax
push 0
push str.StackWalk64_Endless_Callstack_
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
jmp 0x40ad7f
mov ecx, dword [ebp - 0x138]
or ecx, dword [ebp - 0x134]
je 0x40ad20
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x126c]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x28]
call ecx
test eax, eax
je 0x40ab5d
mov edx, dword [ebp - 8]
add edx, 0x1c
lea ecx, [ebp - 0x1e6c]
call fcn.0040b150
push 0x1000
push 0x400
lea edx, [ebp - 0x1a6c]
push edx
mov eax, dword [ebp - 8]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x3c]
call eax
push 0
push 0x400
lea ecx, [ebp - 0x166c]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x1c
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x3c]
call edx
jmp 0x40ab84
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SymGetSymFromAddr64
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0x18], 0
je 0x40abff
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1264]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x18]
call ecx
test eax, eax
je 0x40abd8
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1260], edx
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x125c]
call fcn.0040b150
jmp 0x40abff
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SymGetLineFromAddr64
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x10]
call edx
lea eax, [ebp - 0x64c]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 4]
call fcn.0040a1e0
test eax, eax
je 0x40acf9
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
ja case.default.0x40ac40
mov ecx, dword [ebp - 0x10]
jmp dword [ecx*4 + 0x40adb0]
mov dword [ebp - 0xe58], str._nosymbols_
jmp 0x40acbd
mov dword [ebp - 0xe58], str.COFF
jmp 0x40acbd
mov dword [ebp - 0xe58], 0x42f85c
jmp 0x40acbd
mov dword [ebp - 0xe58], 0x42f860
jmp 0x40acbd
mov dword [ebp - 0xe58], str._exported_
jmp 0x40acbd
mov dword [ebp - 0xe58], str._deferred_
jmp 0x40acbd
mov dword [ebp - 0xe58], 0x42f87c
jmp 0x40acbd
mov dword [ebp - 0xe58], 0x42f888
jmp 0x40acbd
mov dword [ebp - 0xe58], str.Virtual
jmp 0x40acbd
mov dword [ebp - 0xe58], 0
lea edx, [ebp - 0x628]
lea ecx, [ebp - 0xe54]
call fcn.0040b150
mov edx, dword [ebp - 0x644]
mov dword [ebp - 0xa54], edx
mov eax, dword [ebp - 0x640]
mov dword [ebp - 0xa50], eax
lea edx, [ebp - 0x508]
lea ecx, [ebp - 0xa4c]
call fcn.0040b150
jmp 0x40ad20
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SymGetModuleInfo64
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
jne 0x40ad34
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1e74]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x128]
or ecx, dword [ebp - 0x124]
jne 0x40ad7a
lea edx, [ebp - 0x1e74]
push edx
push 2
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
call eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40ad7f
jmp 0x40a96f
cmp dword [ebp - 8], 0
je 0x40ad91
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040b4d0
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x40ada1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10