Function at 0x43f700
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5471ef
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5be410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x88], 0
je 0x43f759
push dword [esi + 0x9c]
mov dword [esi + 0x84], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x84]
dec eax
cmp eax, 9
ja case.default.0x43f769
jmp dword [eax*4 + 0x43fc38]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x43f785
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x43f79c
push eax
call edi
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x43fc24
push eax
call edi
mov dword [esi + 0x9c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x43f7e9
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.default.0x43f769
lea eax, [esi + 0x8c]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x43f7d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x43f82c
cmp eax, 0x3e5
jne 0x43f7d8
mov dword [esi + 0x84], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x84], 4
jmp 0x43fc0a
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + 0x8c]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x43f82c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x43fc24
mov dword [esi + 0x84], 0xa
jmp 0x43fc0a
push 0x2c
lea edi, [esi + 0xa0]
mov dword [ebp - 0x10], 0
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi + 0x8c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x2c
push edi
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f8be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x43f86d
mov dword [esi + 0x84], 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + 0x8c]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x43f86d
cmp dword [ebp - 0x10], 0x2c
jne 0x43f86d
mov dword [esi + 0x84], 6
jmp 0x43fc0a
mov eax, dword [esi + 0xa0]
cmp eax, 4
je 0x43f94f
cmp eax, 1
jne 0x43f94b
cmp dword [esi + 0xa4], 0
je 0x43f94b
cmp dword [esi + 0xac], 0
je 0x43f94b
cmp dword [esi + 0xb0], 0
je 0x43f94b
cmp dword [esi + 0xb4], 0
jne 0x43f94f
xor cl, cl
jmp 0x43f951
mov cl, 1
test cl, cl
je 0x43f86d
cmp eax, 4
jne 0x43f986
mov eax, dword [esi + 0x60]
test eax, eax
je 0x43f86d
push dword [esi + 0xa4]
push dword [esi + 0x64]
call eax
add esp, 8
mov dword [esi + 0x84], 0xa
jmp 0x43fc0a
push 0x44
call fcn.005445ec
add esp, 4
mov dword [ebp - 0x10], eax
lea ecx, [esi + 0xb8]
mov dword [ebp - 4], 0
push ecx
push dword [esi + 0xb4]
mov ecx, eax
push dword [esi + 0xb0]
push dword [esi + 0xac]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push esi
call fcn.004401a0
mov edi, eax
mov dword [ebp - 0x10], edi
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00440320
test al, al
jne 0x43fa2d
push dword [esi + 0x9c]
mov dword [esi + 0x84], 0xa
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x43fa02
mov dword [esi + 0x84], 1
test edi, edi
je 0x43fc24
mov ecx, edi
call fcn.00440230
push 0x44
push edi
call fcn.0054461c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov ecx, esi
call fcn.0043fe50
test al, al
jne 0x43fa44
push 0xa
mov ecx, esi
call fcn.0043f510
jmp 0x43fa02
mov dword [esi + 0xcc], edi
mov dword [esi + 0x84], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + 0x8c]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [esi + 0x9c]
test eax, eax
je 0x43fa9b
mov dword [esi + 0x84], 8
jmp 0x43fc10
mov dword [esi + 0x84], 0xa
jmp 0x43fc10
lea eax, [esi + 0x8c]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0x2c
lea eax, [esi + 0xa0]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43fafe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x43f86d
mov dword [esi + 0x84], 9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x84], 9
jmp 0x43fc0a
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + 0x8c]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x43f86d
cmp dword [esi + 0x48], 0
je 0x43f86d
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
mov ecx, dword [esi + 0x18]
mov dword [ebp - 4], 2
mov eax, dword [ecx]
cmp eax, ecx
je 0x43fb8d
mov edx, dword [esi + 0xcc]
cmp edx, dword [eax + 8]
je 0x43fb81
mov eax, dword [eax]
cmp eax, ecx
jne 0x43fb60
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x84], 0xa
jmp 0x43fc0a
mov eax, dword [esi + 0x48]
push edx
push dword [esi + 0x4c]
call eax
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x84], 0xa
jmp 0x43fc0a
push dword [esi + 0x9c]
mov dword [esi + 0xcc], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x94], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x43f7d8
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x43f7d8
cmp byte [esi + 0x88], 0
jne 0x43fc24
mov dword [esi + 0x84], 2
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x43fc24
mov dword [esi + 0x84], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret