Function at 0x4e5040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0x78
push 1
mov ebx, 0x54f
call fcn.00580d1f
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e50ae
push 4
push str.com.freerdp.channels.printer.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x4e50a5
push str.calloc_failed_
push str.printer_register
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPchannelsprinterclientprinter_main.c
push 0x377
push 4
push edi
push str.com.freerdp.channels.printer.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x1c
pop edi
mov eax, 0xc
pop ebx
pop ebp
ret
push esi
push 0x400
push 0
call fcn.00438820
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
je 0x4e516e
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0x38]
push dword [eax]
push str.PRN_d
push 0x40
push esi
call fcn.00580ea1
mov dword [edi + 8], esi
mov esi, dword [ebp + 8]
mov dword [edi + 4], 4
mov dword [edi + 0x14], 0x4e4810
mov dword [edi + 0x10], 0x4e41c0
mov dword [edi + 0x1c], fcn.004e4720
mov eax, dword [esi + 0xc]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 0xc]
push 8
push 8
mov dword [edi + 0x20], eax
call fcn.005802f5
add esp, 0x18
mov dword [edi + 0x24], eax
test eax, eax
jne 0x4e517e
push 4
push str.com.freerdp.channels.printer.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x4e5169
push str._aligned_malloc_failed_
push str.printer_register
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPchannelsprinterclientprinter_main.c
push 0x38d
push 4
push 0
push str.com.freerdp.channels.printer.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x1c
mov ebx, 0xc
push edi
call fcn.004e4720
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0xc]
push edi
push dword [ebp + 0xc]
push dword [eax + 0x140]
call fcn.004e4840
add esp, 0xc
test eax, eax
je 0x4e516e
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call ebx
mov dword [edi + 0x28], eax
test eax, eax
jne 0x4e5216
push 4
push str.com.freerdp.channels.printer.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x4e5201
push str.CreateEvent_failed_
push str.printer_register
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPchannelsprinterclientprinter_main.c
push 0x399
push 4
push 0
push str.com.freerdp.channels.printer.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x1c
push edi
mov ebx, 0x54f
call fcn.004e4720
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push 0
push 1
push 0
call ebx
mov dword [edi + 0x2c], eax
test eax, eax
jne 0x4e5259
push 4
push str.com.freerdp.channels.printer.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x4e5201
push str.CreateEvent_failed_
push str.printer_register
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPchannelsprinterclientprinter_main.c
push 0x3a0
jmp 0x4e51e7
mov eax, dword [esi + 4]
push edi
push dword [esi]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e52c9
push 4
push str.com.freerdp.channels.printer.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x4e516e
push ebx
push str.RegisterDevice_failed_with_error__I32u_
push str.printer_register
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPchannelsprinterclientprinter_main.c
push 0x3a8
push 4
push 0
push str.com.freerdp.channels.printer.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x20
push edi
call fcn.004e4720
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push 0
push edi
push 0x4e5500
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x30], eax
test eax, eax
jne 0x4e531d
push 4
push str.com.freerdp.channels.printer.client
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x4e5201
push str.CreateThread_failed_
push str.printer_register
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPchannelsprinterclientprinter_main.c
push 0x3af
jmp 0x4e51e7
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret