Function at 0x405c00
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp byte [0x4cce78], 0
push ebx
push esi
push edi
jne 0x405c1e
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 [0x4cc810], eax
je 0x405c3c
push dword [0x4cc814]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
jne 0x405c48
xor edi, edi
jmp 0x405c82
lea eax, [esp + 0xf]
mov ecx, 0x4cc848
push eax
push 3
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
call fcn.00430700
mov edi, eax
test edi, edi
jne 0x405c82
cmp byte [esp + 0xf], al
mov ecx, 0x4cc848
setne al
inc eax
push eax
push dword [esp + 0x18]
push edi
push ebx
call fcn.00430c50
mov edi, eax
cmp dword [ebp + 0xc], 0
mov cl, byte [edi + 0x17]
je 0x405d34
cmp cl, 4
je 0x405e92
push 0x14
push dword [0x4ca618]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x405e82
mov eax, dword [esp + 0x10]
mov dword [0x4ca618], esi
cmp dword [0x4cc810], eax
je 0x405cd7
push dword [0x4cc814]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [0x4ca618]
mov eax, dword [0x4c8024]
cmp byte [eax + 0xd5], 0x44
jne 0x405cfd
push 0xa
push esi
push 0
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64toa]
add esp, 0x10
mov esi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 1]
mov byte [esi], 0x30
mov byte [ebx], 0x78
inc ebx
push 0x10
push ebx
push 0
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64toa]
mov eax, dword [0x4c8024]
add esp, 0x10
cmp byte [eax + 0xd5], 0x48
jne 0x405d2b
push ebx
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 4
je 0x405d54
test cl, cl
jne 0x405d42
mov eax, dword [edi + 0xc]
jmp 0x405d44
mov eax, edi
test byte [eax + 0x15], 0xa
jne 0x405d54
cmp dword [eax + 0xc], 0
je 0x405e92
mov eax, dword [edi + 8]
cmp byte [eax], 0
jne 0x405e58
mov eax, dword [edi + 0x10]
cmp cl, 4
jne 0x405d72
push ebx
push 0
call eax
add esp, 8
jmp 0x405d79
test eax, eax
jne 0x405d79
mov eax, dword [edi + 0xc]
add eax, 0x100
push eax
push dword [0x4ca618]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x405e82
mov al, byte [edi + 0x17]
mov dword [0x4ca618], esi
cmp al, 4
jne 0x405dd3
mov eax, dword [edi + 0x10]
push ebx
push esi
cmp eax, 0x4568d0
jne 0x405ee6
add dword [0x4c8024], 0xe8
call eax
add esp, 8
sub dword [0x4c8024], 0xe8
jmp 0x405eeb
test al, al
jne 0x405de1
mov eax, dword [edi + 0xc]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x405dee
cmp al, 1
jne 0x405eeb
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, dword [0x4c8024]
cmp byte [eax + 0xd5], 0x44
jne 0x405e0f
push 0xa
push esi
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64toa]
add esp, 0x10
jmp 0x405eeb
test ecx, ecx
jg 0x405e24
jl 0x405e19
test edx, edx
jae 0x405e24
mov byte [esi], 0x2d
inc esi
neg edx
adc ecx, 0
neg ecx
mov word [esi], 0x7830
add esi, 2
push 0x10
push esi
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64toa]
mov eax, dword [0x4c8024]
add esp, 0x10
cmp byte [eax + 0xd5], 0x48
jne 0x405eeb
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
jmp 0x405eeb
cmp cl, 4
jne 0x405e6a
mov eax, dword [edi + 0x10]
push ebx
push 0
call eax
add esp, 8
jmp 0x405e6e
mov eax, dword [edi + 0xc]
inc eax
push eax
push dword [0x4ca618]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
test eax, eax
jne 0x405eb6
push ebx
push str.Out_of_memory.
mov ecx, 0x4cc848
call fcn.0043ee10
mov eax, dword [esp + 0x10]
cmp dword [0x4cc810], eax
je 0x405eaa
push dword [0x4cc814]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 0x4b6ba9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [edi + 0x17]
mov dword [0x4ca618], eax
test cl, cl
jne 0x405ecd
mov ecx, dword [edi + 0xc]
push eax
call fcn.004a3220
jmp 0x405eeb
cmp cl, 1
jne 0x405edc
push eax
mov ecx, edi
call fcn.004a3220
jmp 0x405eeb
cmp cl, 4
jne 0x405eeb
push ebx
push eax
mov eax, dword [edi + 0x10]
call eax
add esp, 8
mov eax, dword [esp + 0x10]
cmp dword [0x4cc810], eax
je 0x405f03
push dword [0x4cc814]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4ca618]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret