Function at 0x44b520
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4068
call fcn.00418810
mov eax, dword [0x46fc68]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x4034], 0
mov dword [ebp - 0x4030], 0
mov dword [ebp - 0x4044], 0
mov dword [ebp - 0x1c], 0x468040
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x4040], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xc], eax
push 0x80
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov dword [ebp - 0x10], eax
push 0x474b84
sub esp, 0x10
mov ecx, esp
mov edx, dword [0x46869c]
mov dword [ecx], edx
mov eax, dword [0x4686a0]
mov dword [ecx + 4], eax
mov edx, dword [0x4686a4]
mov dword [ecx + 8], edx
mov eax, dword [0x4686a8]
mov dword [ecx + 0xc], eax
call fcn.0044b420
add esp, 0x14
mov ecx, dword [str.GlobalCTEventForDeviceArrivalNotification]
push ecx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x474b90], eax
push 1
push 0
push 0
push 0xffff0001
call fcn.0044dfa0
add esp, 0x10
mov dword [ebp - 0x4040], eax
push 0xbb8
push 0
push 2
call fcn.0044a1d0
add esp, 0xc
test eax, eax
jne 0x44b60f
jmp 0x44ba13
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x474b80], eax
cmp dword [0x474b80], 0
jne 0x44b635
jmp 0x44ba13
mov edx, dword [0x474b80]
mov dword [ebp - 0x4034], edx
push 0xbb8
push 0
push 2
call fcn.0044a1d0
add esp, 0xc
test eax, eax
jne 0x44b660
jmp 0x44ba13
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x4030], eax
cmp dword [ebp - 0x4030], 0
jne 0x44b687
jmp 0x44ba13
push 0xbb8
push 0
push 2
call fcn.0044a1d0
add esp, 0xc
test eax, eax
jne 0x44b6a6
jmp 0x44ba13
push 0x14
call fcn.004167d6
add esp, 4
mov dword [ebp - 0x4044], eax
cmp dword [ebp - 0x4044], 0
jne 0x44b6c9
jmp 0x44ba13
push 1
mov eax, dword [ebp - 0x4044]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x44b6e6
jmp 0x44ba13
mov dword [ebp - 0x402c], 0xc
mov dword [ebp - 0x4024], 1
mov ecx, dword [ebp - 0x4044]
mov dword [ebp - 0x4028], ecx
lea edx, [ebp - 0x402c]
push edx
call fcn.0044b3c0
add esp, 4
test eax, eax
jne 0x44b71e
jmp 0x44ba67
push 0xbb8
push 0
push 2
call fcn.0044a1d0
add esp, 0xc
test eax, eax
jne 0x44b73d
jmp 0x44ba13
mov dword [ebp - 8], 1
jmp 0x44b74f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
sub ecx, 1
cmp dword [ebp - 8], ecx
jae 0x44b7bc
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
movzx edx, word [ecx]
cmp edx, 0x2d
je 0x44b77c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
movzx eax, word [edx]
cmp eax, 0x2f
jne 0x44b7ba
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
add eax, 2
push eax
push str.pipe
call fcn.00416666
add esp, 8
test eax, eax
jne 0x44b7ba
mov ecx, dword [ebp - 8]
add ecx, 1
cmp ecx, dword [ebp + 8]
jae 0x44b7ba
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x1c], edx
jmp 0x44b746
lea eax, [ebp - 0x402c]
push eax
push 0x3e8
push 0
push 0
push 1
push 6
push 0x40000003
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x44b7ff
push str.Unable_to_create_named_pipe
call fcn.0044a120
add esp, 4
jmp 0x44ba13
push 0
push 0
push 4
call fcn.0044a1d0
add esp, 0xc
test eax, eax
jne 0x44b81b
jmp 0x44ba13
mov edx, 1
test edx, edx
je 0x44ba13
push 0x14
push 0
lea eax, [ebp - 0x4058]
push eax
call fcn.004168a0
add esp, 0xc
mov ecx, dword [ebp - 0x4030]
mov dword [ebp - 0x4048], ecx
mov edx, dword [ebp - 0x4030]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x4058]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x44b893
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x4034]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x44b893
jmp 0x44ba13
push 0x14
push 0
lea eax, [ebp - 0x4058]
push eax
call fcn.004168a0
add esp, 0xc
mov ecx, dword [ebp - 0x4030]
mov dword [ebp - 0x4048], ecx
mov edx, dword [ebp - 0x4030]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x2000
push 0
lea eax, [ebp - 0x4020]
push eax
call fcn.004168a0
add esp, 0xc
lea ecx, [ebp - 0x4058]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x2000
lea eax, [ebp - 0x4020]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4038], eax
cmp dword [ebp - 0x4038], 0
jne 0x44b933
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x44b933
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x4034]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x44b933
jmp 0x44ba13
lea eax, [ebp - 0x4020]
mov dword [ebp - 0x4064], eax
lea ecx, [ebp - 0x2020]
mov dword [ebp - 0x4060], ecx
mov dword [ebp - 0x405c], 0x2000
lea edx, [ebp - 0x405c]
push edx
mov eax, dword [ebp - 0x4060]
push eax
mov ecx, dword [ebp - 0x4064]
push ecx
call fcn.00450a90
add esp, 0xc
mov dword [ebp - 0x4068], eax
push 0x14
push 0
lea edx, [ebp - 0x4058]
push edx
call fcn.004168a0
add esp, 0xc
mov eax, dword [ebp - 0x4030]
mov dword [ebp - 0x4048], eax
mov ecx, dword [ebp - 0x4030]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [ebp - 0x4058]
push edx
lea eax, [ebp - 0x403c]
push eax
mov ecx, dword [ebp - 0x405c]
push ecx
lea edx, [ebp - 0x2020]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4038], eax
cmp dword [ebp - 0x4038], 0
jne 0x44ba04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x44ba04
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x4034]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x44ba04
jmp 0x44ba13
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x44b81b
cmp dword [ebp - 0x14], 0xffffffff
je 0x44ba23
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x474b80], 0
je 0x44ba39
mov ecx, dword [0x474b80]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4030], 0
je 0x44ba4f
mov edx, dword [ebp - 0x4030]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4044], 0
je 0x44ba67
mov eax, dword [ebp - 0x4044]
push eax
call fcn.004166f9
add esp, 4
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004148bc
mov esp, ebp
pop ebp
ret