Function at 0x40bab0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e74
call fcn.00428ea0
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 0x40bada
mov ecx, dword [ebp - 4]
call fcn.0040b5e0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
cmp dword [edx + 4], 0
jne 0x40baf8
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40c0f5
mov eax, dword [ebp + 0x10]
mov dword [0x43d8ac], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x43d8a8], ecx
cmp dword [ebp + 0xc], 0
jne 0x40bbae
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x40bb5c
push 0x2cc
push 0
lea edx, [ebp - 0x404]
push edx
call fcn.0040e490
add esp, 0xc
mov dword [ebp - 0x404], 0x10007
call 0x40bb43
pop eax
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x350], ebp
mov dword [ebp - 0x340], esp
xor eax, eax
jne 0x40bb1e
jmp 0x40bbac
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.0040e490
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 0x40bbac
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
jmp 0x40c0f5
jmp 0x40bbbe
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.0040e490
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.0041408b
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40bc55
jmp 0x40c0ce
push 0x420
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040e490
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.0040e490
add esp, 0xc
mov dword [ebp - 0x64c], 0x248
mov dword [ebp - 0xc], 0
jmp 0x40bcc8
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 0x40c130
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 0x40bd3b
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 0x40c0ce
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
xorps 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 0x40be15
mov ecx, dword [ebp - 0x134]
cmp ecx, dword [ebp - 0x124]
jne 0x40be15
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 0x40c0ce
mov ecx, dword [ebp - 0x138]
or ecx, dword [ebp - 0x134]
je 0x40c06f
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 0x40beac
mov edx, dword [ebp - 8]
add edx, 0x1c
lea ecx, [ebp - 0x1e6c]
call fcn.0040c490
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 0x40bed3
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 0x40bf4e
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 0x40bf27
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1260], edx
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x125c]
call fcn.0040c490
jmp 0x40bf4e
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.0040b3f0
test eax, eax
je 0x40c048
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
ja case.default.0x40bf8f
mov ecx, dword [ebp - 0x10]
jmp dword [ecx*4 + 0x40c100]
mov dword [ebp - 0xe58], str._nosymbols_
jmp 0x40c00c
mov dword [ebp - 0xe58], str.COFF
jmp 0x40c00c
mov dword [ebp - 0xe58], 0x437fb4
jmp 0x40c00c
mov dword [ebp - 0xe58], 0x437fb8
jmp 0x40c00c
mov dword [ebp - 0xe58], str._exported_
jmp 0x40c00c
mov dword [ebp - 0xe58], str._deferred_
jmp 0x40c00c
mov dword [ebp - 0xe58], 0x437fd4
jmp 0x40c00c
mov dword [ebp - 0xe58], 0x437fe0
jmp 0x40c00c
mov dword [ebp - 0xe58], str.Virtual
jmp 0x40c00c
mov dword [ebp - 0xe58], 0
lea edx, [ebp - 0x628]
lea ecx, [ebp - 0xe54]
call fcn.0040c490
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.0040c490
jmp 0x40c06f
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 0x40c083
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 0x40c0c9
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 0x40c0ce
jmp 0x40bcbf
cmp dword [ebp - 8], 0
je 0x40c0e0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00413f7f
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x40c0f0
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