Function at 0x40e0a0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp byte [0x4fe670], 0
push ebx
push esi
push edi
jne 0x40e0be
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x24]
mov dword [esp + 0x10], eax
cmp dword [0x4fd2ec], eax
je 0x40e0dc
push dword [0x4fdb60]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [ebp + 8]
cmp word [ebx], 0
jne 0x40e0e9
xor edi, edi
jmp 0x40e123
lea eax, [esp + 0xf]
mov ecx, 0x4fdb78
push eax
push 3
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
call fcn.004404a0
mov edi, eax
test edi, edi
jne 0x40e123
cmp byte [esp + 0xf], al
mov ecx, 0x4fdb78
setne al
inc eax
push eax
push dword [esp + 0x18]
push edi
push ebx
call fcn.00440a70
mov edi, eax
cmp dword [ebp + 0xc], 0
mov cl, byte [edi + 0x17]
je 0x40e1e1
cmp cl, 4
je 0x40e34a
push 0x14
push dword [0x4fb87c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x40e33a
mov eax, dword [esp + 0x10]
mov dword [0x4fb87c], esi
cmp dword [0x4fd2ec], eax
je 0x40e178
push dword [0x4fdb60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [0x4fb87c]
mov eax, dword [0x4f90f4]
cmp byte [eax + 0xf5], 0x44
jne 0x40e19e
push 0xa
push esi
push 0
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow]
add esp, 0x10
mov esi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x30
lea ebx, [esi + 2]
mov word [esi], ax
mov eax, 0x78
mov word [ebx], ax
add ebx, 2
push 0x10
push ebx
push 0
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow]
mov eax, dword [0x4f90f4]
add esp, 0x10
cmp byte [eax + 0xf5], 0x48
jne 0x40e1d8
push ebx
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 4
je 0x40e201
test cl, cl
jne 0x40e1ef
mov eax, dword [edi + 0xc]
jmp 0x40e1f1
mov eax, edi
test byte [eax + 0x15], 0xa
jne 0x40e201
cmp dword [eax + 0xc], 0
je 0x40e34a
mov eax, dword [edi + 8]
cmp word [eax], 0
jne 0x40e30e
mov eax, dword [edi + 0x10]
cmp cl, 4
jne 0x40e220
push ebx
push 0
call eax
add esp, 8
jmp 0x40e227
test eax, eax
jne 0x40e227
mov eax, dword [edi + 0xc]
add eax, 0x101
push eax
push dword [0x4fb87c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x40e33a
mov al, byte [edi + 0x17]
mov dword [0x4fb87c], esi
cmp al, 4
jne 0x40e281
mov eax, dword [edi + 0x10]
push ebx
push esi
cmp eax, 0x465290
jne 0x40e39e
add dword [0x4f90f4], 0x108
call eax
add esp, 8
sub dword [0x4f90f4], 0x108
jmp 0x40e3a3
test al, al
jne 0x40e28f
mov eax, dword [edi + 0xc]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x40e29c
cmp al, 1
jne 0x40e3a3
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, dword [0x4f90f4]
cmp byte [eax + 0xf5], 0x44
jne 0x40e2bd
push 0xa
push esi
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow]
add esp, 0x10
jmp 0x40e3a3
test ecx, ecx
jg 0x40e2d9
jl 0x40e2c7
test edx, edx
jae 0x40e2d9
mov eax, 0x2d
mov word [esi], ax
add esi, 2
neg edx
adc ecx, 0
neg ecx
mov dword [esi], 0x780030
add esi, 4
push 0x10
push esi
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow]
mov eax, dword [0x4f90f4]
add esp, 0x10
cmp byte [eax + 0xf5], 0x48
jne 0x40e3a3
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
jmp 0x40e3a3
cmp cl, 4
jne 0x40e320
mov eax, dword [edi + 0x10]
push ebx
push 0
call eax
add esp, 8
jmp 0x40e326
mov eax, dword [edi + 0xc]
add eax, 2
push eax
push dword [0x4fb87c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
test eax, eax
jne 0x40e36e
push ebx
push 0x4e3bcc
mov ecx, 0x4fdb78
call fcn.0044ec90
mov eax, dword [esp + 0x10]
cmp dword [0x4fd2ec], eax
je 0x40e362
push dword [0x4fdb60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 0x4cfc40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [edi + 0x17]
mov dword [0x4fb87c], eax
test cl, cl
jne 0x40e385
mov ecx, dword [edi + 0xc]
push eax
call fcn.004b5ff0
jmp 0x40e3a3
cmp cl, 1
jne 0x40e394
push eax
mov ecx, edi
call fcn.004b5ff0
jmp 0x40e3a3
cmp cl, 4
jne 0x40e3a3
push ebx
push eax
mov eax, dword [edi + 0x10]
call eax
add esp, 8
mov eax, dword [esp + 0x10]
cmp dword [0x4fd2ec], eax
je 0x40e3bb
push dword [0x4fdb60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4fb87c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret