Function at 0x545e10
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa1c], ecx
cmp dword [ebp + 8], 0
jne 0x545e39
mov eax, 0x74
jmp 0x54624b
mov dword [ebp - 0x20c], 0
mov byte [ebp - 0x208], 0
push 0x1ff
push 0
lea eax, [ebp - 0x207]
push eax
call fcn.006665c0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str._s__s_snkey_export
lea edx, [ebp - 0x208]
push edx
call fcn.0066926d
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0xa1c]
call fcn.005433c0
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x545ea4
mov eax, dword [ebp - 0x20c]
jmp 0x54624b
mov dword [0x10ac334], 1
cmp dword [0x10ac334], 0
je 0x54623a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
lea ecx, [ebp - 0x614]
push ecx
push 1
lea edx, [ebp - 0x610]
push edx
mov eax, dword [ebp - 0xa1c]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x5461fe
cmp dword [ebp - 0x614], 0
je 0x5461fe
push 0
lea edx, [ebp - 0x614]
push edx
push 0x3ff
lea eax, [ebp - 0x610]
push eax
mov ecx, dword [ebp - 0xa1c]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x545f2a
jmp 0x54623a
mov eax, dword [ebp - 0x614]
mov byte [ebp + eax - 0x610], 0
mov byte [ebp - 0xa18], 0
push 0x3ff
push 0
lea ecx, [ebp - 0xa17]
push ecx
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x618], 0
lea edx, [ebp - 0x610]
push edx
lea eax, [ebp - 0xa18]
push eax
call fcn.00666ba0
add esp, 8
mov ecx, dword [ebp - 0x618]
lea edx, [ebp + ecx - 0x610]
push edx
call fcn.00666cf0
add esp, 4
test eax, eax
je 0x545fb0
mov eax, dword [ebp - 0x618]
lea ecx, [ebp + eax - 0x610]
push ecx
call fcn.00666cf0
add esp, 4
add eax, 1
mov dword [ebp - 0xa20], eax
jmp 0x545fba
mov dword [ebp - 0xa20], 1
mov edx, dword [ebp - 0xa20]
mov dword [ebp - 0x618], edx
push str.snkey_service_open_ped_failed_:__1014
lea eax, [ebp - 0xa18]
push eax
call fcn.005476b0
add esp, 8
test eax, eax
jne 0x54600e
lea ecx, [ebp - 0xa18]
push ecx
push 0x763e04
call fcn.0066610b
add esp, 8
push str.sleep_5s_r_n
call fcn.0066610b
add esp, 4
mov dword [ebp - 0x20c], 0x85
jmp 0x54623a
lea edx, [ebp - 0xa18]
push edx
push str.snk_type_s_r_n
call fcn.0066610b
add esp, 8
push 0x400
push 0
lea eax, [ebp - 0xa18]
push eax
call fcn.006665c0
add esp, 0xc
mov ecx, dword [ebp - 0x618]
lea edx, [ebp + ecx - 0x610]
push edx
lea eax, [ebp - 0xa18]
push eax
call fcn.00666ba0
add esp, 8
mov ecx, dword [ebp - 0x618]
lea edx, [ebp + ecx - 0x610]
push edx
call fcn.00666cf0
add esp, 4
test eax, eax
je 0x546090
mov eax, dword [ebp - 0x618]
lea ecx, [ebp + eax - 0x610]
push ecx
call fcn.00666cf0
add esp, 4
add eax, 1
mov dword [ebp - 0xa24], eax
jmp 0x54609a
mov dword [ebp - 0xa24], 1
mov edx, dword [ebp - 0x618]
add edx, dword [ebp - 0xa24]
mov dword [ebp - 0x618], edx
lea eax, [ebp - 0xa18]
push eax
push str.snk_sn_s_r_n
call fcn.0066610b
add esp, 8
push 0x400
push 0
lea ecx, [ebp - 0xa18]
push ecx
call fcn.006665c0
add esp, 0xc
mov edx, dword [ebp - 0x618]
lea eax, [ebp + edx - 0x610]
push eax
lea ecx, [ebp - 0xa18]
push ecx
call fcn.00666ba0
add esp, 8
mov edx, dword [ebp - 0x618]
lea eax, [ebp + edx - 0x610]
push eax
call fcn.00666cf0
add esp, 4
test eax, eax
je 0x54612e
mov ecx, dword [ebp - 0x618]
lea edx, [ebp + ecx - 0x610]
push edx
call fcn.00666cf0
add esp, 4
add eax, 1
mov dword [ebp - 0xa28], eax
jmp 0x546138
mov dword [ebp - 0xa28], 1
mov eax, dword [ebp - 0x618]
add eax, dword [ebp - 0xa28]
mov dword [ebp - 0x618], eax
lea ecx, [ebp - 0xa18]
push ecx
push str.snk_kcv_s_r_n
call fcn.0066610b
add esp, 8
push 0x400
push 0
lea edx, [ebp - 0xa18]
push edx
call fcn.006665c0
add esp, 0xc
mov eax, dword [ebp - 0x618]
lea ecx, [ebp + eax - 0x610]
push ecx
lea edx, [ebp - 0xa18]
push edx
call fcn.00666ba0
add esp, 8
mov eax, dword [ebp - 0x618]
lea ecx, [ebp + eax - 0x610]
push ecx
call fcn.00666cf0
add esp, 4
test eax, eax
je 0x5461cc
mov edx, dword [ebp - 0x618]
lea eax, [ebp + edx - 0x610]
push eax
call fcn.00666cf0
add esp, 4
add eax, 1
mov dword [ebp - 0xa2c], eax
jmp 0x5461d6
mov dword [ebp - 0xa2c], 1
mov ecx, dword [ebp - 0x618]
add ecx, dword [ebp - 0xa2c]
mov dword [ebp - 0x618], ecx
lea edx, [ebp - 0xa18]
push edx
push str.snk_key_s_r_n
call fcn.0066610b
add esp, 8
jmp 0x546220
push 1
mov eax, dword [ebp - 0xa1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x546220
jmp 0x54623a
cmp dword [0x10ac334], 0
jne 0x546235
mov dword [ebp - 0x20c], 0x7b
jmp 0x54623a
jmp 0x545eae
mov ecx, dword [ebp - 0xa1c]
call fcn.00543590
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 4