Function at 0x40cd10
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp byte [0x4e784c], 0
push ebx
push esi
push edi
jne 0x40cd2e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword fs:[0x24]
cmp dword [0x4e6ce0], ebx
je 0x40cd49
push dword [0x4e6ce4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x40cd56
xor esi, esi
jmp 0x40cd90
lea eax, [esp + 0x13]
mov ecx, 0x4e6d58
push eax
push 3
lea eax, [esp + 0x1c]
push eax
push 0
push edi
call fcn.0043b030
mov esi, eax
test esi, esi
jne 0x40cd90
cmp byte [esp + 0x13], al
mov ecx, 0x4e6d58
setne al
inc eax
push eax
push dword [esp + 0x18]
push esi
push edi
call fcn.0043b590
mov esi, eax
cmp dword [ebp + 0xc], 0
mov cl, byte [esi + 0x17]
je 0x40cded
cmp cl, 4
je 0x40cef6
push 0x14
push dword [0x4e482c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
test eax, eax
je 0x40cee6
mov dword [0x4e482c], eax
cmp dword [0x4e6ce0], ebx
je 0x40cdd9
push dword [0x4e6ce4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4e482c]
push 0
push esi
mov ecx, eax
call fcn.004014e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 4
je 0x40ce0d
test cl, cl
jne 0x40cdfb
mov eax, dword [esi + 0xc]
jmp 0x40cdfd
mov eax, esi
test byte [eax + 0x15], 0xa
jne 0x40ce0d
cmp dword [eax + 0xc], 0
je 0x40cef6
mov eax, dword [esi + 8]
cmp word [eax], 0
jne 0x40ceba
mov eax, dword [esi + 0x10]
cmp cl, 4
jne 0x40ce2c
push edi
push 0
call eax
add esp, 8
jmp 0x40ce33
test eax, eax
jne 0x40ce33
mov eax, dword [esi + 0xc]
add eax, 0x101
push eax
push dword [0x4e482c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40cee6
mov al, byte [esi + 0x17]
mov dword [0x4e482c], ecx
cmp al, 4
jne 0x40ce8d
mov eax, dword [esi + 0x10]
push edi
push ecx
cmp eax, 0x45c490
jne 0x40cf46
add dword [0x4e211c], 0x108
call eax
add esp, 8
sub dword [0x4e211c], 0x108
jmp 0x40cf4b
test al, al
jne 0x40cea3
mov eax, dword [esi + 0xc]
push dword [eax + 4]
push dword [eax]
call fcn.004014e0
jmp 0x40cf48
cmp al, 1
jne 0x40cf4b
push dword [esi + 4]
push dword [esi]
call fcn.004014e0
jmp 0x40cf48
cmp cl, 4
jne 0x40cecc
mov eax, dword [esi + 0x10]
push edi
push 0
call eax
add esp, 8
jmp 0x40ced2
mov eax, dword [esi + 0xc]
add eax, 2
push eax
push dword [0x4e482c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
test eax, eax
jne 0x40cf16
push edi
push 0x4ccaa4
mov ecx, 0x4e6d58
call fcn.00447a20
cmp dword [0x4e6ce0], ebx
je 0x40cf0a
push dword [0x4e6ce4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 0x4b8c14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [esi + 0x17]
mov dword [0x4e482c], eax
test cl, cl
jne 0x40cf2d
mov ecx, dword [esi + 0xc]
push eax
call fcn.004a0540
jmp 0x40cf4b
cmp cl, 1
jne 0x40cf3c
push eax
mov ecx, esi
call fcn.004a0540
jmp 0x40cf4b
cmp cl, 4
jne 0x40cf4b
push edi
push eax
mov eax, dword [esi + 0x10]
call eax
add esp, 8
cmp dword [0x4e6ce0], ebx
je 0x40cf5f
push dword [0x4e6ce4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4e482c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret