Function at 0x4056b0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497723
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c4014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
call fcn.00404ae0
test al, al
je 0x405a10
mov eax, dword [ebx]
push str.Sent_communnication_ID_packet_to_the_client
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x49e2d4]
call esi
push 0x48
call fcn.004699a8
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x3c], edi
push 0x48
push 0
push edi
mov dword [ebp - 4], 0
call fcn.0046bb80
add esp, 0xc
lea eax, [ebx + 0x28]
lea ecx, [ebp - 0x38]
push eax
call fcn.00403570
lea ebx, [edi + 8]
mov dword [edi + 4], 0
xor eax, eax
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov byte [edi + 0x20], 1
mov dword [edi + 0x28], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 7
mov word [edi + 0x28], ax
mov byte [ebp - 4], 3
mov dword [edi + 0x44], eax
lea eax, [ebp - 0x38]
cmp ebx, eax
je 0x40578c
cmp dword [ebp - 0x24], 8
mov ecx, ebx
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.00402e00
push 0x78
call fcn.004699a8
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
push 0x78
push 0
push esi
mov byte [ebp - 4], 4
call fcn.0046bb80
add esp, 0xc
mov ecx, esi
call fcn.0041e0a0
mov byte [ebp - 4], 3
mov dword [edi + 0x24], eax
mov eax, dword [0x4c8c88]
test eax, eax
jne 0x4057f5
push 0x84
call fcn.004699a8
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
push 0x84
push 0
push esi
mov byte [ebp - 4], 5
call fcn.0046bb80
add esp, 0xc
mov ecx, esi
call fcn.00405c80
mov dword [0x4c8c88], eax
add eax, 4
mov byte [ebp - 4], 0
mov dword [edi + 0x40], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x405839
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40582f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a2e
push ecx
push edx
call fcn.004699d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov edx, ebx
mov word [ebp - 0x38], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx + 0x14], 8
jb 0x40585e
mov edx, dword [ebx]
mov eax, dword [edi + 0x40]
push edx
push str.Initializing_Communication_Channel_with_ACC_with_pipename:__s
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi + 0x24]
push 0
push edi
push 0x403e40
push 0x927c0
push 1
push ebx
push 3
call fcn.0041e190
test eax, eax
je 0x4058fa
mov ecx, dword [edi + 0x40]
push eax
push str.Problem_initializing_Communication_Channel._Quitting._Error_code__d
push 0x4aea60
mov esi, dword [ecx]
push ecx
mov esi, dword [esi + 0x24]
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0x10
cmp dword [ebx + 0x14], 8
jb 0x4058cc
mov ebx, dword [ebx]
mov eax, dword [edi + 0x40]
push ebx
push str.CreateIPCChannel_failed_for_pipe__s
push 0x4aea60
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x24]
mov ecx, esi
call dword [0x49e2d4]
call esi
mov ebx, dword [ebp - 0x18]
add esp, 0x10
push str.Failed_in_initial_handshake_with_the_client
jmp 0x405989
lea eax, [ebp - 0x14]
push eax
push 4
push edi
push 0x4040f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
test eax, eax
jne 0x405939
mov eax, dword [edi + 0x40]
push str.failed_to_create_a_new_thread_for_ipc_communications._Fatal_Error
push 0x4aea60
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0xc
jmp 0x405979
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4059e0
mov eax, dword [edi + 0x40]
push str.thread_failed_to_resumed._fatal_error
push 0x4aea60
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0xc
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0xc]
call fcn.0041fa30
push str.Failed_in_creating_client_thread
mov eax, dword [ebx]
push 0x4aea60
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0xc
mov ecx, edi
call fcn.00403ef0
push 0x48
push edi
call fcn.004699d8
mov eax, dword [ebx]
add esp, 8
mov ecx, dword [eax]
push str.Failed_to_sent_communnication_ID_packet_to_the_client
push 0x4aea60
push eax
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x49e2d4]
call esi
mov ecx, dword [ebx + 0xc]
add esp, 0xc
call fcn.0041fa30
xor al, al
jmp 0x405a12
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
push str.Successfully_created_the_client_thread
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 8
lea eax, [ebx + 0x28]
lea ecx, [ebx + 4]
push eax
call fcn.00405a40
mov dword [eax], edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046999a
mov esp, ebp
pop ebp
ret
call fcn.00479601
int3