Function at 0x41cdc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504a67
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x557200]
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 eax, dword [ebx + 0x1c]
mov esi, dword [ebp + 8]
test eax, eax
je 0x41cfcf
mov eax, dword [eax + 4]
test eax, eax
je 0x41cfcf
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x21c], 0x103
jne 0x41cfcf
push 0x23
xor eax, eax
mov dword [ebp - 0x24c], 0
push str.NamedPipeServerManager::StartServer
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.004084c0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceNamedPipeNamedPipeServerManager.cpp
mov dword [ebp - 4], 0
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x41ce98
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceNamedPipeNamedPipeServerManager.cpp
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x41ce9d
mov edx, str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceNamedPipeNamedPipeServerManager.cpp
mov ecx, edx
mov dword [ebp - 0x234], 0
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ced0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.004084c0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0xf
push str.already_running
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 2
call fcn.00408db0
push 0x16
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x234]
push eax
push 5
push dword [0x560f9c]
call fcn.0040d3e0
mov edx, dword [ebp - 0x220]
add esp, 0x2c
cmp edx, 8
jb 0x41cf88
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41cf7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d377
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x41cfc8
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41cfbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d377
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov al, 1
jmp 0x41d359
cmp dword [esi + 0x10], 0
jne 0x41cffc
push 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
push 0x5348ec
jmp 0x41d077
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b73e0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41d01c
mov eax, dword [esi]
push eax
push 0x5364f4
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041c410
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 0
add esp, 0x10
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d060
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.004084c0
lea eax, [ebp - 0x234]
lea edi, [ebx + 4]
push eax
mov ecx, edi
call fcn.00412080
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x41d0d3
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d0c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d37c
push edx
push ecx
call fcn.004b51c1
add esp, 8
cmp dword [ebx + 0x14], 0
jne 0x41d27d
push 0x23
xor eax, eax
mov dword [ebp - 0x234], 0
push str.NamedPipeServerManager::StartServer
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.004084c0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceNamedPipeNamedPipeServerManager.cpp
mov dword [ebp - 4], 3
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x41d144
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceNamedPipeNamedPipeServerManager.cpp
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x41d149
mov edx, str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceNamedPipeNamedPipeServerManager.cpp
mov ecx, edx
mov dword [ebp - 0x24c], 0
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d175
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24c]
call fcn.004084c0
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 8
jb 0x41d19d
mov esi, dword [esi]
push esi
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0x2d
push str.could_not_get_ChannelName_for_ChannelID:___s_
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 5
call fcn.00408db0
push 0x1d
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24c]
push eax
push 6
push dword [0x560f9c]
call fcn.0040d3e0
mov edx, dword [ebp - 0x238]
add esp, 0x30
cmp edx, 8
jb 0x41d236
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d22c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d381
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x41d276
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d26c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d381
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor al, al
jmp 0x41d359
mov esi, dword [ebx + 0x1c]
test esi, esi
jne 0x41d2ec
push 0x50
call fcn.004b4f40
push 0x50
mov esi, eax
push 0
push esi
mov dword [ebp - 0x21c], esi
call fcn.004b73e0
mov dword [esi + 4], 0
add esp, 0x10
mov dword [esi + 8], 0
xor eax, eax
mov dword [esi], vtable.NamedPipeServerThread.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 7
mov word [esi + 0xc], ax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 7
mov word [esi + 0x2c], ax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov byte [esi + 0x4c], al
mov dword [ebx + 0x1c], esi
lea ecx, [esi + 0xc]
cmp ecx, edi
je 0x41d306
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41d2fd
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.004084c0
mov dword [esi + 0x24], 0x43c4e0
mov dword [esi + 0x28], 0
mov esi, dword [ebx + 0x1c]
mov eax, dword [esi + 4]
test eax, eax
je 0x41d33b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x41d276
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x412ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
setne al
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.004b4f32
mov esp, ebp
pop ebp
ret 0xc
call fcn.004b9cae
call fcn.004b9cae
call fcn.004b9cae
int3