Function at 0x432e40
Capabilities:
Check for time delay via gettickcount
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push edi
mov edi, ecx
cmp byte [edi + 1], 0
mov eax, dword [edi + 0x248]
mov ecx, dword [edi + 0x24c]
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jne 0x4331c3
push esi
mov esi, dword [ebp + 8]
push ebx
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0xc]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [esi + 0x14], eax
test eax, eax
je 0x4331c1
cmp byte [edi + 3], 0
je 0x432ea3
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [edi + 0x224], esi
mov eax, dword [esi + 4]
test eax, eax
je 0x432eb5
cmp eax, 0xffffffff
jne 0x432f22
movzx ecx, byte [edi + 3]
xor eax, eax
cmp byte [edi + 5], al
mov dword [esi + 0x54], 2
mov edx, dword [edi + 0x228]
push edx
sete al
push 0
push 0x1000
neg ecx
push 0x1000
sbb ecx, ecx
push 0xff
and ecx, 0x40000000
lea eax, [eax + eax + 1]
or eax, ecx
push 6
lea ecx, [edi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 4], eax
mov dword [esi + 0x54], 3
cmp byte [edi + 1], 0
jne 0x433161
cmp eax, 0xffffffff
je 0x4330de
test eax, eax
je 0x4330de
cmp dword [edi + 0x240], 0
jne 0x432f49
mov eax, dword [edi + 0x238]
test eax, eax
je 0x432f49
mov ecx, dword [edi + 0x244]
push ecx
push esi
mov dword [edi + 0x240], 1
call eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esi + 0x54], 4
cmp byte [edi + 3], 0
je 0x432f63
lea eax, [esi + 0x3c]
jmp 0x432f65
xor eax, eax
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
cmp byte [edi + 3], 0
jne 0x432f98
mov eax, dword [ebp - 8]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp byte [edi + 3], 0
je 0x433000
cmp dword [ebx], 0
je 0x432fed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PipeServerThread:ConnectNamedPipe_failed_with_0x_08X
lea ebx, [esi + 0x58]
push 0x80
push ebx
call fcn.00441b50
add esp, 0x10
lea ecx, [edi + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.PipeServerError__PID_u__TID_u_n___s_n___s_n
lea edx, [ebp - 0x420]
push 0x208
push edx
call fcn.00441b50
add esp, 0x1c
push 0x64
jmp 0x433137
mov edx, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [esi + 0x10], 0x217
sete cl
mov dword [edx], ecx
jmp 0x43301b
cmp dword [ebx], 0
jne 0x433014
cmp dword [esi + 0x10], 0x217
jne 0x433014
mov dword [ebx], 1
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp byte [edi + 1], 0
jne 0x433181
cmp byte [edi + 3], 0
je 0x433092
cmp dword [esi + 0x10], 0x217
jne 0x43303b
mov ebx, 1
jmp 0x433049
lea edx, [ebp - 0x10]
push edx
push esi
mov ecx, edi
call fcn.004324b0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
je 0x4331a1
cmp ebx, 1
jne 0x43314b
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x54], 5
mov dword [eax], ebx
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx], 0
jne 0x4331b6
mov eax, dword [esi + 4]
test eax, eax
je 0x43314b
cmp eax, 0xffffffff
je 0x43314b
push eax
mov dword [esi + 0x54], 0x64
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [esi + 4]
push ecx
mov dword [esi + 0x54], 0xc8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 0x54], 0xc9
jmp 0x43314b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [esi + 0x10], eax
call ebx
push eax
push str.PipeServerThread:ConnectNamedPipe_failed_with_0x_08X
lea ebx, [esi + 0x58]
push 0x80
push ebx
call fcn.00441b50
add esp, 0x10
lea eax, [edi + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.PipeServerError__PID_u__TID_u_n___s_n___s_n
lea edx, [ebp - 0x420]
push 0x208
push edx
call fcn.00441b50
add esp, 0x1c
mov dword [esi + 4], 0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp byte [edi + 1], 0
je 0x432e78
mov al, byte [ebp - 1]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 3], 0
je 0x4331c1
mov ecx, dword [ebp - 8]
push 0
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov al, byte [ebp - 1]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 3], 0
je 0x4331c1
mov edx, dword [ebp - 8]
push 0
push 1
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov al, byte [ebp - 1]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
sub eax, dword [ebp + 8]
pop ebx
add dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov al, byte [ebp - 1]
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 0x54], 5
mov byte [ebp - 1], 1
pop ebx
pop esi
mov al, byte [ebp - 1]
pop edi
mov esp, ebp
pop ebp
ret 0xc