Function at 0x543aa0
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1128
call fcn.00666cc0
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1128], ecx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
push 0xfe
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x110], 0
mov ecx, dword [ebp + 8]
push ecx
push str._s__s_devinfo
lea edx, [ebp - 0x108]
push edx
call fcn.0066926d
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x1128]
call fcn.005433c0
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x543b3c
mov eax, dword [ebp - 0x114]
jmp 0x543e31
push 0x763604
mov ecx, dword [ebp - 0x1128]
add ecx, 0x18
push ecx
call fcn.00669fd1
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x543b76
mov dword [ebp - 0x114], 0x75
jmp 0x543e20
push str.__xml_version_1.0__encoding_UTF_8___
push 0x763630
mov edx, dword [ebp - 0x10c]
push edx
call fcn.0066b880
add esp, 0xc
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00668459
add esp, 4
mov byte [ebp - 1], 0
mov dword [0x10ac338], 1
mov dword [ebp - 0x111c], 0
cmp dword [0x10ac338], 0
je 0x543df5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
lea ecx, [ebp - 0x1120]
push ecx
push 1
lea edx, [ebp - 0x1118]
push edx
mov eax, dword [ebp - 0x1128]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x543db9
cmp dword [ebp - 0x1120], 0
je 0x543db9
push 0
lea edx, [ebp - 0x1120]
push edx
push 0xfff
lea eax, [ebp - 0x1118]
push eax
mov ecx, dword [ebp - 0x1128]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x543c32
jmp 0x543df5
mov eax, dword [ebp - 0x1120]
mov byte [ebp + eax - 0x1118], 0
cmp dword [ebp - 0x1120], 0
jne 0x543c8b
lea ecx, [ebp - 0x1118]
push ecx
push str.XCB_MSG_EMPTY_r_n
call fcn.0066610b
add esp, 8
mov edx, dword [ebp - 0x111c]
add edx, 1
mov dword [ebp - 0x111c], edx
cmp dword [ebp - 0x111c], 0xa
jne 0x543c86
mov dword [ebp - 0x114], 0x77
jmp 0x543df5
jmp 0x543bb6
lea eax, [ebp - 0x1118]
push eax
push 0x763644
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x110], 1
push 0x763654
lea ecx, [ebp - 0x1118]
push ecx
call fcn.00404520
add esp, 8
test eax, eax
je 0x543ce3
mov dword [ebp - 0x114], 0x70
jmp 0x543df5
push 0x76366c
lea edx, [ebp - 0x1118]
push edx
call fcn.00404520
add esp, 8
test eax, eax
je 0x543d0c
mov dword [ebp - 0x114], 0x7a
jmp 0x543df5
push 0x763684
lea eax, [ebp - 0x1118]
push eax
call fcn.00404520
add esp, 8
test eax, eax
je 0x543d33
mov dword [ebp - 0x114], 0x82
jmp 0x543df5
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x543d90
push str._devinfo
lea edx, [ebp - 0x1118]
push edx
call fcn.00404520
add esp, 8
mov dword [ebp - 0x1124], eax
cmp dword [ebp - 0x1124], 0
jne 0x543d63
jmp 0x543bb6
mov eax, dword [ebp - 0x1124]
push eax
call fcn.00666cf0
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp - 0x1124]
push ecx
lea edx, [ebp - 0x1118]
push edx
call fcn.00668d10
add esp, 0xc
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
test eax, eax
je 0x543db7
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x1120]
push edx
push 1
lea eax, [ebp - 0x1118]
push eax
call fcn.00669854
add esp, 0x10
jmp 0x543ddb
push 0
mov ecx, dword [ebp - 0x1128]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x543ddb
jmp 0x543df5
cmp dword [0x10ac338], 0
jne 0x543df0
mov dword [ebp - 0x114], 0x7b
jmp 0x543df5
jmp 0x543bb6
cmp dword [ebp - 0x110], 0
jne 0x543e08
mov dword [ebp - 0x114], 0x77
cmp dword [ebp - 0x10c], 0
je 0x543e20
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00669ba2
add esp, 4
mov ecx, dword [ebp - 0x1128]
call fcn.00543590
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 4