Function at 0x40c710
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp byte [0x4eacc4], 0
push ebx
push esi
push edi
jne 0x40c72c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword fs:[0x24]
mov dword [esp + 0xc], edi
cmp dword [0x4ea158], edi
je 0x40c74b
mov eax, dword [0x4ea15c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [ebp + 8]
push 3
push 0
push ebx
mov ecx, 0x4ea1d0
call fcn.0043d150
cmp dword [ebp + 0xc], 0
mov esi, eax
je 0x40c7eb
cmp byte [esi + 0x17], 4
je 0x40c92f
mov edx, dword [0x4e6984]
push 0x14
push edx
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
test eax, eax
jne 0x40c7b9
push ebx
push 0x4bd2fc
mov ecx, 0x4ea1d0
call fcn.00449df0
cmp dword [0x4ea158], edi
je 0x40c7ad
mov eax, dword [0x4ea15c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 0x4bd2c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x4e6984], eax
cmp dword [0x4ea158], edi
je 0x40c7d3
mov ecx, dword [0x4ea15c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [0x4e6984]
push 0
push esi
call fcn.00401050
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [esi + 0x17]
cmp cl, 4
je 0x40c812
test cl, cl
jne 0x40c7fc
mov eax, dword [esi + 0xc]
jmp 0x40c7fe
mov eax, esi
test byte [eax + 0x15], 0xa
jne 0x40c812
xor edx, edx
cmp dword [eax + 0xc], edx
setne dl
mov eax, edx
test eax, eax
je 0x40c799
mov edx, dword [esi + 8]
cmp word [edx], 0
jne 0x40c8f3
mov eax, dword [esi + 0x10]
cmp cl, 4
jne 0x40c831
push ebx
push 0
call eax
add esp, 8
jmp 0x40c838
test eax, eax
jne 0x40c838
mov eax, dword [esi + 0xc]
mov ecx, dword [0x4e6984]
add eax, 0x101
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_realloc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x40c873
push ebx
push 0x4bd2fc
mov ecx, 0x4ea1d0
call fcn.00449df0
mov edx, dword [esp + 0xc]
cmp dword [0x4ea158], edx
jmp 0x40c79f
mov al, byte [esi + 0x17]
mov dword [0x4e6984], edi
cmp al, 4
jne 0x40c8ac
mov esi, dword [esi + 0x10]
push ebx
push edi
cmp esi, 0x45e3a0
jne 0x40c8a8
add dword [0x4e4b24], 0x108
call esi
add esp, 8
sub dword [0x4e4b24], 0x108
jmp 0x40c8c2
call esi
jmp 0x40c8bf
test al, al
jne 0x40c8e6
mov esi, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
call fcn.00401050
add esp, 8
mov edi, dword [esp + 0xc]
cmp dword [0x4ea158], edi
je 0x40c8da
mov eax, dword [0x4ea15c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4e6984]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x40c8c2
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
jmp 0x40c8ba
cmp cl, 4
jne 0x40c905
mov edx, dword [esi + 0x10]
push ebx
push 0
call edx
add esp, 8
jmp 0x40c90b
mov eax, dword [esi + 0xc]
add eax, 2
push eax
mov eax, dword [0x4e6984]
push eax
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
test eax, eax
jne 0x40c954
push ebx
push 0x4bd2fc
mov ecx, 0x4ea1d0
call fcn.00449df0
cmp dword [0x4ea158], edi
je 0x40c7ad
mov ecx, dword [0x4ea15c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov eax, 0x4bd2c4
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [esi + 0x17]
mov dword [0x4e6984], eax
test cl, cl
jne 0x40c96e
mov ecx, dword [esi + 0xc]
push eax
call fcn.004a2bf0
jmp 0x40c8c6
cmp cl, 1
jne 0x40c980
push eax
mov ecx, esi
call fcn.004a2bf0
jmp 0x40c8c6
cmp cl, 4
jne 0x40c8c6
mov edx, dword [esi + 0x10]
push ebx
push eax
call edx
add esp, 8
jmp 0x40c8c6