Function at 0x440390
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da050
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x522638]
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 eax, dword [ebp + 0x10]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x888], ebx
mov byte [ebp - 0x881], bl
cmp eax, ebx
je 0x4403dd
mov dword [ebp - 0x888], eax
jmp 0x4403ff
lea eax, [ebp - 0x8a0]
push eax
call fcn.0043f6c0
mov byte [ebp - 0x881], al
test al, al
je 0x4403ff
lea ecx, [ebp - 0x8a0]
mov dword [ebp - 0x888], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x890], eax
mov dword [ebp - 0x88c], ebx
call fcn.0043f4e0
mov edi, dword [ebp + 8]
test al, al
je 0x44044d
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x44042a
cmp eax, 3
jne 0x44044d
push 0x4e598c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x440447
push str.GetNamedPipeServerProcessId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov dword [ebp - 0x88c], edi
mov eax, dword [esi + 0x14]
cmp eax, 3
ja case.default.0x440459
jmp dword [eax*4 + 0x4408c4]
push 0x43f8d0
push 1
mov ecx, esi
call fcn.0043fda0
push 0x43f8d0
push 2
mov ecx, esi
call fcn.0043fda0
mov bl, byte [ebp + 0xc]
push 0
push 0
push 1
push 0
mov byte [esi + 0x11], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x44056a
lea edx, [esi + 0x4c]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0043f7d0
add esp, 8
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x84]
mov dword [ebp - 4], 0
call fcn.00406640
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4404d1
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x888]
push edx
push 0x3e8
push 0
push 0
push 1
push 6
push 0x80003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp byte [ebp - 0x881], 0
mov dword [esi + 0x30], eax
je 0x44050a
mov eax, dword [ebp - 0x89c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x30], 0xffffffff
jne 0x44052d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
cmp eax, 5
jne 0x440565
call fcn.00409f90
mov eax, 3
jmp 0x4408a6
mov ecx, dword [esi + 0xc]
push ecx
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test bl, bl
je 0x440574
lea edx, [ebp - 0x890]
push edx
push 0
push esi
push fcn.0043feb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
lea ecx, [ebp - 0x2c]
test eax, eax
jne 0x440887
call fcn.00409f90
mov eax, 2
jmp 0x4408a6
push esi
call fcn.0043feb0
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00409f90
mov eax, esi
jmp 0x4408a6
add esi, 0x4c
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0043f7d0
add esp, 8
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jae 0x4405b2
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x4405d1
lea ecx, [ebp - 0x2c]
call fcn.00409f90
mov eax, 4
jmp 0x4408a6
cmp dword [ebp - 0x88c], 0
je 0x44063e
test ebx, ebx
je 0x44063e
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4405e9
lea eax, [ebp - 0x2c]
call fcn.0043f570
mov esi, eax
mov dword [ebp - 0x888], 0
cmp esi, 0xffffffff
je 0x44063e
lea ecx, [ebp - 0x888]
push ecx
push esi
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x44063e
mov eax, dword [ebp - 0x888]
cmp dword [ebp - 0x88c], eax
jne 0x44062c
cmp dword [ebp - 0x890], eax
je 0x44063e
lea ecx, [ebp - 0x2c]
call fcn.00409f90
mov eax, 0xb
jmp 0x4408a6
lea ecx, [ebp - 0x2c]
call fcn.00409f90
xor eax, eax
jmp 0x4408a6
cmp dword [esi + 0x78], 0
jne 0x44065d
mov eax, 9
jmp 0x4408a6
lea edx, [esi + 0x4c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0043f7d0
add esp, 8
mov eax, dword [ebp - 0x48]
mov edi, 8
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], edi
jae 0x440684
lea eax, [ebp - 0x48]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x440870
cmp dword [ebp - 0x88c], 0
je 0x440702
test ebx, ebx
je 0x440702
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x4406ad
lea eax, [ebp - 0x48]
call fcn.0043f570
mov edi, eax
mov dword [ebp - 0x894], 0
cmp edi, 0xffffffff
je 0x440702
lea ecx, [ebp - 0x894]
push ecx
push edi
call ebx
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x440702
mov eax, dword [ebp - 0x894]
cmp dword [ebp - 0x88c], eax
jne 0x4406f0
cmp dword [ebp - 0x890], eax
je 0x440702
lea ecx, [ebp - 0x48]
call fcn.00409f90
mov eax, 0xb
jmp 0x4408a6
lea edi, [esi + 0x68]
lea edx, [ebp - 0x64]
push edi
push edx
call fcn.0043f850
add esp, 8
mov eax, dword [ebp - 0x64]
mov ebx, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], ebx
jae 0x440726
lea eax, [ebp - 0x64]
call fcn.0043f570
cmp eax, 0xffffffff
je 0x440751
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x64]
call fcn.00409f90
lea ecx, [ebp - 0x48]
call fcn.00409f90
mov eax, 3
jmp 0x4408a6
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x44075c
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x888]
push ecx
push 0x3e8
xor ebx, ebx
push ebx
push ebx
push 1
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x34], eax
cmp byte [ebp - 0x881], bl
je 0x440791
mov edx, dword [ebp - 0x89c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x34], 0xffffffff
jne 0x4407b1
lea ecx, [ebp - 0x64]
call fcn.00409f90
lea ecx, [ebp - 0x48]
call fcn.00409f90
mov eax, 2
jmp 0x4408a6
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 0x8a4]
push ecx
push ebx
push esi
push fcn.0043feb0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
cmp eax, ebx
je 0x440797
lea ecx, [ebp - 0x880]
call fcn.0043f690
push 0x400
lea edx, [ebp - 0x464]
push ebx
push edx
mov dword [ebp - 0x470], ebx
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x468], ebx
call fcn.004b8020
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 0x84]
call fcn.00406640
cmp dword [edi + 0x14], 8
mov ecx, dword [esi + 0x78]
jb 0x440829
mov eax, dword [edi]
jmp 0x44082b
mov eax, edi
add ecx, ecx
push ecx
push eax
push 1
push 1
lea edx, [ebp - 0x880]
push 1
push edx
call fcn.0043f590
add esp, 0x18
push ebx
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x880]
push ecx
mov ecx, esi
call fcn.0043fb60
mov esi, eax
lea ecx, [ebp - 0x64]
cmp esi, ebx
jne 0x440890
cmp dword [ebp - 0x46c], ebx
je 0x44087f
call fcn.00409f90
lea ecx, [ebp - 0x48]
call fcn.00409f90
mov eax, 4
jmp 0x4408a6
call fcn.00409f90
lea ecx, [ebp - 0x48]
call fcn.00409f90
xor eax, eax
jmp 0x4408a6
call fcn.00409f90
lea ecx, [ebp - 0x48]
call fcn.00409f90
mov eax, esi
jmp 0x4408a6
mov eax, 8
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.00401306
mov esp, ebp
pop ebp
ret 0xc